Skip to content

Added plugin window resizing function#26

Open
karutt wants to merge 1 commit into
maxkrieger:masterfrom
karutt:resize_window
Open

Added plugin window resizing function#26
karutt wants to merge 1 commit into
maxkrieger:masterfrom
karutt:resize_window

Conversation

@karutt
Copy link
Copy Markdown
Contributor

@karutt karutt commented Oct 3, 2022

I have created a React component called Corner that adds the ability to resize the plugin window. The screen height and width are stored in the clientStorage of figma, and the next time the plugin is launched, the stored values are referenced.

For more information about figma.clientStorage, we referred to the official Figma API.
https://www.figma.com/plugin-docs/api/figma-clientStorage/

Mainly, the code was referenced from
https://gist.github.com/sonnylazuardi/e55300f28fbe109db052f6568fee5a04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant