IslandGaugeOptions
import type { IslandGaugeOptions } from 'pixi-silk/ui/island';
Options of IslandGauge.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
caption? | false | ((value: number) => string) | Caption under the ring, from the value. false hides it. Default the percentage. | packages/pixi-silk/src/ui/island/gauge.ts:26 |
color? | ColorSource | Ring colour. Default 0x30d158. | packages/pixi-silk/src/ui/island/gauge.ts:16 |
icon? | IconSource | Icon in the middle, drawn white: a string, texture, container or draw function. | packages/pixi-silk/src/ui/island/gauge.ts:20 |
label? | LabelFactory | Builds the caption. Default PixiJS Text. | packages/pixi-silk/src/ui/island/gauge.ts:28 |
size? | number | Ring diameter, local units. Default 52. | packages/pixi-silk/src/ui/island/gauge.ts:22 |
thickness? | number | Ring thickness. Default 5. | packages/pixi-silk/src/ui/island/gauge.ts:24 |
ticker? | Ticker | null | null to step it by hand with IslandGauge.tick. Default Ticker.shared. | packages/pixi-silk/src/ui/island/gauge.ts:30 |
track? | ColorSource | Track colour, drawn at 18% alpha. Default white. | packages/pixi-silk/src/ui/island/gauge.ts:18 |
value? | | number | ReadSignal<number> | 0..1, or a signal to follow. Default 0. | packages/pixi-silk/src/ui/island/gauge.ts:14 |