LogoPixi’VN
indexFunctions

Function: newLabel()

> newLabel<T>(id, steps, props?): Label<T>

Defined in: src/narration/decorators/newLabel.ts:15

Creates a new label and registers it in the system. This function must be called at least once at system startup to register the label, otherwise the system cannot be used.

Type Parameters

T

T extends object = { }

Parameters

id

string

The id of the label, it must be unique

steps

LabelSteps<T> | (() => LabelSteps<T>)

The steps of the label

props?

LabelProps<Label<T>, number>

The properties of the label

Returns

Label<T>

The created label