Flow icon indicating copy to clipboard operation
Flow copied to clipboard

Make wires selectable and deletable with Delete key

Open orchetect opened this issue 2 years ago • 1 comments

  • 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)

orchetect avatar Sep 03 '22 04:09 orchetect

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.

wtholliday avatar Sep 03 '22 20:09 wtholliday