update in applytransform

This commit is contained in:
Mario Voigt 2021-11-24 12:38:04 +01:00
parent d6409fda72
commit ce54624eea

View File

@ -46,7 +46,8 @@ class ApplyTransformations(inkex.EffectExtension):
try:
#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))
#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)
update = True
except AttributeError: