Skip to content
pixi-silk
GitHub repository
Interface

NumberFieldSpec

import type { NumberFieldSpec } from 'pixi-silk/ui/inspector';

A number you scrub or type.

Properties#

PropertyTypeDescriptionDefined in
keystringDot path of the value, such as alpha or position.x.ui/panels/Inspector.ts:33
label?stringRow label. Also names the undo step. Default none: the row has no label and the step uses the key.ui/panels/Inspector.ts:35
max?numberHighest value. Scrubs and typed values clamp to it. Default no limit.ui/panels/Inspector.ts:39
min?numberLowest value. Scrubs and typed values clamp to it. Default no limit.ui/panels/Inspector.ts:37
perPixel?numberChange per pixel of a scrub. Default step.ui/panels/Inspector.ts:43
precision?numberDecimals shown. Default from the step.ui/panels/Inspector.ts:47
step?numberSnap step. Default 1.ui/panels/Inspector.ts:41
type"number"Field kind.ui/panels/Inspector.ts:31
unit?stringShown after the value, such as px, % or deg.ui/panels/Inspector.ts:45