figma / figma-api-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to perform the "Resize To Fit" functionality

tatemz opened this issue · comments

I'm looking for a way to programmatically run the same functionality as the resize-to-fit action. Is there an easy way to do this with the Figma API?

image

Leaving this note here: I was able to get my use-case 50% of the way there by using figma.group which will autosize to fit based on its grouped children. I am now looking for a way to seamlessly convert a GroupNode to a FrameNode using the API

Group does not include Effects