@mocanvas/mocanvas · function

getElbowArrowTargetBox

declare function getElbowArrowTargetBox(boxOrPoint: Box | VecLike, options?: ElbowArrowOptions, extra?: {
    target?: VecLike;
    isExact?: boolean;
}): ElbowArrowTargetBox

One end of an arrow as a target box.

Pass a Box for a bound terminal and a point for a free one; a free terminal becomes a zero-sized box at that point, with isPoint set, so the router has one kind of input to reason about.

Mentioned here

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.