@mocanvas/editor · class
declare class Ellipse2d extends Geometry2dAn ellipse inscribed in a width × height box at the shape's origin.
Methods · 6
constructor(config: Flags & {getArea(): numbergetBounds(): BoxgetLength(): numberThe exact perimeter, rather than the perimeter of the sampled outline.
getVertices(): Vec[]toPathWords(): number[]Properties · 2
readonly h: numberreadonly w: 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.