@mocanvas/mocanvas · function

getArrowTargetState

declare function getArrowTargetState(editor: Editor): ArrowTargetState | null

What the arrow is currently pointing at, or null when it is over empty canvas.

Reactive: read it inside a useValue or a react and the caller re-runs as the pointer moves.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.