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

Figma Integration: Support for arcData and rotate around center #4

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

mphasize
Copy link
Contributor

@mphasize mphasize commented Sep 6, 2023

The Figma integration gets support for a new "setArc" reaction that can change the startingAngle and endingAngle on an EllipseNode. Support for setting the innerRadius of the arc is not yet part of this and it further depends on a UI update in blokdots before this becomes available to users.

Breaking change:
The "setRotation" reaction gets a new parameter origin which is now "center" by default. So instead of rotating around the top left corner, layers will now rotate around the center. No further update to the blokdots UI is needed for this to take effect (as soon as the Figma plugin was updated).
Introducing the origin parameter will allow us to figure out a way to set the desired origin corner in the blokdots UI later on, when we figure out the appropriate transformations in Figma. The current relativeTransform works only when the origin is actually in the center, while our old rotation method revolves around the top-left corner.

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.

3 participants