@mocanvas/mocanvas · function

boxPath

declare function boxPath(box: {
    x: number;
    y: number;
    w: number;
    h: number;
}): Path2D

A rectangle at an offset, for a geometry whose bounds do not start at the origin.

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.