Skip to main content
Liamco
New Member
October 19, 2023
Solved

Detecting auto spacing using the plugin API

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?

This topic has been closed for replies.
tank666
tank666Solution
October 19, 2023
figma.com
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank

2 replies

tank666
tank666Solution
October 19, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Liamco
LiamcoAuthor
New Member
October 19, 2023

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

This was exactly what I needed, thanks!