Interface: SubPath
lifecycle-kit / forms / SubPath
Interface: SubPath
Defined in: forms/path.ts:138
A run of segments from a starting point.
closed is explicit and not inferred from whether the last point equals the
first. The surveyed renderers call closePath 145 times and also draw many
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
readonlyclosed:boolean
Defined in: forms/path.ts:142
kind
readonlykind:"subpath"
Defined in: forms/path.ts:139
segments
readonlysegments: readonlySegment[]
Defined in: forms/path.ts:141
start
readonlystart:Vec2
Defined in: forms/path.ts:140
