Closed OpenFoam-User closed 2 years ago
Similarly to the
rotate
method :rotate(angle, anchor, first)
, thescale(factor, first)
method should also accept an anchor.
That's a bit trickier than rotate
because inkex
doesn't support anchors for add_scale
like it does for add_rotate
, but I'll see what I can do…
Done. Please test.
I have tested it and it seems to work perfectly! Many thanks
Both rotate
and scale
don't work as expected for stars/polygons, text, and spirals: https://github.com/spakin/SimpInkScr/issues/35
Similarly to the
rotate
method :rotate(angle, anchor, first)
, thescale(factor, first)
method should also accept an anchor.Why:
Because if the scale is applied on the object multiple times, the object is moving and that's not necessarily the desired behaviour. So basically,
scale
should addanchor
argument so the user could specify the center of the object to be used.Steps to reproduce the reported bahaviour:
for obj in objs: obj = inkex_object(obj) obj.scale(1.2)