@mocanvas/mocanvas · class

ArrowBindingUtil

declare class ArrowBindingUtil extends BindingUtil<ArrowBinding>

Keeps arrows attached to the shapes their terminals are bound to.

- When the bound shape changes, the arrow is rewritten so its geometry is re-derived (and its static fallback stays current). - When the bound shape goes away, or the binding is deleted with isolateShapes, the terminal is frozen at its current page position.


Methods · 6

getDefaultProps(): ArrowBindingProps
onAfterChangeFromShape({ binding, shapeBefore, shapeAfter }: BindingOnShapeChangeOptions<ArrowBinding>): void
onAfterChangeToShape({ binding }: BindingOnShapeChangeOptions<ArrowBinding>): void
onBeforeDeleteToShape({ binding }: BindingOnShapeDeleteOptions<ArrowBinding>): void
onBeforeIsolateFromShape({ binding }: BindingOnShapeIsolateOptions<ArrowBinding>): void
onBeforeIsolateToShape({ binding }: BindingOnShapeIsolateOptions<ArrowBinding>): void

Properties · 1

static type: "arrow"

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.