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

Method build

Lib/pagebot/elements/table.py:153–164  ·  view source on GitHub ↗
(self, view, origin=ORIGIN, **kwargs)

Source from the content-addressed store, hash-verified

151 # D R A W B O T / F L A T S U P P O R T
152
153 def build(self, view, origin=ORIGIN, **kwargs):
154
155 p = pointOffset(self.origin, origin)
156 p = self._applyScale(view, p)
157 px, py, _ = p = self._applyAlignment(p) # Ignore z-axis for now.
158 self.drawFrame(view, p) # Draw optional frame or borders.
159
160 # Let the view draw frame info for debugging, in case view.showFrame == True
161 view.drawElementFrame(self, p)
162 self.buildChildElements(view, p, **kwargs)
163 self._restoreScale(view)
164 view.drawElementInfo(self, origin) # Depends on css flag 'showElementInfo'
165
166 # H T M L / S A S S S U P P O R T
167

Callers

nothing calls this directly

Calls 8

pointOffsetFunction · 0.90
_applyScaleMethod · 0.80
_applyAlignmentMethod · 0.80
buildChildElementsMethod · 0.80
_restoreScaleMethod · 0.80
drawFrameMethod · 0.45
drawElementFrameMethod · 0.45
drawElementInfoMethod · 0.45

Tested by

no test coverage detected