Installation
npm install --save @types/stats.js
Summary
This package contains type definitions for Stats.js (https://github.com/mrdoob/stats.js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js.
declare class Stats {
constructor();
REVISION: number;
dom: HTMLDivElement;
showPanel(value: number): void;
begin(): void;
end(): number;
update(): void;
addPanel(panel: Stats.Panel): Stats.Panel;
}
declare namespace Stats {
class Panel {
constructor(name: string, foregroundColor: string, backgroundColor: string);
dom: HTMLCanvasElement;
update(value: number, maxValue: number): void;
}
}
declare module "stats.js" {
export = Stats;
}
Additional Details
- Last updated: Mon, 25 Sep 2023 13:39:06 GMT
- Dependencies: none
- Global values:
Stats
Credits
These definitions were written by Gregory Dalton, Harm Berntsen, and Dan Vanderkam.