Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

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

Closed
tatemz opened this issue Apr 23, 2021 · 2 comments
Closed

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

tatemz opened this issue Apr 23, 2021 · 2 comments

Comments

@tatemz
Copy link

tatemz commented Apr 23, 2021

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

@tatemz
Copy link
Author

tatemz commented Apr 26, 2021

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

@tatemz tatemz closed this as completed Sep 22, 2021
@artfabrique
Copy link

Group does not include Effects

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants