svelte-pixijs
v0.0.6
Published
Create PixiJS v8 apps with Svelte 5
Readme
svelte-pixijs
A fork of https://github.com/mattjennings/svelte-pixi updated for use with PixiJS v8
Check their Documentation for usage.
See changes below
Installation
You just need to install the following dependencies:
npm install pixi.js svelte-pixijschanges
- onTick callback receives a Pixi Ticker now. For delta time use
ticker.deltaTime - Some components are renamed.
- SimpleRope -> MeshRope
- SimplePlane -> MeshPlane
- NineSlicePlane -> NineSliceSprite
- There are few key changes to PixiJS Graphics API. See PixiJS v8 Migration Guide for details.
v 0.0.3
TilingSprite - Added
tileScaleandtileRotationpropsNew Component
PerspectiveMesh. PixiJS Docs - PerspectiveMeshPerspectiveMesh Props
| Name | Description | | ------ | --------- | | texture | The texture to use | | vertices |
PointLikeThe number of vertices in the plane.{ x: 10, y: 10 }| corners |PointLike []Position for each corner[{ x: 0, y: 0 }, { x: 100, y: 0 }, /*...*/ }]|
