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

Method build_inds

Lib/pagebot/elements/text.py:892–902  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

890 # B U I L D I N D E S I G N
891
892 def build_inds(self, view, origin=None, **kwargs):
893 """It is better to have a separate InDesignContext build tree, because
894 we need more information down there than just drawing instructions.
895 This way the InDesignContext just gets passed the PageBot Element,
896 using it's own API."""
897 context = view.context
898 p = pointOffset(self.origin, origin)
899 p2D = point2D(self._applyAlignment(p)) # Ignore z-axis for now.
900 context.textBox(self.bs, p2D, e=self)
901 for e in self.elements:
902 e.build_inds(view, p2D)
903
904 # B U I L D H T M L
905

Callers

nothing calls this directly

Calls 4

pointOffsetFunction · 0.90
point2DFunction · 0.90
_applyAlignmentMethod · 0.80
textBoxMethod · 0.45

Tested by

no test coverage detected