summaryrefslogtreecommitdiff
path: root/gerbonara/cad/primitives.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-07 20:19:36 +0200
committerjaseg <git@jaseg.de>2023-07-07 20:19:36 +0200
commitb2729a46ac36402b30e567b02f8e67caefed7ac9 (patch)
tree50a1dccff2d4ca537cc74018f6bb2e34e8388627 /gerbonara/cad/primitives.py
parent572486aa25711a432ff08ff8fad8ad91670661b7 (diff)
downloadgerbonara-b2729a46ac36402b30e567b02f8e67caefed7ac9.tar.gz
gerbonara-b2729a46ac36402b30e567b02f8e67caefed7ac9.tar.bz2
gerbonara-b2729a46ac36402b30e567b02f8e67caefed7ac9.zip
Improve auto layout API
Diffstat (limited to 'gerbonara/cad/primitives.py')
-rw-r--r--gerbonara/cad/primitives.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gerbonara/cad/primitives.py b/gerbonara/cad/primitives.py
index 2b7c209..6ffd4e2 100644
--- a/gerbonara/cad/primitives.py
+++ b/gerbonara/cad/primitives.py
@@ -700,13 +700,13 @@ class Trace:
yield Line(line_b.x1, line_b.y1, x3, y3, aperture=aperture, unit=self.unit)
- def _to_graphic_objects(self):
+ def to_graphic_objects(self):
start, end = self.start, self.end
if not isinstance(start, tuple):
- *start, _rotation = start.abs_pos
+ *start, _rotation, _flip = start.abs_pos
if not isinstance(end, tuple):
- *end, _rotation = end.abs_pos
+ *end, _rotation, _flip = end.abs_pos
aperture = CircleAperture(diameter=self.width, unit=self.unit)
@@ -720,7 +720,7 @@ class Trace:
return self._round_over(points, aperture)
def render(self, layer_stack, cache=None):
- layer_stack[self.side, 'copper'].objects.extend(self._to_graphic_objects())
+ layer_stack[self.side, 'copper'].objects.extend(self.to_graphic_objects())
def _route_demo():
from ..utils import setup_svg, Tag