@mocanvas/mocanvas · interface

ElbowArrowTargetBox

interface ElbowArrowTargetBox extends ElbowArrowBox

One end of an elbow arrow: the box it attaches to, plus how it may attach.

A terminal that is not bound to anything is still a target box — a zero-sized one at the terminal's point, with isPoint set — so the router has one shape of input rather than two.


Properties · 4

edges: ElbowArrowBoxEdges
isExact: boolean

Whether the terminal must land exactly on ElbowArrowTargetBox.target.

isPoint: boolean

Whether this end is a bare point rather than a bound shape.

target: Vec

The point the arrow aims at: the anchor if bound, else the box's centre.

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.