From eb20595e00bdc59daa31392eaca559ab36f59a5c Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 21 Jul 2023 20:55:35 +0200 Subject: WIP --- gerbonara/cad/kicad/symbols.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gerbonara/cad/kicad/symbols.py') 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: -- cgit