diff options
author | jaseg <git@jaseg.de> | 2022-05-21 15:29:18 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-05-21 15:29:18 +0200 |
commit | e422243a6e76d0b798ae8f175a717c193be4d22a (patch) | |
tree | 40f2de58c06baa42d45f1d47bf9ca7d111bcb6be /gerbonara/graphic_primitives.py | |
parent | c127c89fa3a6dd957b2eb66660905dc84751c2b2 (diff) | |
download | gerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.tar.gz gerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.tar.bz2 gerbonara-e422243a6e76d0b798ae8f175a717c193be4d22a.zip |
Fix layer stack SVG export
Diffstat (limited to 'gerbonara/graphic_primitives.py')
-rw-r--r-- | gerbonara/graphic_primitives.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbonara/graphic_primitives.py b/gerbonara/graphic_primitives.py index df49327..bfb1e89 100644 --- a/gerbonara/graphic_primitives.py +++ b/gerbonara/graphic_primitives.py @@ -207,13 +207,14 @@ class Arc(GraphicPrimitive): dx, dy = self.x1 - self.cx, self.y1 - self.cy x1 = self.x1 + dx/arc_r * r y1 = self.y1 + dy/arc_r * r - + # same for C -> P2 dx, dy = self.x2 - self.cx, self.y2 - self.cy x2 = self.x2 + dx/arc_r * r y2 = self.y2 + dy/arc_r * r arc = arc_bounds(x1, y1, x2, y2, self.cx, self.cy, self.clockwise) + return add_bounds(endpoints, arc) # FIXME add "include_center" switch def to_svg(self, fg='black', bg='white', tag=Tag): |