(px: number, py: number)
| 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; |
no test coverage detected