make applytransform independent from px unit
This commit is contained in:
parent
046ed8feaa
commit
f3fa6690c1
@ -42,10 +42,10 @@ class ApplyTransformations(inkex.EffectExtension):
|
||||
style = element.attrib.get('style')
|
||||
style = dict(Style.parse_str(style))
|
||||
update = False
|
||||
|
||||
if 'stroke-width' in style:
|
||||
try:
|
||||
stroke_width = float(style.get('stroke-width').strip().replace("px", ""))
|
||||
#stroke_width = float(style.get('stroke-width').strip().replace("px", ""))
|
||||
stroke_width = self.svg.uutounit(style.get('stroke-width').strip())
|
||||
stroke_width *= math.sqrt(abs(transf.a * transf.d))
|
||||
style['stroke-width'] = str(stroke_width)
|
||||
update = True
|
||||
|
Reference in New Issue
Block a user