Flow
Flow copied to clipboard
Make wires selectable and deletable with Delete key
- 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)
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.