summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/symbols.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-07-21 20:55:35 +0200
committerjaseg <git@jaseg.de>2023-07-21 20:55:35 +0200
commiteb20595e00bdc59daa31392eaca559ab36f59a5c (patch)
treef178eebb333ad32e535ee109f3b79b68f1e5a764 /gerbonara/cad/kicad/symbols.py
parente4dcbe177f8a152f380983f46d9239c9460bfc6a (diff)
downloadgerbonara-eb20595e00bdc59daa31392eaca559ab36f59a5c.tar.gz
gerbonara-eb20595e00bdc59daa31392eaca559ab36f59a5c.tar.bz2
gerbonara-eb20595e00bdc59daa31392eaca559ab36f59a5c.zip
WIP
Diffstat (limited to 'gerbonara/cad/kicad/symbols.py')
-rw-r--r--gerbonara/cad/kicad/symbols.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/gerbonara/cad/kicad/symbols.py b/gerbonara/cad/kicad/symbols.py
index 17ca719..df65710 100644
--- a/gerbonara/cad/kicad/symbols.py
+++ b/gerbonara/cad/kicad/symbols.py
@@ -151,13 +151,13 @@ class Pin:
ax, ay = self.length+0.2, 0
ax, ay = rotate_point(ax, ay, math.radians(-self.at.rotation))
- lx, ly = self.at.x, -self.at.y
- lx, ly = rotate_point(lx, ly, math.radians(p_rotation))
- if p_mirror.y:
- lx, ly = -lx, ly
- elif p_mirror.x:
- lx, ly = lx, -ly
- yield Tag('circle', cx=lx, cy=ly, r='0.5', stroke='blue', stroke_width='0.1', fill='none', z_index='100')
+ #lx, ly = self.at.x, -self.at.y
+ #lx, ly = rotate_point(lx, ly, math.radians(p_rotation))
+ #if p_mirror.y:
+ # lx, ly = -lx, ly
+ #elif p_mirror.x:
+ # lx, ly = lx, -ly
+ #yield Tag('circle', cx=lx, cy=ly, r='0.5', stroke='blue', stroke_width='0.1', fill='none', z_index='100')
lx, ly = self.at.x + ax, -self.at.y - ay
lx, ly = rotate_point(lx, ly, math.radians(p_rotation))
@@ -165,7 +165,7 @@ class Pin:
lx, ly = -lx, ly
elif p_mirror.x:
lx, ly = lx, -ly
- yield Tag('circle', cx=lx, cy=ly, r='0.5', stroke='red', stroke_width='0.1', fill='none', z_index='100')
+ #yield Tag('circle', cx=lx, cy=ly, r='0.5', stroke='red', stroke_width='0.1', fill='none', z_index='100')
h_align = 'left'
if p_mirror.y: