We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b4ad9 commit 21ff43dCopy full SHA for 21ff43d
‎types/stats.js/index.d.ts‎
@@ -1,17 +1,31 @@
1
declare class Stats {
2
constructor();
3
+
4
REVISION: number;
5
dom: HTMLDivElement;
6
7
+ addPanel(panel: Stats.Panel): Stats.Panel;
8
9
/**
10
* @param value 0:fps, 1: ms, 2: mb, 3+: custom
11
*/
12
showPanel(value: number): void;
13
14
begin(): void;
15
end(): number;
16
update(): void;
17
- addPanel(panel: Stats.Panel): Stats.Panel;
18
+ // Backwards Compatibility
19
20
+ /**
21
+ * @deprecated Use `dom` instead.
22
+ */
23
+ domElement: HTMLDivElement;
24
25
26
+ * @deprecated Use `showPanel` instead.
27
28
+ setMode(value: number): void;
29
}
30
31
declare namespace Stats {
0 commit comments