Skip to content

Commit

Permalink
Merge pull request #81 from loicpennequin/fix-animated-sprite-types
Browse files Browse the repository at this point in the history
fix: animated sprite prop types
  • Loading branch information
hairyf authored Dec 5, 2023
2 parents a251c51 + a4decb2 commit 5afa1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/elements/animated-sprite.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ I recommend using spritesheets created by TexturePacker ([they have a great tuto
| anchor | <api-point /> | `0` | The anchor sets the origin point of the text. |
| anchor-x | ^[number] | `0` | The x anchor sets the origin point of the text. |
| anchor-y | ^[number] | `0` | The y anchor sets the origin point of the text. |
| textures | ^[array]`Array<Texture \| string>` | `undefined` | The textures to use for the animation |
| textures | ^[array]`Array<Texture \| FrameObject \| string>` | `undefined` | The textures to use for the animation |
| animation-speed | ^[number] | `1` | The speed that the AnimatedSprite will play at. Higher is faster, lower is slower |
| loop | ^[boolean] | `true` | Whether or not the animate sprite repeats after playing. |
| playing | ^[boolean] | `false` | Whether or not the animation is playing. |
Expand Down
3 changes: 2 additions & 1 deletion packages/vue3-pixi/src/elements/animatedSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import type {
import type * as PIXI from 'pixi.js'
import type { AllowedPixiProps } from './props'
import type { PixiEvents } from './events'

export interface AnimatedSpriteProps extends AllowedPixiProps {
textures: (PIXI.Texture | string)[]
textures: (PIXI.Texture | PIXI.FrameObject | string)[]
width?: number
height?: number

Expand Down

1 comment on commit 5afa1d1

@vercel
Copy link

@vercel vercel bot commented on 5afa1d1 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue3-pixi – ./

vue3-pixi.vercel.app
vue3-pixi-tuimao.vercel.app
vue3-pixi-git-main-tuimao.vercel.app

Please sign in to comment.