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

Method build_inds

Lib/pagebot/elements/element.py:795–804  ·  view source on GitHub ↗

It is better to have a separate InDesignContext build tree, since we need more information down there than just drawing instructions. This way the InDesignContext just gets the PageBot Element passed over, using it's own API.

(self, view, origin, **kwargs)

Source from the content-addressed store, hash-verified

793 e.prepare_inds(view)
794
795 def build_inds(self, view, origin, **kwargs):
796 """It is better to have a separate InDesignContext build tree, since we
797 need more information down there than just drawing instructions. This
798 way the InDesignContext just gets the PageBot Element passed over,
799 using it's own API."""
800 p = pointOffset(self.origin, origin)
801 p2D = point2D(self._applyAlignment(p)) # Ignore z-axis for now.
802 # Inheriting Elements should add their context call here.
803 for e in self.elements:
804 e.build_inds(view, p2D, **kwargs)
805
806 # H T M L / S C S S / S A S S S U P P O R T
807

Callers

nothing calls this directly

Calls 3

_applyAlignmentMethod · 0.95
pointOffsetFunction · 0.90
point2DFunction · 0.90

Tested by

no test coverage detected