From b2729a46ac36402b30e567b02f8e67caefed7ac9 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 7 Jul 2023 20:19:36 +0200 Subject: Improve auto layout API --- gerbonara/cad/primitives.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gerbonara/cad/primitives.py') 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 -- cgit