@mocanvas/mocanvas · function

clearArrowTargetState

declare function clearArrowTargetState(editor: Editor): void

Forget the current target.

Called when a drag ends or is cancelled. Leaving stale state behind would keep the hint overlay drawn on a shape nothing is pointing at any more.

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.