-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dragging elements in a rotated coordinate system #751
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
base: master
Are you sure you want to change the base?
Conversation
@yanusa3 are you using this forked rotated coordinate system? Is it production ready? |
Yes, it's working for us already. We use it in cartography. |
Awesome. Thank you for this contribution!
…On Thu, 5 Sept 2024, 8:22 pm Yan Alekseenko, ***@***.***> wrote:
@yanusa3 <https://github.com/yanusa3> are you using this forked rotated
coordinate system? Is it production ready?
Yes, it's working for us already
—
Reply to this email directly, view it on GitHub
<#751 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAYBWFPWO5DFU2MO3VKTVDZVBVZXAVCNFSM6AAAAABHMKDJDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZRHEZDINZRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
why not add a description to the PR? or a gif? |
Sorry, I forgot about this |
Added angle dimension
return { | ||
node: coreData.node, | ||
x: draggable.state.x + (coreData.deltaX / scale), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice; however the vast majority of usage of this library will have angle: 0
, and I don't want to add overhead to every user just for this edge case. Can you clean this up so the code only runs if draggable.props.angle
is 0?
No description provided.