IslandMeterOptions
import type { IslandMeterOptions } from 'pixi-silk/ui/island';
Options of IslandMeter.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
format? | (value: number) => string | Formats the number. Default rounded. | packages/pixi-silk/src/ui/island/meter.ts:15 |
history? | number | Samples kept for the bars. 0 hides them. Default 18. | packages/pixi-silk/src/ui/island/meter.ts:21 |
label? | LabelFactory | Builds the text. Default PixiJS Text. | packages/pixi-silk/src/ui/island/meter.ts:25 |
max? | number | Top of the bar scale. Default the largest sample kept. | packages/pixi-silk/src/ui/island/meter.ts:23 |
title | string | Small caption above the number, such as FPS. | packages/pixi-silk/src/ui/island/meter.ts:11 |
tone? | (value: number) => ColorSource | Colour of the number and the bars for a value. Default white. | packages/pixi-silk/src/ui/island/meter.ts:17 |
value | | ReadSignal<number> | ReadSignal<number | null> | The number to show. null shows a dash. | packages/pixi-silk/src/ui/island/meter.ts:13 |
width? | number | Box width, local units. Default 76. | packages/pixi-silk/src/ui/island/meter.ts:19 |