import type { NumberFieldOptions } from 'pixi-silk/ui/inspector';
Options of NumberField.
Extends#
Properties#
| Property | Type | Description | Defined in |
|---|
max? | number | Highest value. Scrubs and typed values clamp to it. Default no limit. | ui/panels/fields.ts:149 |
min? | number | Lowest value. Scrubs and typed values clamp to it. Default no limit. | ui/panels/fields.ts:147 |
perPixel? | number | Change per pixel of a scrub. Default step. | ui/panels/fields.ts:153 |
precision? | number | Decimals shown. Default from the step. | ui/panels/fields.ts:157 |
prefix? | string | A short name inside the field, such as X or W. Drag it to scrub. | ui/panels/fields.ts:145 |
step? | number | Snap step of scrubs. Default 1. | ui/panels/fields.ts:151 |
unit? | string | Shown after the value, such as px or %. | ui/panels/fields.ts:155 |
Methods#
begin()#
begin(): void;
A gesture starts. Capture the values to undo to.
Returns#
void
Inherited from#
FieldEdit.begin
end()#
end(): void;
The gesture ends. Record one undo step.
Returns#
void
Inherited from#
FieldEdit.end
input(values: readonly number[]): void;
New values, one per edited object, while the gesture runs. Write them through.
Parameters#
| Parameter | Type |
|---|
values | readonly number[] |
Returns#
void
Inherited from#
FieldEdit.input