@pixi/sprite-animated
Advanced tools
Comparing version 5.0.0-rc to 5.0.0-rc.2
/*! | ||
* @pixi/sprite-animated - v5.0.0-rc | ||
* Compiled Fri, 01 Feb 2019 04:50:10 UTC | ||
* @pixi/sprite-animated - v5.0.0-rc.2 | ||
* Compiled Mon, 18 Feb 2019 23:45:28 UTC | ||
* | ||
@@ -89,2 +89,16 @@ * @pixi/sprite-animated is licensed under the MIT License. | ||
/** | ||
* Update anchor to [Texture's defaultAnchor]{@link PIXI.Texture#defaultAnchor} when frame changes. | ||
* | ||
* Useful with [sprite sheet animations]{@link PIXI.Spritesheet#animations} created with tools. | ||
* Changing anchor for each frame allows to pin sprite origin to certain moving feature | ||
* of the frame (e.g. left foot). | ||
* | ||
* Note: Enabling this will override any previously set `anchor` on each frame change. | ||
* | ||
* @member {boolean} | ||
* @default false | ||
*/ | ||
this.updateAnchor = false; | ||
/** | ||
* Function to call when a AnimatedSprite finishes playing. | ||
@@ -296,2 +310,7 @@ * | ||
if (this.updateAnchor) | ||
{ | ||
this._anchor.copy(this._texture.defaultAnchor); | ||
} | ||
if (this.onFrameChange) | ||
@@ -298,0 +317,0 @@ { |
/*! | ||
* @pixi/sprite-animated - v5.0.0-rc | ||
* Compiled Fri, 01 Feb 2019 04:50:10 UTC | ||
* @pixi/sprite-animated - v5.0.0-rc.2 | ||
* Compiled Mon, 18 Feb 2019 23:45:28 UTC | ||
* | ||
@@ -93,2 +93,16 @@ * @pixi/sprite-animated is licensed under the MIT License. | ||
/** | ||
* Update anchor to [Texture's defaultAnchor]{@link PIXI.Texture#defaultAnchor} when frame changes. | ||
* | ||
* Useful with [sprite sheet animations]{@link PIXI.Spritesheet#animations} created with tools. | ||
* Changing anchor for each frame allows to pin sprite origin to certain moving feature | ||
* of the frame (e.g. left foot). | ||
* | ||
* Note: Enabling this will override any previously set `anchor` on each frame change. | ||
* | ||
* @member {boolean} | ||
* @default false | ||
*/ | ||
this.updateAnchor = false; | ||
/** | ||
* Function to call when a AnimatedSprite finishes playing. | ||
@@ -300,2 +314,7 @@ * | ||
if (this.updateAnchor) | ||
{ | ||
this._anchor.copy(this._texture.defaultAnchor); | ||
} | ||
if (this.onFrameChange) | ||
@@ -302,0 +321,0 @@ { |
{ | ||
"name": "@pixi/sprite-animated", | ||
"version": "5.0.0-rc", | ||
"version": "5.0.0-rc.2", | ||
"main": "lib/sprite-animated.js", | ||
@@ -28,5 +28,5 @@ "module": "lib/sprite-animated.es.js", | ||
"dependencies": { | ||
"@pixi/core": "^5.0.0-rc", | ||
"@pixi/sprite": "^5.0.0-rc", | ||
"@pixi/ticker": "^5.0.0-rc" | ||
"@pixi/core": "^5.0.0-rc.2", | ||
"@pixi/sprite": "^5.0.0-rc.2", | ||
"@pixi/ticker": "^5.0.0-rc.2" | ||
}, | ||
@@ -36,3 +36,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "9026a1bbca9a9d86b7a3b6d5eb4fa2c3145c2b85" | ||
"gitHead": "53b354f4e01d3baee7223756dd09a3163ad29d0f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62504
790
Updated@pixi/core@^5.0.0-rc.2
Updated@pixi/sprite@^5.0.0-rc.2
Updated@pixi/ticker@^5.0.0-rc.2