diff --git a/docs/package.json b/docs/package.json index d583390..cace7f0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -17,7 +17,7 @@ "gsap": "^3.12.5", "naive-ui": "^2.38.2", "nanoid": "^4.0.2", - "pixi.js": "^7.4.2", + "pixi.js": "^8.2.5", "unocss": "^0.60.0", "vue": "^3.4.27", "vue3-pixi": "workspace:^" diff --git a/packages/vue3-pixi-ui/package.json b/packages/vue3-pixi-ui/package.json index 5b23e7f..8d0e853 100644 --- a/packages/vue3-pixi-ui/package.json +++ b/packages/vue3-pixi-ui/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@pixi/ui": "^0.10.5", - "pixi.js": "^7.4.2", + "pixi.js": "^8.2.5", "vue-demi": "^0.14.8", "vue3-pixi": "workspace:^" }, diff --git a/packages/vue3-pixi/package.json b/packages/vue3-pixi/package.json index eba94e8..94f380d 100644 --- a/packages/vue3-pixi/package.json +++ b/packages/vue3-pixi/package.json @@ -62,7 +62,7 @@ "@vueuse/core": "^10.10.0", "nanoid": "^4.0.2", "pixi-filters": "^6.0.4", - "pixi.js": "^8.2.1", + "pixi.js": "^8.2.5", "vue-demi": "^0.14.8" }, "devDependencies": { diff --git a/packages/vue3-pixi/src/renderer/internal/default-renderer.ts b/packages/vue3-pixi/src/renderer/internal/default-renderer.ts index f44efd0..10f5fe7 100644 --- a/packages/vue3-pixi/src/renderer/internal/default-renderer.ts +++ b/packages/vue3-pixi/src/renderer/internal/default-renderer.ts @@ -53,7 +53,10 @@ const ContainerRender: RendererOptions = { const SpriteRender: RendererOptions = { name: 'Sprite', - createElement: props => new Sprite(normalizeTexture(props.texture)), + createElement: props => new Sprite({ + ...props, + texture: normalizeTexture(props.texture), + }), remove: (node: Sprite) => node.destroy(), } diff --git a/packages/vue3-pixi/src/renderer/internal/options.ts b/packages/vue3-pixi/src/renderer/internal/options.ts index c1c37f7..5b83edc 100644 --- a/packages/vue3-pixi/src/renderer/internal/options.ts +++ b/packages/vue3-pixi/src/renderer/internal/options.ts @@ -11,7 +11,7 @@ export function insertFilter(child: Filter, parent: Container, _anchor: any) { child.parent = parent child.destroy = remove - parent.filters!.push(child) + parent.filters.push(child) } export function nextSiblingFilter(node: Filter) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 267f6f8..6838b2c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,8 +61,8 @@ importers: specifier: ^4.0.2 version: 4.0.2 pixi.js: - specifier: ^7.4.2 - version: 7.4.2 + specifier: ^8.2.5 + version: 8.2.5 unocss: specifier: ^0.60.0 version: 0.60.4(postcss@8.4.38)(vite@5.2.12) @@ -102,10 +102,10 @@ importers: version: 4.0.2 pixi-filters: specifier: ^6.0.4 - version: 6.0.4(pixi.js@8.2.2) + version: 6.0.4(pixi.js@8.2.5) pixi.js: - specifier: ^8.2.1 - version: 8.2.2 + specifier: ^8.2.5 + version: 8.2.5 vue-demi: specifier: ^0.14.8 version: 0.14.8(vue@3.4.27) @@ -139,8 +139,8 @@ importers: specifier: ^0.10.5 version: 0.10.5(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/events@7.4.2)(@pixi/graphics@7.4.2)(@pixi/sprite@7.4.2)(@pixi/text-bitmap@7.4.2)(@pixi/text-html@7.4.2)(@pixi/text@7.4.2) pixi.js: - specifier: ^7.4.2 - version: 7.4.2 + specifier: ^8.2.5 + version: 8.2.5 vue-demi: specifier: ^0.14.8 version: 0.14.8(vue@3.4.27) @@ -1571,28 +1571,6 @@ packages: '@pixi/sprite': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) dev: false - /@pixi/accessibility@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/events@7.4.2): - resolution: {integrity: sha512-R6VEolm8uyy1FB1F2qaLKxVbzXAFTZCF2ka8fl9lsz7We6ZfO4QpXv9ur7DvzratjCQUQVCKo0/V7xL5q1EV/g==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - '@pixi/events': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - '@pixi/events': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - dev: false - - /@pixi/app@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2): - resolution: {integrity: sha512-ugkH3kOgjT8P1mTMY29yCOgEh+KuVMAn8uBxeY0aMqaUgIMysfpnFv+Aepp2CtvI9ygr22NC+OiKl+u+eEaQHw==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - dev: false - /@pixi/assets@7.4.2(@pixi/core@7.4.2): resolution: {integrity: sha512-anxho59H9egZwoaEdM5aLvYyxoz6NCy3CaQIvNHD1bbGg8L16Ih0e26QSBR5fu53jl8OjT6M7s+p6n7uu4+fGA==} peerDependencies: @@ -1612,16 +1590,6 @@ packages: resolution: {integrity: sha512-nezytU2pw587fQstUu1AsJZDVEynjskwOL+kibwcdxsMBFqPsFFNA7xl0ii/gXuDi6M0xj3mfRJj8pBSc2jCfA==} dev: false - /@pixi/compressed-textures@7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2): - resolution: {integrity: sha512-VJrt7el6O4ZJSWkeOGXwrhJaiLg1UBhHB3fj42VR4YloYkAxpfd9K6s6IcbcVz7n9L48APKBMgHyaB2pX2Ck/A==} - peerDependencies: - '@pixi/assets': 7.4.2 - '@pixi/core': 7.4.2 - dependencies: - '@pixi/assets': 7.4.2(@pixi/core@7.4.2) - '@pixi/core': 7.4.2 - dev: false - /@pixi/constants@7.4.2: resolution: {integrity: sha512-N9vn6Wpz5WIQg7ugUg2+SdqD2u2+NM0QthE8YzLJ4tLH2Iz+/TrnPKUJzeyIqbg3sxJG5ZpGGPiacqIBpy1KyA==} dev: false @@ -1661,62 +1629,6 @@ packages: resolution: {integrity: sha512-Hmx2+O0yZ8XIvgomHM9GZEGcy9S9Dd8flmtOK5Aa3fXs/8v7xD08+ANQpN9ZqWU2Xs+C6UBlpqlt2BWALvKKKA==} dev: false - /@pixi/extract@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-JOX27TRWjVEjauGBbF8PU7/g6LYXnivehdgqS5QlVDv1CNHTOrz/j3MdKcVWOhyZPbH5c9sh7lxyRxvd9AIuTQ==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-alpha@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-9OsKJ+yvY2wIcQXwswj5HQBiwNGymwmqdxfp7mo+nZSBoDmxUqvMZzE9UNJ3eUlswuNvNRO8zNOsQvwdz7WFww==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-blur@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-gOXBbIUx6CRZP1fmsis2wLzzSsofrqmIHhbf1gIkZMIQaLsc9T7brj+PaLTTiOiyJgnvGN5j20RZnkERWWKV0Q==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-color-matrix@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-ykZiR59Gvj80UKs9qm7jeUTKvn+wWk6HBVJOmJbK9jFK5juakDWp7BbH26U78Q61EWj97kI1FdfcbMkuQ7rqkA==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-displacement@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-QS/eWp/ivsxef3xapNeGwpPX7vrqQQeo99Fux4k5zsvplnNEsf91t6QYJLG776AbZEu/qh8VYRBA5raIVY/REw==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-fxaa@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-U/ptJgDsfs/r8y2a6gCaiPfDu2IFAxpQ4wtfmBpz6vRhqeE4kI8yNIUx5dZbui57zlsJaW0BNacOQxHU0vLkyQ==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - - /@pixi/filter-noise@7.4.2(@pixi/core@7.4.2): - resolution: {integrity: sha512-Vy9ViBFhZEGh6xKkd3kFWErolZTwv1Y5Qb1bV7qPIYbvBECYsqzlR4uCrrjBV6KKm0PufpG/+NKC5vICZaqKzg==} - peerDependencies: - '@pixi/core': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - dev: false - /@pixi/graphics@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2): resolution: {integrity: sha512-jH4/Tum2RqWzHGzvlwEr7HIVduoLO57Ze705N2zQPkUD57TInn5911aGUeoua7f/wK8cTLGzgB9BzSo2kTdcHw==} peerDependencies: @@ -1753,62 +1665,6 @@ packages: '@pixi/display': 7.4.2(@pixi/core@7.4.2) dev: false - /@pixi/mixin-cache-as-bitmap@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2): - resolution: {integrity: sha512-6dgthi2ruUT/lervSrFDQ7vXkEsHo6CxdgV7W/wNdW1dqgQlKfDvO6FhjXzyIMRLSooUf5FoeluVtfsjkUIYrw==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - '@pixi/sprite': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - '@pixi/sprite': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - dev: false - - /@pixi/mixin-get-child-by-name@7.4.2(@pixi/display@7.4.2): - resolution: {integrity: sha512-0Cfw8JpQhsixprxiYph4Lj+B5n83Kk4ftNMXgM5xtZz+tVLz5s91qR0MqcdzwTGTJ7utVygiGmS4/3EfR/duRQ==} - peerDependencies: - '@pixi/display': 7.4.2 - dependencies: - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - dev: false - - /@pixi/mixin-get-global-position@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2): - resolution: {integrity: sha512-LcsahbVdX4DFS2IcGfNp4KaXuu7SjAwUp/flZSGIfstyKOKb5FWFgihtqcc9ZT4coyri3gs2JbILZub/zPZj1w==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - dev: false - - /@pixi/particle-container@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2): - resolution: {integrity: sha512-B78Qq86kt0lEa5WtB2YFIm3+PjhKfw9La9R++GBSgABl+g13s2UaZ6BIPxvY3JxWMdxPm4iPrQPFX1QWRN68mw==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - '@pixi/sprite': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - '@pixi/sprite': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - dev: false - - /@pixi/prepare@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/graphics@7.4.2)(@pixi/text@7.4.2): - resolution: {integrity: sha512-PugyMzReCHXUzc3so9PPJj2OdHwibpUNWyqG4mWY2UUkb6c8NAGK1AnAPiscOvLilJcv/XQSFoNhX+N1jrvJEg==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2 - '@pixi/graphics': 7.4.2 - '@pixi/text': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - '@pixi/graphics': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/text': 7.4.2(@pixi/core@7.4.2)(@pixi/sprite@7.4.2) - dev: false - /@pixi/runner@7.4.2: resolution: {integrity: sha512-LPBpwym4vdyyDY5ucF4INQccaGyxztERyLTY1YN6aqJyyMmnc7iqXlIKt+a0euMBtNoLoxy6MWMvIuZj0JfFPA==} dev: false @@ -1821,16 +1677,6 @@ packages: ismobilejs: 1.1.1 dev: false - /@pixi/sprite-animated@7.4.2(@pixi/core@7.4.2)(@pixi/sprite@7.4.2): - resolution: {integrity: sha512-QPT6yxCUGOBN+98H3pyIZ1ZO6Y7BN1o0Q2IMZEsD1rNfZJrTYS3Q8VlCG5t2YlFlcB8j5iBo24bZb6FUxLOmsQ==} - peerDependencies: - '@pixi/core': 7.4.2 - '@pixi/sprite': 7.4.2 - dependencies: - '@pixi/core': 7.4.2 - '@pixi/sprite': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - dev: false - /@pixi/sprite-tiling@7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2): resolution: {integrity: sha512-Z8PP6ewy3nuDYL+NeEdltHAhuucVgia33uzAitvH3OqqRSx6a6YRBFbNLUM9Sx+fBO2Lk3PpV1g6QZX+NE5LOg==} peerDependencies: @@ -1853,16 +1699,6 @@ packages: '@pixi/display': 7.4.2(@pixi/core@7.4.2) dev: false - /@pixi/spritesheet@7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2): - resolution: {integrity: sha512-YIvHdpXW+AYp8vD0NkjJmrdnVHTZKidCnx6k8ATSuuvCT6O5Tuh2N/Ul2oDj4/QaePy0lVhyhAbZpJW00Jr7mQ==} - peerDependencies: - '@pixi/assets': 7.4.2 - '@pixi/core': 7.4.2 - dependencies: - '@pixi/assets': 7.4.2(@pixi/core@7.4.2) - '@pixi/core': 7.4.2 - dev: false - /@pixi/text-bitmap@7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/mesh@7.4.2)(@pixi/text@7.4.2): resolution: {integrity: sha512-lPBMJ83JnpFVL+6ckQ8KO8QmwdPm0z9Zs/M0NgFKH2F+BcjelRNnk80NI3O0qBDYSEDQIE+cFbKoZ213kf7zwA==} peerDependencies: @@ -6542,13 +6378,13 @@ packages: engines: {node: '>= 6'} dev: true - /pixi-filters@6.0.4(pixi.js@8.2.2): + /pixi-filters@6.0.4(pixi.js@8.2.5): resolution: {integrity: sha512-W9SjOTF4yo+v9t5YOBtsWhJoFLLRM6DsIk1C2YBNiQhdyX7J/5UIJtPlTMhZ7wQKoFUiyeUAaCzTEdmw/TVD6w==} peerDependencies: pixi.js: '>=8.0.0-0' dependencies: '@types/gradient-parser': 0.1.5 - pixi.js: 8.2.2 + pixi.js: 8.2.5 dev: false /pixi-projection@1.0.0(@pixi-spine/base@4.0.3)(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/graphics@7.4.2)(@pixi/mesh-extras@7.4.2)(@pixi/mesh@7.4.2)(@pixi/sprite-tiling@7.4.2)(@pixi/sprite@7.4.2)(@pixi/text@7.4.2): @@ -6576,43 +6412,8 @@ packages: '@pixi/text': 7.4.2(@pixi/core@7.4.2)(@pixi/sprite@7.4.2) dev: false - /pixi.js@7.4.2: - resolution: {integrity: sha512-TifqgHGNofO7UCEbdZJOpUu7dUnpu4YZ0o76kfCqxDa4RS8ITc9zjECCbtalmuNXkVhSEZmBKQvE7qhHMqw/xg==} - dependencies: - '@pixi/accessibility': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/events@7.4.2) - '@pixi/app': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - '@pixi/assets': 7.4.2(@pixi/core@7.4.2) - '@pixi/compressed-textures': 7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2) - '@pixi/core': 7.4.2 - '@pixi/display': 7.4.2(@pixi/core@7.4.2) - '@pixi/events': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - '@pixi/extensions': 7.4.2 - '@pixi/extract': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-alpha': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-blur': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-color-matrix': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-displacement': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-fxaa': 7.4.2(@pixi/core@7.4.2) - '@pixi/filter-noise': 7.4.2(@pixi/core@7.4.2) - '@pixi/graphics': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/mesh': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - '@pixi/mesh-extras': 7.4.2(@pixi/core@7.4.2)(@pixi/mesh@7.4.2) - '@pixi/mixin-cache-as-bitmap': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/mixin-get-child-by-name': 7.4.2(@pixi/display@7.4.2) - '@pixi/mixin-get-global-position': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - '@pixi/particle-container': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/prepare': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/graphics@7.4.2)(@pixi/text@7.4.2) - '@pixi/sprite': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2) - '@pixi/sprite-animated': 7.4.2(@pixi/core@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/sprite-tiling': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/spritesheet': 7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2) - '@pixi/text': 7.4.2(@pixi/core@7.4.2)(@pixi/sprite@7.4.2) - '@pixi/text-bitmap': 7.4.2(@pixi/assets@7.4.2)(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/mesh@7.4.2)(@pixi/text@7.4.2) - '@pixi/text-html': 7.4.2(@pixi/core@7.4.2)(@pixi/display@7.4.2)(@pixi/sprite@7.4.2)(@pixi/text@7.4.2) - dev: false - - /pixi.js@8.2.2: - resolution: {integrity: sha512-L/EmsJ74bYyFIZoF4RdaU0yOuWGR179/QMLnptCVjRhhhg4tgW7ABs7uvp2Z0psOKvpNanaRF/kIliD8Rm5dVw==} + /pixi.js@8.2.5: + resolution: {integrity: sha512-cpN4f4Duj2mDPQeDQJQ33LXA8wIGMpWbhld1SklEwESRULYPUsY84zXC8B+Cyl+zojcXH7eY1OMEdbbIPMb+rA==} dependencies: '@pixi/colord': 2.9.6 '@types/css-font-loading-module': 0.0.12