@pixi/sprite-animated
Advanced tools
Comparing version 7.1.0-alpha to 7.1.0
@@ -0,3 +1,3 @@ | ||
import { Texture } from '@pixi/core'; | ||
import { Sprite } from '@pixi/sprite'; | ||
import { Texture } from '@pixi/core'; | ||
import type { IDestroyOptions } from '@pixi/display'; | ||
@@ -103,3 +103,3 @@ /** | ||
* objects that make up the animation. | ||
* @param {boolean} [autoUpdate=true] - Whether to use PIXI.Ticker.shared to auto update animation time. | ||
* @param {boolean} [autoUpdate=true] - Whether to use Ticker.shared to auto update animation time. | ||
*/ | ||
@@ -160,3 +160,3 @@ constructor(textures: Texture[] | FrameObject[], autoUpdate?: boolean); | ||
set textures(value: Texture[] | FrameObject[]); | ||
/** The AnimatedSprites current frame index. */ | ||
/** The AnimatedSprite's current frame index. */ | ||
get currentFrame(): number; | ||
@@ -169,3 +169,3 @@ set currentFrame(value: number); | ||
get playing(): boolean; | ||
/** Whether to use PIXI.Ticker.shared to auto update animation time. */ | ||
/** Whether to use Ticker.shared to auto update animation time. */ | ||
get autoUpdate(): boolean; | ||
@@ -172,0 +172,0 @@ set autoUpdate(value: boolean); |
@@ -5,4 +5,4 @@ 'use strict'; | ||
var core = require('@pixi/core'); | ||
var sprite = require('@pixi/sprite'); | ||
var core = require('@pixi/core'); | ||
@@ -90,6 +90,4 @@ class AnimatedSprite extends sprite.Sprite { | ||
if (this.loop && this.onLoop) { | ||
if (this.animationSpeed > 0 && this.currentFrame < previousFrame) { | ||
if (this.animationSpeed > 0 && this.currentFrame < previousFrame || this.animationSpeed < 0 && this.currentFrame > previousFrame) { | ||
this.onLoop(); | ||
} else if (this.animationSpeed < 0 && this.currentFrame > previousFrame) { | ||
this.onLoop(); | ||
} | ||
@@ -96,0 +94,0 @@ } |
{ | ||
"name": "@pixi/sprite-animated", | ||
"version": "7.1.0-alpha", | ||
"version": "7.1.0", | ||
"main": "lib/index.js", | ||
@@ -25,7 +25,7 @@ "module": "lib/index.mjs", | ||
"homepage": "http://pixijs.com/", | ||
"bugs": "https://github.com/pixijs/pixi.js/issues", | ||
"bugs": "https://github.com/pixijs/pixijs/issues", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pixijs/pixi.js.git" | ||
"url": "https://github.com/pixijs/pixijs.git" | ||
}, | ||
@@ -43,3 +43,3 @@ "publishConfig": { | ||
], | ||
"gitHead": "0fb26a500c738cb550da277c112d15d9dd3f87b6" | ||
"gitHead": "4079e92895ecb692afe9f0b15d3e48ee40852ada" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
62006
565