Created by Justin Chang, Son Phatpanichot, Mehdi Essoussi, and Achu Mukundan
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue
types.
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint
- PixiJS Version 7: The method
app.renderer.resize(width, height)
is specific to this version, as documented in the PixiJS v7 Application Renderer Docs. - PixiJS Version 4.8.9: The methods
beginFill
,lineStyle
,drawCircle
, andendFill
are deprecated as per the PixiJS 4.8.9 documentation.
PIXI.Application
: Core container for rendering.app.stage
: The root container of the scene graph.
graphic.beginFill(color)
- Deprecated in PixiJS 4.8.9
Reference: PixiJS 4.8.9 Docsgraphic.lineStyle(width)
- Deprecated in PixiJS 4.8.9
Reference: PixiJS 4.8.9 Docsgraphic.drawCircle(x, y, radius)
- Deprecated in PixiJS 4.8.9
Reference: PixiJS 4.8.9 Docsgraphic.endFill()
- Deprecated in PixiJS 4.8.9
Reference: PixiJS 4.8.9 Docsgraphic.clear()
app.renderer.resize(width, height)
Introduced in PixiJS 7.
Reference: PixiJS 7 Docsgraphic.position.set(x, y)
app.stage.on(event, callback)
graphic.on(event, callback)
app.stage.interactive
graphic.interactive
graphic.buttonMode