Home
API: forms

Interface: QuadraticSegment

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / QuadraticSegment

Interface: QuadraticSegment

Defined in: forms/path.ts:108

A quadratic Bézier — one control point.

Kept distinct from cubic rather than promoted to one, even though every quadratic has an exact cubic equivalent. Promotion would mean two paths that a consumer wrote differently compare equal, which sounds harmless until a test that meant to pin "this is the cheap curve" silently stops doing so. The survey found quadraticCurveTo 134 times against bezierCurveTo 48, so the cheap curve is the common case and deserves to stay legible.

Properties

control

readonly control: Vec2

Defined in: forms/path.ts:110


kind

readonly kind: "quadratic"

Defined in: forms/path.ts:109


to

readonly to: Vec2

Defined in: forms/path.ts:111