@mocanvas/editor · class
declare class Rectangle2d extends Geometry2dAn axis-aligned rectangle, optionally offset from the shape's origin.
Methods · 6
constructor(config: Flags & {getArea(): numbergetBounds(): BoxgetLength(): numbergetVertices(): Vec[]toPathWords(): number[]Properties · 4
readonly h: numberreadonly w: numberreadonly x: numberreadonly y: numbermocanvas 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.