-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jacek Piętal
committed
May 20, 2024
1 parent
dd99e76
commit 15d2a1d
Showing
16 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from './stats-constants'; | ||
export * from './stats-panel'; | ||
export * from './stats'; | ||
export * from './stats-gl'; | ||
//# sourceMappingURL=index.d.ts.map |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export declare const PR = 4; | ||
export declare const WIDTH: number; | ||
export declare const HEIGHT: number; | ||
export declare const TEXT_X = 7; | ||
export declare const TEXT_Y = 7; | ||
export declare const GRAPH_X = 7; | ||
export declare const FONT_SIZE = 20; | ||
export declare const GRAPH_Y: number; | ||
export declare const GRAPH_WIDTH: number; | ||
export declare const GRAPH_HEIGHT: number; | ||
//# sourceMappingURL=stats-constants.d.ts.map |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import BaseHooks from '@jacekpietal/gstats/dist/BaseHooks'; | ||
import { Application } from 'pixi.js'; | ||
import { Panel } from './stats-panel'; | ||
import { Stats } from './stats'; | ||
export declare class StatsJSAdapter { | ||
stats: Stats; | ||
hook: any; | ||
dcPanel: Panel; | ||
tcPanel: Panel; | ||
constructor(hook: any, stats?: Stats); | ||
update(): void; | ||
reset(): void; | ||
} | ||
export declare class PIXIHooks extends BaseHooks { | ||
constructor(app: Application); | ||
} | ||
//# sourceMappingURL=stats-gl.d.ts.map |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export declare class Panel { | ||
values: number[]; | ||
snapshotSize: number; | ||
name: string; | ||
dom: HTMLCanvasElement; | ||
context: CanvasRenderingContext2D; | ||
fg: string; | ||
bg: string; | ||
constructor(name: string, fg: string, bg: string); | ||
get min(): string; | ||
get max(): string; | ||
get averageValue(): string; | ||
pushValue(value: number): void; | ||
update(value: number, maxValue: number): void; | ||
} | ||
//# sourceMappingURL=stats-panel.d.ts.map |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { Application } from 'pixi.js'; | ||
import { StatsJSAdapter } from './stats-gl'; | ||
import { Panel } from './stats-panel'; | ||
export declare class Stats { | ||
static Panel: typeof Panel; | ||
mode: number; | ||
beginTime: number; | ||
prevTime: number; | ||
frames: number; | ||
domElement: HTMLDivElement; | ||
fpsPanel: Panel; | ||
msPanel: Panel; | ||
memPanel?: Panel; | ||
setMode: (id: number) => void; | ||
constructor(); | ||
addPanel(panel: Panel): Panel; | ||
showPanel(id: number): void; | ||
begin(): void; | ||
end(): number; | ||
update(): void; | ||
} | ||
export declare function addStats(document: Document, app: Application): StatsJSAdapter; | ||
//# sourceMappingURL=stats.d.ts.map |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters