Skip to main content
Solved

Detecting auto spacing using the plugin API


Liamco

Is it possible to detect if a nodes itemSpacing property is set to AUTO in the Figma UI? Currently, reading the itemSpacing property of a node passes back the number the layout would adopt if auto was turned off (e.g. for the node selected in the attached screenshot, the API would return itemSpacing:271)

Screenshot 2023-10-19 at 11.35.03

I can’t see anything about AUTO spacing in the API documentation. Is this just not supported?

Best answer by tank666

figma.com
View original

2 replies

tank666
  • 4861 replies
  • Answer
  • October 19, 2023

Liamco
  • Author
  • 8 replies
  • October 19, 2023

Oh boy well don’t I feel like a dunce 🤦‍♂️

This was exactly what I needed, thanks!


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