@mocanvas/mocanvas · function
declare function getBoundElbowAxes(editor: Editor, arrow: ArrowShape, terminals: ArrowTerminals): ElbowTerminalAxesFor each bound terminal, the axis of the normal of the bound shape's nearest
edge: "x" on a left or right edge, "y" on a top or bottom one. An elbow
arrow routes its first and last leg along these, so it leaves and enters a
bound shape square-on instead of diagonally. A free terminal is absent from
the result and the router falls back to the dominant axis.
The bound shape's bounds are measured in arrow space, so a rotated shape is compared against the box it occupies from the arrow's point of view — which is the frame the route itself is built in.
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.