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

Method drawShapePath

Lib/pagebot/contexts/flatcontext/flatcontext.py:1162–1167  ·  view source on GitHub ↗

Renders the existing Bézier path as a Flat vector graphic.

(self)

Source from the content-addressed store, hash-verified

1160 self.drawShapePath()
1161
1162 def drawShapePath(self):
1163 """Renders the existing Bézier path as a Flat vector graphic."""
1164 shape = self._getShape()
1165
1166 if shape is not None:
1167 self.page.place(shape.path(self._bezierpath.commands))
1168
1169 def moveTo(self, p):
1170 p = self.translatePoint(p)

Callers 4

ovalMethod · 0.95
polygonMethod · 0.95
drawGlyphPathMethod · 0.95
drawPathMethod · 0.95

Calls 2

_getShapeMethod · 0.95
placeMethod · 0.80

Tested by

no test coverage detected