Made junctions smaller

This commit is contained in:
jaseg 2023-07-22 13:20:48 +02:00
parent eb5c01ddd0
commit 2f0a21abf9

View file

@ -60,11 +60,11 @@ class Junction:
uuid: UUID = field(default_factory=UUID)
def bounding_box(self, default=None):
r = (self.diameter/2 or 0.635)
r = (self.diameter/2 or 0.5)
return (self.at.x - r, self.at.y - r), (self.at.x + r, self.at.y + r)
def to_svg(self, colorscheme=Colorscheme.KiCad):
yield Tag('circle', cx=f'{self.at.x:.3f}', cy=f'{self.at.y:.3f}', r=(self.diameter/2 or 0.635),
yield Tag('circle', cx=f'{self.at.x:.3f}', cy=f'{self.at.y:.3f}', r=(self.diameter/2 or 0.5),
fill=self.color.svg(colorscheme.wire))