Hi,
I'm rotating an object but I want to rotate it on a certain point.
In inkscape where I've created my object, I can define the point of rotation on an object and use the rotate tool to rotate it like I wish.
But if I try to transform('r45') with snap.svg, it will rotate around it center.
I found a way to do it which you can look here :
https://teslalog.com/demo_svg_manipulation/Is there a better way to do it ?
Is it normal that I have to save the original bbox value for this to work correctly ?
A more advance gauge I've made can be seen here :
https://teslalog.com/demo_canbus_recorded_route/Which I also had to SAVE the transform_local of the object when loaded.
Then I had to do obj.transform(saved_transform_local + "r45, (
bbox.cx - (bbox.width/2) + "," +
bbox.cy);
All this worked, but It just would be so much intuitive if I didn't had to do all this in the first place.
I'm I missing something, or could snap.svg could be changed so I don't have to do this ?
Thanks
Marc