Open orchetect opened 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.