summaryrefslogtreecommitdiff
path: root/gerbonara/cam.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-11 00:52:07 +0200
committerjaseg <git@jaseg.de>2023-04-11 00:52:32 +0200
commit138f6504e767b906ef263f483c6a7d355bc2dc48 (patch)
tree9bc27bfaee8933d82cc842671b17d8ca178a8df1 /gerbonara/cam.py
parentb0bc7971bcaf551cc5293d56b3122c5d04502faa (diff)
downloadgerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.tar.gz
gerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.tar.bz2
gerbonara-138f6504e767b906ef263f483c6a7d355bc2dc48.zip
Fix failing tests
Diffstat (limited to 'gerbonara/cam.py')
-rw-r--r--gerbonara/cam.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerbonara/cam.py b/gerbonara/cam.py
index 0ee67a5..d94175e 100644
--- a/gerbonara/cam.py
+++ b/gerbonara/cam.py
@@ -248,10 +248,10 @@ 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'
+ width = f'{float(self.width):.6}' if not math.isclose(self.width, 0) else '0.01mm'
return tag('path', d=d,
- fill='none', stroke=color,
- stroke_width=f'{float(width):.6}')
+ fill='none', stroke=color, stroke_linecap='round', stroke_linejoin='round',
+ stroke_width=width)
class CamFile: