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

Use screenToFlowPosition() instead of project() #2459

Merged
merged 2 commits into from Jan 13, 2024

Conversation

joeyballentine
Copy link
Member

Saw a react flow warning about project being deprecated, so i found the instances we were still using it and replaced them.

The functionality is a little different -- they automatically offset the viewport coordinates so you don't have to, which is nice for the few areas where we were doing that, but bad for the areas where we weren't doing that, so I adjusted and tested each of these scenarios.

Side note: I've had a reminder in my phone for about a year that just says "general file copy and paste" and I wasn't sure what that referred to until now. We hardcoded the schemaId for the load image node rather than implementing a general copy and paste feature like we did for drag and drop.

@joeyballentine joeyballentine merged commit 477db2c into main Jan 13, 2024
4 checks passed
@joeyballentine joeyballentine deleted the usescreenToFlowPositioninsteadofproject branch January 13, 2024 13:36
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.

None yet

2 participants