@mocanvas/mocanvas · function

getElbowArrowBoxEdges

declare function getElbowArrowBoxEdges(box: Box, target?: VecLike, options?: ElbowArrowOptions): ElbowArrowBoxEdges

The four sides of box as the router sees them.

target is the point the arrow aims at — the bound anchor, or the centre — and it is what each side's crossTarget is pulled towards, clamped away from the corners by ElbowArrowOptions.minArrowDistanceFromCorner so an arrow never appears to attach to a corner rather than to a side.

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.