@@ -76,8 +76,8 @@ def polygon(points):
7676
7777
7878def 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 )
8181
8282 svg = ""
8383 for line in self .lines :
@@ -91,9 +91,9 @@ def beziercurvebox(self, offset=None):
9191
9292
9393def 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 )
9595 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
9797 )
9898
9999 def components ():
@@ -110,7 +110,6 @@ def components():
110110
111111add_conversion_fn (FilledCurveBox )
112112
113- # FIXME figure out how we can add this.
114113def graphicsbox (self , leaves = None , ** options ) -> str :
115114 if not leaves :
116115 leaves = self ._leaves
@@ -220,8 +219,8 @@ def insetbox(self, offset=None):
220219
221220
222221def 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 )
225224 svg = ""
226225 for line in self .lines :
227226 svg += '<polyline points="%s" style="%s" />' % (
@@ -261,13 +260,13 @@ def pointbox(self, offset=None):
261260
262261
263262def 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 )
265264 if self .vertex_colors is None :
266265 face_color = self .face_color
267266 else :
268267 face_color = None
269268 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
271270 )
272271 svg = ""
273272 if self .vertex_colors is not None :
@@ -292,7 +291,7 @@ def polygonbox(self, offset=None):
292291
293292
294293def 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 )
296295 x1 , y1 = self .p1 .pos ()
297296 x2 , y2 = self .p2 .pos ()
298297 xmin = min (x1 , x2 )
@@ -302,7 +301,7 @@ def rectanglebox(self, offset=None):
302301 if offset :
303302 x1 , x2 = x1 + offset [0 ], x2 + offset [0 ]
304303 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 )
306305 return '<rect x="%f" y="%f" width="%f" height="%f" style="%s" />' % (
307306 xmin ,
308307 ymin ,
@@ -321,8 +320,8 @@ def _roundbox(self, offset=None):
321320 rx , ry = self .r .pos ()
322321 rx -= x
323322 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 )
326325 return '<ellipse cx="%f" cy="%f" rx="%f" ry="%f" style="%s" />' % (
327326 x ,
328327 y ,
0 commit comments