# Interface: SubPath

[**lifecycle-kit**](https://jonbogaty.com/lifecycle-kit/api/readme/index.md)

***

[lifecycle-kit](https://jonbogaty.com/lifecycle-kit/api/readme/index.md) / [forms](https://jonbogaty.com/lifecycle-kit/api/forms/readme/index.md) / SubPath


# Interface: SubPath {#interface-subpath}


Defined in: [forms/path.ts:125](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L125)

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 {#properties}



### closed {#closed}


> `readonly` **closed**: `boolean`

Defined in: [forms/path.ts:129](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L129)

***


### kind {#kind}


> `readonly` **kind**: `"subpath"`

Defined in: [forms/path.ts:126](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L126)

***


### segments {#segments}


> `readonly` **segments**: readonly [`Segment`](https://jonbogaty.com/lifecycle-kit/api/forms/type-aliases/segment/index.md)[]

Defined in: [forms/path.ts:128](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L128)

***


### start {#start}


> `readonly` **start**: [`Vec2`](https://jonbogaty.com/lifecycle-kit/api/forms/interfaces/vec2/index.md)

Defined in: [forms/path.ts:127](https://github.com/jbcom/lifecycle-kit/blob/074e4e7b8038d3e2de9eb44c4b5b5aee0ef02b48/src/forms/path.ts#L127)
