Lines Matching defs:stroke_width
152 stroke_width = self.stroke_width(elem)
153 if stroke_width == 0: return 0 # if there's no stroke, no need to worry about the transform
159 stroke_width = transform_dimensions(transform, width=stroke_width)
161 return (stroke_width/2)
163 def stroke_width(self, elem, setval=None):
170 stroke_width = 0
172 stroke_width = self.unittouu(style.get('stroke-width', '').strip())
178 return stroke_width
183 stroke_width = self.stroke_width(elem)
184 if (stroke_width == 0): return # no point raising a TransformError if there's no stroke to snap
189 if stroke_width:
190 stroke_width = transform_dimensions(transform, width=stroke_width)
191 stroke_width = round(stroke_width)
192 stroke_width = transform_dimensions(transform, width=stroke_width, inverse=True)
193 self.stroke_width(elem, stroke_width)