API: forms

Interface: Ellipse

lifecycle-kit


lifecycle-kit / forms / Ellipse

Interface: Ellipse

Defined in: forms/path.ts:141

An axis-aligned ellipse, as a primitive rather than four beziers.

Both back ends draw it natively and exactly.

There is no separate circle shape. A circle is this with equal radii, and a second type would mean two ways to express one geometry and therefore two things that ought to compare equal and would not.

Properties

center

readonly center: Vec2

Defined in: forms/path.ts:143


kind

readonly kind: "ellipse"

Defined in: forms/path.ts:142


radiusX

readonly radiusX: number

Defined in: forms/path.ts:144


radiusY

readonly radiusY: number

Defined in: forms/path.ts:145