Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added plugin window resizing function #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karutt
Copy link
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