Skip to main content
Question

Help with rotation and bounding box

  • September 18, 2024
  • 0 replies
  • 40 views

Alex145

I am working on a plugin that needs to convert element into CSS representation

And I’m struggled with rotaions.

For example, Rectangle 100x100px

For unrotated state, I can just take absoluteBoundingBox values = 100x100px
But when rotation appliea, thins get very complicated because rotation in Figma increase absoluteBoundingBox of the elemens

Ant I’m getting 133x133px for 100x100px rectange rotated by 26 degrees.

This topic has been closed for replies.

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