@mocanvas/mocanvas · interface

UpdateArrowTargetStateOpts

interface UpdateArrowTargetStateOpts

Everything updateArrowTargetState needs to work out the answer.


Properties · 6

arrow: ArrowShape | undefined

The arrow being dragged, or undefined while a new one is being created.

currentBinding: ArrowBinding | undefined

The binding this terminal already has, if any.

editor: Editor
isPrecise: boolean

Whether the user is asking for an exact anchor (the modifier is held, or they hovered).

oppositeBinding: ArrowBinding | undefined

The binding on the arrow's *other* terminal, whose side this one may not reuse.

pointInPageSpace: VecLike

The pointer, in page space.

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.