Closed lordanubi closed 1 year ago
What is groupCenter?
It is obtained by merging the d attributes of all the paths we want to apply the transform, getting the viewbox of the unified path and than it is obtained with [bbox.cx,bbox.cy]
I want to see some code sample.
https://jsfiddle.net/Scanu/3fdLut4m/40/ Just made up a little fiddle to show the problem and i just realised that it is actually working as expected. Will look further in my codebase to see what's going wrong. thank you very much for your help!
ok found the error in the rest of my code, will close the issue. thank you again for this wonderful tool! Have a nice day :)
Hi, I noticed these transformations take into consideration the origin:
while this will still scale the path based on its own center instead of the given origin
if (scale) pathCommander.transform({ scale, origin: groupCenter });
Why is that?