@mocanvas/editor · class

Ellipse2d

declare class Ellipse2d extends Geometry2d

An ellipse inscribed in a width × height box at the shape's origin.


Methods · 6

constructor(config: Flags & {
getArea(): number
getBounds(): Box
getLength(): number

The exact perimeter, rather than the perimeter of the sampled outline.

getVertices(): Vec[]
toPathWords(): number[]

Properties · 2

readonly h: number
readonly w: number

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.