Skip to content

v3.0.0

Compare
Choose a tag to compare
@Prozi Prozi released this 26 Sep 13:39
· 5 commits to main since this release
  • 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