@@ -76,8 +76,8 @@ def polygon(points):
76
76
77
77
78
78
def beziercurvebox (self , offset = None ):
79
- l = self .style .get_line_width (face_element = False )
80
- style = create_css (edge_color = self .edge_color , stroke_width = l )
79
+ line_width = self .style .get_line_width (face_element = False )
80
+ style = create_css (edge_color = self .edge_color , stroke_width = line_width )
81
81
82
82
svg = ""
83
83
for line in self .lines :
@@ -91,9 +91,9 @@ def beziercurvebox(self, offset=None):
91
91
92
92
93
93
def filledcurvebox (self , offset = None ):
94
- l = self .style .get_line_width (face_element = False )
94
+ line_width = self .style .get_line_width (face_element = False )
95
95
style = create_css (
96
- edge_color = self .edge_color , face_color = self .face_color , stroke_width = l
96
+ edge_color = self .edge_color , face_color = self .face_color , stroke_width = line_width
97
97
)
98
98
99
99
def components ():
@@ -110,7 +110,6 @@ def components():
110
110
111
111
add_conversion_fn (FilledCurveBox )
112
112
113
- # FIXME figure out how we can add this.
114
113
def graphicsbox (self , leaves = None , ** options ) -> str :
115
114
if not leaves :
116
115
leaves = self ._leaves
@@ -220,8 +219,8 @@ def insetbox(self, offset=None):
220
219
221
220
222
221
def linebox (self , offset = None ):
223
- l = self .style .get_line_width (face_element = False )
224
- style = create_css (edge_color = self .edge_color , stroke_width = l )
222
+ line_width = self .style .get_line_width (face_element = False )
223
+ style = create_css (edge_color = self .edge_color , stroke_width = line_width )
225
224
svg = ""
226
225
for line in self .lines :
227
226
svg += '<polyline points="%s" style="%s" />' % (
@@ -261,13 +260,13 @@ def pointbox(self, offset=None):
261
260
262
261
263
262
def polygonbox (self , offset = None ):
264
- l = self .style .get_line_width (face_element = True )
263
+ line_width = self .style .get_line_width (face_element = True )
265
264
if self .vertex_colors is None :
266
265
face_color = self .face_color
267
266
else :
268
267
face_color = None
269
268
style = create_css (
270
- edge_color = self .edge_color , face_color = face_color , stroke_width = l
269
+ edge_color = self .edge_color , face_color = face_color , stroke_width = line_width
271
270
)
272
271
svg = ""
273
272
if self .vertex_colors is not None :
@@ -292,7 +291,7 @@ def polygonbox(self, offset=None):
292
291
293
292
294
293
def rectanglebox (self , offset = None ):
295
- l = self .style .get_line_width (face_element = True )
294
+ line_width = self .style .get_line_width (face_element = True )
296
295
x1 , y1 = self .p1 .pos ()
297
296
x2 , y2 = self .p2 .pos ()
298
297
xmin = min (x1 , x2 )
@@ -302,7 +301,7 @@ def rectanglebox(self, offset=None):
302
301
if offset :
303
302
x1 , x2 = x1 + offset [0 ], x2 + offset [0 ]
304
303
y1 , y2 = y1 + offset [1 ], y2 + offset [1 ]
305
- style = create_css (self .edge_color , self .face_color , l )
304
+ style = create_css (self .edge_color , self .face_color , line_width )
306
305
return '<rect x="%f" y="%f" width="%f" height="%f" style="%s" />' % (
307
306
xmin ,
308
307
ymin ,
@@ -321,8 +320,8 @@ def _roundbox(self, offset=None):
321
320
rx , ry = self .r .pos ()
322
321
rx -= x
323
322
ry = y - ry
324
- l = self .style .get_line_width (face_element = self .face_element )
325
- style = create_css (self .edge_color , self .face_color , stroke_width = l )
323
+ line_width = self .style .get_line_width (face_element = self .face_element )
324
+ style = create_css (self .edge_color , self .face_color , stroke_width = line_width )
326
325
return '<ellipse cx="%f" cy="%f" rx="%f" ry="%f" style="%s" />' % (
327
326
x ,
328
327
y ,
0 commit comments