MCPcopy Create free account
hub / github.com/PageBot/PageBot / build

Method build

Lib/pagebot/elements/page.py:417–434  ·  view source on GitHub ↗

Draws all elements of this page in DrawBot. Note that this method is only used in case pages are drawn as element on another page. In normal usage, pages get drawn by PageView.build

(self, view, origin=ORIGIN, **kwargs)

Source from the content-addressed store, hash-verified

415 # D R A W B O T & F L A T S U P P O R T
416
417 def build(self, view, origin=ORIGIN, **kwargs):
418 """Draws all elements of this page in DrawBot. Note that this method is
419 only used in case pages are drawn as element on another page. In normal
420 usage, pages get drawn by PageView.build"""
421 p = pointOffset(self.origin, origin) # Ignore z-axis for now.
422
423 view.drawPageMetaInfo(self, p, background=True)
424
425 # If there are child elements, draw them over the text. Build child
426 # elements, depending in context build implementations.
427 self.buildChildElements(view, p, **kwargs)
428
429 # Draw addition page info, such as crop-mark, registration crosses,
430 # etc. if parameters are set.
431 view.drawPageMetaInfo(self, p, background=False)
432
433 # Check if we are in scaled mode. Then restore.
434 #self._restoreScale()
435
436 # H T M L / C S S S U P P O R T
437

Callers

nothing calls this directly

Calls 3

pointOffsetFunction · 0.90
buildChildElementsMethod · 0.80
drawPageMetaInfoMethod · 0.45

Tested by

no test coverage detected