summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/schematic.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-21 20:27:14 +0200
committerjaseg <git@jaseg.de>2023-07-21 20:27:14 +0200
commite4dcbe177f8a152f380983f46d9239c9460bfc6a (patch)
tree95a2e15c7535959db4cff0d08b25445e38d9239e /gerbonara/cad/kicad/schematic.py
parent8cb91dabdb0cf995856f53ad201ffcbca7bcadff (diff)
downloadgerbonara-e4dcbe177f8a152f380983f46d9239c9460bfc6a.tar.gz
gerbonara-e4dcbe177f8a152f380983f46d9239c9460bfc6a.tar.bz2
gerbonara-e4dcbe177f8a152f380983f46d9239c9460bfc6a.zip
symbol pin rendering works
Diffstat (limited to 'gerbonara/cad/kicad/schematic.py')
-rw-r--r--gerbonara/cad/kicad/schematic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerbonara/cad/kicad/schematic.py b/gerbonara/cad/kicad/schematic.py
index 0fbc47a..6ef306e 100644
--- a/gerbonara/cad/kicad/schematic.py
+++ b/gerbonara/cad/kicad/schematic.py
@@ -400,11 +400,11 @@ class SymbolInstance:
if self.reference in ('U18',):
print(self.reference, self.unit, self.at, self.mirror, units)
- xform = f'translate({self.at.x:.3f} {self.at.y:.3f})'
+ at_xform = xform = f'translate({self.at.x:.3f} {self.at.y:.3f})'
if self.mirror.y:
xform += f'scale(-1 -1)'
elif self.mirror.x:
- xform += f'scale(-1 1)'
+ xform += f'scale(1 1)'
else:
xform += f'scale(1 -1)'
if rot:
@@ -414,7 +414,7 @@ class SymbolInstance:
yield Tag('g', children=children, transform=xform, fill=colorscheme.fill, stroke=colorscheme.lines)
children = [foo for unit in units for pin in unit.pins for foo in pin.to_svg(colorscheme, self.mirror, rot)]
- yield Tag('g', children=children, transform=xform, fill=colorscheme.fill, stroke=colorscheme.lines)
+ yield Tag('g', children=children, transform=at_xform, fill=colorscheme.fill, stroke=colorscheme.lines)
#for prop in self.properties:
# yield from prop.to_svg()