viral-viewer-2 3.4.3 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,7 @@
1
1
  import { ViralViewerApi } from "../../viral-viewer-api";
2
- declare class Stats {
3
- constructor();
4
- REVISION: number;
5
- dom: HTMLDivElement;
6
- /**
7
- * @param value 0:fps, 1: ms, 2: mb, 3+: custom
8
- */
9
- showPanel(value: number): void;
10
- begin(): void;
11
- end(): number;
12
- update(): void;
13
- addPanel(panel: Stats.Panel): Stats.Panel;
14
- }
15
- declare namespace Stats {
16
- class Panel {
17
- constructor(name: string, foregroundColor: string, backgroundColor: string);
18
- dom: HTMLCanvasElement;
19
- update(value: number, maxValue: number): void;
20
- }
21
- }
2
+ import * as Stats from "stats.js";
22
3
  export declare class ViralStats {
23
4
  viralViewerApi: ViralViewerApi;
24
5
  stats: Stats | null;
25
6
  constructor(viralViewerApi: ViralViewerApi);
26
7
  }
27
- export {};
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ViralStats = void 0;
4
+ const Stats = require("stats.js");
4
5
  class ViralStats {
5
6
  constructor(viralViewerApi) {
6
7
  this.viralViewerApi = viralViewerApi;
@@ -1 +1 @@
1
- {"version":3,"file":"viral-stats.js","sourceRoot":"","sources":["../../../src/components/stats/viral-stats.ts"],"names":[],"mappings":";;;AA4BA,MAAa,UAAU;IAErB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAD1C,UAAK,GAAiB,IAAI,CAAC;QAEhC,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE;YACrC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC/D;IACH,CAAC;CACF;AATD,gCASC"}
1
+ {"version":3,"file":"viral-stats.js","sourceRoot":"","sources":["../../../src/components/stats/viral-stats.ts"],"names":[],"mappings":";;;AACA,kCAAkC;AAElC,MAAa,UAAU;IAErB,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAD1C,UAAK,GAAiB,IAAI,CAAC;QAEhC,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE;YACrC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC/D;IACH,CAAC;CACF;AATD,gCASC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",