AnimatedSprite
Defined in: display/AnimatedSprite.ts:15
Extends
AnimatedSprite
Constructors
new AnimatedSprite()
new AnimatedSprite(
config
?):AnimatedSprite
Defined in: display/AnimatedSprite.ts:31
Parameters
config?
Partial
<AnimatedSpriteProps
>
Returns
Overrides
PIXIAnimatedSprite.constructor
Properties
autoPlay
autoPlay:
boolean
Defined in: display/AnimatedSprite.ts:27
currentAnimation
currentAnimation:
string
Defined in: display/AnimatedSprite.ts:28
defaultAnimation
defaultAnimation:
string
Defined in: display/AnimatedSprite.ts:24
defaultAnimationSpeed
defaultAnimationSpeed:
number
Defined in: display/AnimatedSprite.ts:25
defaultSheet
defaultSheet:
undefined
|string
Defined in: display/AnimatedSprite.ts:23
defaultTexturePrefix
defaultTexturePrefix:
string
=''
Defined in: display/AnimatedSprite.ts:22
defaultZeroPad
defaultZeroPad:
undefined
|number
Defined in: display/AnimatedSprite.ts:26
onAnimationChange
onAnimationChange:
Signal
<(currentAnimation
) =>void
>
Defined in: display/AnimatedSprite.ts:16
onAnimationComplete
onAnimationComplete:
Signal
<() =>void
>
Defined in: display/AnimatedSprite.ts:20
onAnimationFrameChange
onAnimationFrameChange:
Signal
<() =>void
>
Defined in: display/AnimatedSprite.ts:21
onAnimationLoop
onAnimationLoop:
Signal
<() =>void
>
Defined in: display/AnimatedSprite.ts:19
onAnimationStart
onAnimationStart:
Signal
<() =>void
>
Defined in: display/AnimatedSprite.ts:17
onAnimationStop
onAnimationStop:
Signal
<() =>void
>
Defined in: display/AnimatedSprite.ts:18
Accessors
isReversed
Get Signature
get isReversed():
boolean
Defined in: display/AnimatedSprite.ts:83
Returns
boolean
paused
Get Signature
get paused():
boolean
Defined in: display/AnimatedSprite.ts:65
Returns
boolean
Set Signature
set paused(
value
):void
Defined in: display/AnimatedSprite.ts:69
Parameters
value
boolean
Returns
void
speed
Get Signature
get speed():
number
Defined in: display/AnimatedSprite.ts:73
Returns
number
Set Signature
set speed(
value
):void
Defined in: display/AnimatedSprite.ts:77
Parameters
value
number
Returns
void
Methods
nextAnimation()
nextAnimation():
void
Defined in: display/AnimatedSprite.ts:158
Returns
void
play()
play():
void
Defined in: display/AnimatedSprite.ts:148
Plays the AnimatedSprite.
Returns
void
Overrides
PIXIAnimatedSprite.play
previousAnimation()
previousAnimation():
void
Defined in: display/AnimatedSprite.ts:165
Returns
void
reverse()
reverse():
void
Defined in: display/AnimatedSprite.ts:120
Returns
void
setAnimation()
setAnimation(
animationName
,autoPlay
):void
Defined in: display/AnimatedSprite.ts:129
Parameters
animationName
string
autoPlay
boolean
= true
Returns
void
stop()
stop():
void
Defined in: display/AnimatedSprite.ts:153
Stops the AnimatedSprite.
Returns
void
Overrides
PIXIAnimatedSprite.stop
update()
update(
ticker
):void
Defined in: display/AnimatedSprite.ts:172
Updates the object transform for rendering.
Parameters
ticker
Ticker
the ticker to use to update the object.
Returns
void
Overrides
PIXIAnimatedSprite.update
generateTexturesFromProps()
static
generateTexturesFromProps(animationName
,props
?,defaultTexturePrefix
?,defaultSheet
?,defaultZeroPad
?):Texture
[]
Defined in: display/AnimatedSprite.ts:87
Parameters
animationName
string
props?
Partial
<AnimatedSpriteProps
>
defaultTexturePrefix?
string
= ''
defaultSheet?
SpriteSheetLike
= undefined
defaultZeroPad?
number
Returns
Texture
[]