Skip to content

Interface: ControlMeta<T>

Defined in: control.ts:42

Constraint / presentation metadata for a control's value.

Extended by

Type Parameters

T

T

Properties

max?

optional max?: number

Defined in: control.ts:46

Inclusive upper bound (numbers). Out-of-range writes are CLAMPED.


min?

optional min?: number

Defined in: control.ts:44

Inclusive lower bound (numbers). Out-of-range writes are CLAMPED.


options?

optional options?: readonly T[]

Defined in: control.ts:52

Legal values (enums). A write outside the set THROWS.


step?

optional step?: number

Defined in: control.ts:48

Snap increment (numbers), anchored at min (else 0).


unit?

optional unit?: string

Defined in: control.ts:50

Display unit ("eV", "ms") — presentation only.