We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e659e2 commit b94e8d9Copy full SHA for b94e8d9
InteractiveHtmlBom/ecad/common.py
@@ -122,10 +122,10 @@ def add_arc():
122
a1 = drawing['startangle']
123
a2 = drawing['endangle']
124
r = drawing['radius']
125
- x1 = xc + math.cos(math.radians(a1))
126
- y1 = xc + math.sin(math.radians(a1))
127
- x2 = xc + math.cos(math.radians(a2))
128
- y2 = xc + math.sin(math.radians(a2))
+ x1 = xc + r * math.cos(math.radians(a1))
+ y1 = yc + r * math.sin(math.radians(a1))
+ x2 = xc + r * math.cos(math.radians(a2))
+ y2 = yc + r * math.sin(math.radians(a2))
129
da = a2 - a1 if a2 > a1 else a2 + 360 - a1
130
la = 1 if da > 180 else 0
131
svgpath = 'M %s %s A %s %s 0 %s 1 %s %s' % \
0 commit comments