@mocanvas/mocanvas · interface

ArrowBindingProps

interface ArrowBindingProps

Props of an arrow binding. The record layout matches what .tldr files store for arrow bindings so documents round-trip.


Properties · 4

isExact: boolean

When true the terminal sits exactly on the anchor instead of on the shape's outline.

isPrecise: boolean

When true the anchor was placed deliberately (Alt or a lingering drag) rather than snapped to the center.

normalizedAnchor: {

Anchor inside the bound shape's geometry bounds, normalized to [0, 1].

terminal: ArrowTerminal

Which end of the arrow (fromId) is attached to the bound shape (toId).

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.