Skip to content

Commit

Permalink
fix: map delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Piętal committed May 20, 2024
1 parent dd99e76 commit 15d2a1d
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 12 deletions.
5 changes: 5 additions & 0 deletions dist/index.d.ts
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
1 change: 0 additions & 1 deletion dist/index.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

11 changes: 11 additions & 0 deletions dist/stats-constants.d.ts
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
1 change: 0 additions & 1 deletion dist/stats-constants.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/stats-constants.js.map

This file was deleted.

17 changes: 17 additions & 0 deletions dist/stats-gl.d.ts
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
1 change: 0 additions & 1 deletion dist/stats-gl.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/stats-gl.js.map

This file was deleted.

16 changes: 16 additions & 0 deletions dist/stats-panel.d.ts
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
1 change: 0 additions & 1 deletion dist/stats-panel.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/stats-panel.js.map

This file was deleted.

23 changes: 23 additions & 0 deletions dist/stats.d.ts
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
1 change: 0 additions & 1 deletion dist/stats.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/stats.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "pixi-stats",
"version": "1.3.2",
"version": "1.3.3",
"description": "a 2024 version of stats.js + gstats",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc -p tsconfig.json",
"postbuild": "find dist -name '*.d.ts' -delete",
"postbuild": "find dist -name '*.map' -delete",
"format": "prettier --write src"
},
"repository": {
Expand Down

0 comments on commit 15d2a1d

Please sign in to comment.