Skip to content

Ordered

The Ordered class represents a collection of tick values.

Constructors

new Ordered(order)

new Ordered(order): Ordered

Constructs a new Ordered object.

Parameters

order: OrderedData= {}

The initial tick values.

Returns

Ordered

Source

ecmascript/src/ordered.ts:25

Methods

changeComponent()

changeComponent(id, key, tick): boolean

Changes the tick value of a component.

Parameters

id: string

The ID of the component.

key: string

The key of the component.

tick: number

The new tick value.

Returns

boolean

Whether the operation was successful.

Source

ecmascript/src/ordered.ts:37


reset()

reset(order): void

Resets the tick values.

Parameters

order: OrderedData= {}

The new tick values.

Returns

void

The Ordered object.

Source

ecmascript/src/ordered.ts:47


upsertComponent()

upsertComponent(id, key, tick): boolean

Inserts or updates the tick value of a component.

Parameters

id: string

The ID of the component.

key: string

The key of the component.

tick: number

The new tick value.

Returns

boolean

Whether the operation was successful.

Source

ecmascript/src/ordered.ts:59


Generated using typedoc-plugin-markdown and TypeDoc