Home
API: forms

Function: tagPath()

lifecycle-kit

lifecycle-kit


lifecycle-kit / forms / tagPath

Function: tagPath()

tagPath(path, part, index): Path

Defined in: forms/path.ts:287

Tag every shape in a path as belonging to one part.

The operator pair and repeat use when they emit a repetition: build the geometry once, then stamp it. Existing tags are overwritten, because the outermost rule is the one whose anatomy the consumer cares about — a taper nested inside a pair is still a leg.

Parameters

path

Path

part

string

index

number

Returns

Path