control
constcontrol:object
Defined in: tools/lab/src/grammar/controls.ts:93
The scenario grammar — everything a *.scenario.ts file imports.
Type-only where the engine is concerned, so importing this entry pulls in no
runtime engine code and no pixi. The browser shell lives in
@yagejs-tools/lab/runner.
Type Declaration
Section titled “Type Declaration”boolean()
Section titled “boolean()”boolean(
value,opts?):BooleanControl
A checkbox.
Parameters
Section titled “Parameters”boolean
LabelOnlyOptions = {}
Returns
Section titled “Returns”int(
value,opts?):NumberControl
A slider constrained to whole numbers.
Parameters
Section titled “Parameters”number
IntControlOptions = {}
Returns
Section titled “Returns”number()
Section titled “number()”number(
value,opts?):NumberControl
A slider over a continuous range. step defaults to 0.01.
Parameters
Section titled “Parameters”number
NumberControlOptions = {}
Returns
Section titled “Returns”select()
Section titled “select()”select<
O>(value,options,opts?):SelectControl<O>
A dropdown over a fixed set of strings. options is inferred as literal
types, so setup sees the union rather than string and no as const is
needed at the call site.
Type Parameters
Section titled “Type Parameters”O extends string
Parameters
Section titled “Parameters”O
options
Section titled “options”readonly O[]
LabelOnlyOptions = {}