IslandMeter
import { IslandMeter } from 'pixi-silk/ui/island';
A caption, a number and a row of bars with its recent values: FPS, frame time, draw calls or
any live count. Its box is width by 64 from (0, 0). It redraws when the value changes, not
every frame.
Extends#
Container
Constructors#
Constructor#
new IslandMeter(options: IslandMeterOptions): IslandMeter;
Parameters#
| Parameter | Type |
|---|---|
options | IslandMeterOptions |
Returns#
IslandMeter
Overrides#
Container.constructor
Accessors#
samples#
Get Signature#
get samples(): readonly number[];
Recent values, oldest first.
Returns
readonly number[]
Methods#
destroy()#
destroy(options?: DestroyOptions): void;
Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
Parameters#
| Parameter | Type | Description |
|---|---|---|
options? | DestroyOptions | Options parameter. A boolean will act as if all options have been set to that value |
Returns#
void
Example#
container.destroy();
container.destroy(true);
container.destroy({ children: true });
container.destroy({ children: true, texture: true, textureSource: true });
Overrides#
Container.destroy