diff options
author | jaseg <git@jaseg.de> | 2023-04-06 16:41:10 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-10 23:57:15 +0200 |
commit | 6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528 (patch) | |
tree | 0d947678392da9e55a11069dd865dd66f0c3af71 /gerbonara/cam.py | |
parent | 0dcd2814061e8ee93bfef9484a3b3de56d156ff9 (diff) | |
download | gerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.tar.gz gerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.tar.bz2 gerbonara-6fe3def9d6ebe73f5ad4c5ed4d22ff13ce321528.zip |
Make SVG export even smaller
Diffstat (limited to 'gerbonara/cam.py')
-rw-r--r-- | gerbonara/cam.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerbonara/cam.py b/gerbonara/cam.py index 49c2df3..0ee67a5 100644 --- a/gerbonara/cam.py +++ b/gerbonara/cam.py @@ -249,7 +249,9 @@ class Polyline: (x0, y0), *rest = self.coords d = f'M {float(x0):.6} {float(y0):.6} ' + ' '.join(f'L {float(x):.6} {float(y):.6}' for x, y in rest) width = f'{self.width:.6}' if not math.isclose(self.width, 0) else '0.01mm' - return tag('path', d=d, style=f'fill: none; stroke: {color}; stroke-width: {float(width):.6}; stroke-linejoin: round; stroke-linecap: round') + return tag('path', d=d, + fill='none', stroke=color, + stroke_width=f'{float(width):.6}') class CamFile: |