AudioKit / Flow

Generic node graph editor
https://www.audiokit.io/Flow/
MIT License
302 stars 17 forks source link

Make wires selectable and deletable with Delete key #9

Open orchetect opened 2 years ago

orchetect commented 2 years ago
wtholliday commented 2 years ago

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.