API: forms

Interface: SubPath

lifecycle-kit


lifecycle-kit / forms / SubPath

Interface: SubPath

Defined in: forms/path.ts:125

A run of segments from a starting point.

closed is explicit and not inferred from whether the last point equals the first. Deliberately open strokes — a tentacle, a filament, a belly stripe — and those two cases differ in how they fill and where they join even when the endpoints coincide. Inferring closure would silently fill a tentacle that happened to curl back on itself.

A subpath is the unit that lets one Path hold a body and its six legs without the renderer guessing where one ends and the next begins. This is exactly moveTo followed by drawing commands in both back ends.

Properties

closed

readonly closed: boolean

Defined in: forms/path.ts:129


kind

readonly kind: "subpath"

Defined in: forms/path.ts:126


segments

readonly segments: readonly Segment[]

Defined in: forms/path.ts:128


start

readonly start: Vec2

Defined in: forms/path.ts:127