Skip to main content
Solved

How to rotate a shape with origin at centre

  • May 8, 2022
  • 1 reply
  • 1520 views

mohan_vadivel

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.

Best answer by Gleb

gist.github.com
View original

1 reply

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • May 9, 2022

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings