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

Fix the hold-alt-to-intersect feature when using breakpoints #2586

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

joeyballentine
Copy link
Member

This mostly fixes using the alt-intersect feature when also using breakpoints. Now, it properly checks straight lines between breakpoints and half-curves for the other edges that are attached to breakpoints but also nodes.

The only issue is that it seems Bezier.js doesn't take curvature into account the same way an SVG does, so the "sticking out" part of a curve won't get collision detected, since the curve along that point (close to the handle) is different in bezier.js. I don't think this is something we can fix unless we fork bezierjs or write our own bezier code.

@joeyballentine joeyballentine merged commit f7c46ce into main Feb 16, 2024
7 checks passed
@joeyballentine joeyballentine deleted the fix-breakpoint-alt-hold-intersect branch February 16, 2024 13:27
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.

2 participants