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

Make wires selectable and deletable with Delete key #9

Open
orchetect opened this issue Sep 3, 2022 · 1 comment
Open

Make wires selectable and deletable with Delete key #9

orchetect opened this issue Sep 3, 2022 · 1 comment

Comments

@orchetect
Copy link
Member

  • Click on a wire body and have it visually feedback by showing it is selected
  • Then be able to hit Delete on the keyboard to remove the connection (or trigger the delete by way of a method)
@wtholliday
Copy link
Member

This is important for graphs that allow multiple wires connected to an input port (e.g. event-based things like midi routing).

I couldn't find any functions in the apple apis for hit testing against bezier strokes. A reasonable method would be just to subdivide the bezier path and early-reject segments that don't intersect with a query rectangle.

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

No branches or pull requests

2 participants