Skip to content
pixi-silk
GitHub repository
Interface

IslandGaugeOptions

import type { IslandGaugeOptions } from 'pixi-silk/ui/island';

Options of IslandGauge.

Properties#

PropertyTypeDescriptionDefined 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?ColorSourceRing colour. Default 0x30d158.packages/pixi-silk/src/ui/island/gauge.ts:16
icon?IconSourceIcon in the middle, drawn white: a string, texture, container or draw function.packages/pixi-silk/src/ui/island/gauge.ts:20
label?LabelFactoryBuilds the caption. Default PixiJS Text.packages/pixi-silk/src/ui/island/gauge.ts:28
size?numberRing diameter, local units. Default 52.packages/pixi-silk/src/ui/island/gauge.ts:22
thickness?numberRing thickness. Default 5.packages/pixi-silk/src/ui/island/gauge.ts:24
ticker?Ticker | nullnull to step it by hand with IslandGauge.tick. Default Ticker.shared.packages/pixi-silk/src/ui/island/gauge.ts:30
track?ColorSourceTrack 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