Skip to main content
Solved

Detecting auto spacing using the plugin API

  • October 19, 2023
  • 2 replies
  • 634 views

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
This topic has been closed for replies.

2 replies

tank666
  • Answer
  • October 19, 2023

Liamco
  • Author
  • New Member
  • October 19, 2023

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

This was exactly what I needed, thanks!