Releases: Prozi/pixi-stats
Releases · Prozi/pixi-stats
v3.1.1
v3.0.0
- simplified api
- improved typescript types
- zero dependencies
breaking change
in v1
import { Application, Ticker, UPDATE_PRIORITY } from 'pixi.js';
import { addStats, Stats } from 'pixi-stats';
const app: Application = new Application({});
const stats: Stats = addStats(document, app);
const ticker: Ticker = Ticker.shared;
ticker.add(stats.update, stats, UPDATE_PRIORITY.UTILITY);
in v3
import { Application } from 'pixi.js';
import { Stats } from 'pixi-stats';
const app = new Application();
const stats = new Stats(app.renderer);
now does the same thing