summaryrefslogtreecommitdiff
path: root/gerbonara/graphic_primitives.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-06 16:41:10 +0200
committerjaseg <git@jaseg.de>2023-04-10 23:57:15 +0200
commit6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528 (patch)
tree0d947678392da9e55a11069dd865dd66f0c3af71 /gerbonara/graphic_primitives.py
parent0dcd2814061e8ee93bfef9484a3b3de56d156ff9 (diff)
downloadgerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.tar.gz
gerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.tar.bz2
gerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.zip
Make SVG export even smaller
Diffstat (limited to 'gerbonara/graphic_primitives.py')
-rw-r--r--gerbonara/graphic_primitives.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/graphic_primitives.py b/gerbonara/graphic_primitives.py
index 13d626d..13854e1 100644
--- a/gerbonara/graphic_primitives.py
+++ b/gerbonara/graphic_primitives.py
@@ -189,7 +189,7 @@ class Line(GraphicPrimitive):
color = fg if self.polarity_dark else bg
width = f'{self.width:.6}' if not math.isclose(self.width, 0) else '0.01mm'
return tag('path', d=f'M {float(self.x1):.6} {float(self.y1):.6} L {float(self.x2):.6} {float(self.y2):.6}',
- fill='none', stroke=color, stroke_width=str(width), stroke_linecap='round')
+ fill='none', stroke=color, stroke_width=str(width))
@dataclass(frozen=True)
class Arc(GraphicPrimitive):
@@ -241,7 +241,7 @@ class Arc(GraphicPrimitive):
arc = svg_arc((self.x1, self.y1), (self.x2, self.y2), (self.cx, self.cy), self.clockwise)
width = f'{self.width:.6}' if not math.isclose(self.width, 0) else '0.01mm'
return tag('path', d=f'M {float(self.x1):.6} {float(self.y1):.6} {arc}',
- fill='none', stroke=color, stroke_width=width, stroke_linecap='round')
+ fill='none', stroke=color, stroke_width=width)
@dataclass(frozen=True)
class Rectangle(GraphicPrimitive):