File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def To_SVG(self):
111111 r = abs (math .hypot (self .center [0 ] - self .end [0 ], self .center [1 ] - self .end [1 ]))
112112
113113 parameters = '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
114- parameters += ';stroke:#' + Colour .Assign (self .layer )
114+ parameters += ';stroke:#' + Colour () .Assign (self .layer )
115115 parameters += ';stroke-width:' + self .width + 'mm'
116116 parameters += '" '
117117 parameters += 'cx="' + str (self .center [0 ] * pxToMM ) + '" '
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def To_SVG(self, fp = False):
115115
116116
117117 parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
118- parameters += ';stroke:#' + Colour .Assign (self .layer )
118+ parameters += ';stroke:#' + Colour () .Assign (self .layer )
119119 parameters += ';stroke-width:' + self .width + 'mm'
120120 parameters += '" '
121121 parameters += 'd="M ' + str (points [0 ] * pxToMM ) + ',' + str (points [1 ] * pxToMM ) + ' C '
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ def To_SVG(self):
185185 parameters += '>'
186186
187187 hole = '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
188- hole += ';fill:#' + Colour .Assign ('Via.Inner' )
188+ hole += ';fill:#' + Colour () .Assign ('Via.Inner' )
189189 hole += '" '
190190 hole += 'cx="' + str (float (self .at [0 ]) * pxToMM ) + '" '
191191 hole += 'cy="' + str (float (self .at [1 ]) * pxToMM ) + '" '
@@ -195,7 +195,7 @@ def To_SVG(self):
195195 hole += '/>'
196196
197197 parameters += '<circle style="stroke:none;stroke-linecap:round;stroke-linejoin:miter;fill-opacity:1'
198- parameters += ';fill:#' + Colour .Assign ('Via.Outer' )
198+ parameters += ';fill:#' + Colour () .Assign ('Via.Outer' )
199199 parameters += '" '
200200 parameters += 'cx="' + str (float (self .at [0 ]) * pxToMM ) + '" '
201201 parameters += 'cy="' + str (float (self .at [1 ]) * pxToMM ) + '" '
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def To_SVG(self):
275275 name = 'name="' + self .name + '" '
276276
277277 parameters = '<path style="fill:none;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1'
278- parameters += ';stroke:#' + Colour .Assign (self .layer )
278+ parameters += ';stroke:#' + Colour () .Assign (self .layer )
279279 parameters += ';stroke-width:1mm'
280280 parameters += '" '
281281 parameters += 'd="M ' + xy_text + ' Z" '
You can’t perform that action at this time.
0 commit comments