Skip to content

Commit

Permalink
feat: update docs pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Jul 22, 2024
1 parent 9be21e0 commit 3e91bf1
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 215 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3-pixi-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:^"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vue3-pixi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 4 additions & 1 deletion packages/vue3-pixi/src/renderer/internal/default-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vue3-pixi/src/renderer/internal/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
221 changes: 11 additions & 210 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e91bf1

Please sign in to comment.