update in applytransform
This commit is contained in:
parent
d6409fda72
commit
ce54624eea
@ -46,7 +46,8 @@ class ApplyTransformations(inkex.EffectExtension):
|
|||||||
try:
|
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 = self.svg.uutounit(style.get('stroke-width').strip())
|
||||||
stroke_width *= math.sqrt(abs(transf.a * transf.d))
|
#stroke_width *= math.sqrt(abs(transf.a * transf.d))
|
||||||
|
stroke_width *= math.sqrt(abs(transf.a * transf.d - transf.b * transf.c))
|
||||||
style['stroke-width'] = str(stroke_width)
|
style['stroke-width'] = str(stroke_width)
|
||||||
update = True
|
update = True
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Reference in New Issue
Block a user