summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/symbols.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-20 16:56:20 +0200
committerjaseg <git@jaseg.de>2023-07-20 16:56:20 +0200
commit60674ab5b3a76e325336905586b35916660e4472 (patch)
tree88a1ae6de1d6c6f2b6ed5a5106a1e2401d258b5d /gerbonara/cad/kicad/symbols.py
parentbdbdf7f58607bb98999e17ace8a743267a06cd9d (diff)
downloadgerbonara-60674ab5b3a76e325336905586b35916660e4472.tar.gz
gerbonara-60674ab5b3a76e325336905586b35916660e4472.tar.bz2
gerbonara-60674ab5b3a76e325336905586b35916660e4472.zip
Fix line rendering
Diffstat (limited to 'gerbonara/cad/kicad/symbols.py')
-rw-r--r--gerbonara/cad/kicad/symbols.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/symbols.py b/gerbonara/cad/kicad/symbols.py
index b21b94e..6193b57 100644
--- a/gerbonara/cad/kicad/symbols.py
+++ b/gerbonara/cad/kicad/symbols.py
@@ -99,7 +99,7 @@ class Pin:
x1, y1 = self.at.x, self.at.y
x2, y2 = x1+self.length, y1
xform = {'transform': f'rotate({-self.at.rotation} {x1} {y1})'}
- style = {'stroke_width': 0.254, 'stroke': colorscheme.lines}
+ style = {'stroke_width': 0.254, 'stroke': colorscheme.lines, 'stroke_linecap': 'round'}
yield Tag('path', **xform, **style, d=f'M {x1:.6f} {y1:.6f} L {x2:.6f} {y2:.6f}')
@@ -171,7 +171,7 @@ class Pin:
x, y = x+self.at.x, y+self.at.y
points.append(f'{x:.3f} {y:.3f}')
d.append('M '+ ' L '.join(points) + ' ')
- yield Tag('path', d=d, fill='none', stroke=colorscheme.text, stroke_width='0.254')
+ yield Tag('path', d=d, fill='none', stroke=colorscheme.text, stroke_width='0.254', stroke_linecap='round')
@sexp_type('fill')