Skip to main content

Hey, figma’s rotation api by default, takes origin at top-left corner of the shape.

I’ve tried to make it centre by using relative transformation matrix, but I couldn’t able to figure it out.


Is there is any other ways or examples out there for rotating a shape with origin at centre of the shape.

gist.github.com

Reply