@mocanvas/mocanvas · function

getArrowheadGeometry

declare function getArrowheadGeometry(kind: ArrowheadKind, tip: VecLike, dir: VecLike, length: number): Geometry2d | null

Arrowhead geometry with its tip at tip, pointing along unit dir (from the body outward). Closed heads are filled; open ones are polylines.

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.