MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / hitTest

Function hitTest

dashboard/graph/src/GraphCanvas.tsx:129–133  ·  view source on GitHub ↗
(px: number, py: number)

Source from the content-addressed store, hash-verified

127 }
128
129 function hitTest(px: number, py: number): SimNode | null {
130 const sim = simRef.current;
131 if (!sim) return null;
132 return hitTestNode(sim.nodes, cameraRef.current, canvas.getBoundingClientRect(), { x: px, y: py });
133 }
134
135 function neighborhood(node: SimNode | null): Set<string> | null {
136 const sim = simRef.current;

Callers 3

onPointerDownFunction · 0.85
onPointerMoveFunction · 0.85
onDoubleClickFunction · 0.85

Calls 1

hitTestNodeFunction · 0.90

Tested by

no test coverage detected