Fix arc width per comment in #12
This commit is contained in:
parent
b3e816466c
commit
d830375c4c
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ class GerberCairoContext(GerberContext):
|
|||
radius = SCALE * arc.radius
|
||||
angle1 = arc.start_angle
|
||||
angle2 = arc.end_angle
|
||||
width = arc.width if arc.width != 0 else 0.001
|
||||
width = arc.aperture.diameter if arc.aperture.diameter != 0 else 0.001
|
||||
self.ctx.set_source_rgba(*color, alpha=self.alpha)
|
||||
self.ctx.set_line_width(width * SCALE)
|
||||
self.ctx.set_line_cap(cairo.LINE_CAP_ROUND)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class GerberSvgContext(GerberContext):
|
|||
start = tuple(map(mul, arc.start, self.scale))
|
||||
end = tuple(map(mul, arc.end, self.scale))
|
||||
radius = SCALE * arc.radius
|
||||
width = arc.width if arc.width != 0 else 0.001
|
||||
width = arc.aperture.diameter if arc.aperture.diameter != 0 else 0.001
|
||||
arc_path = self.dwg.path(d='M %f, %f' % start,
|
||||
stroke=svg_color(color),
|
||||
stroke_width=SCALE * width)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue