@pixi/sprite-animated
Advanced tools
Comparing version 7.0.0-beta.3 to 7.0.0-beta.4
/*! | ||
* @pixi/sprite-animated - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* @pixi/sprite-animated - v7.0.0-beta.4 | ||
* Compiled Thu, 20 Oct 2022 19:45:44 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/sprite-animated is licensed under the MIT License. |
"use strict";/*! | ||
* @pixi/sprite-animated - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* @pixi/sprite-animated - v7.0.0-beta.4 | ||
* Compiled Thu, 20 Oct 2022 19:45:44 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/sprite-animated is licensed under the MIT License. |
@@ -9,9 +9,9 @@ import type { IDestroyOptions } from '@pixi/display'; | ||
* ```js | ||
* import { Texture, AnimatedSprite } from 'pixi.js'; | ||
* import { AnimatedSprite, Texture } from 'pixi.js'; | ||
* | ||
* const alienImages = [ | ||
* "image_sequence_01.png", | ||
* "image_sequence_02.png", | ||
* "image_sequence_03.png", | ||
* "image_sequence_04.png" | ||
* 'image_sequence_01.png', | ||
* 'image_sequence_02.png', | ||
* 'image_sequence_03.png', | ||
* 'image_sequence_04.png', | ||
* ]; | ||
@@ -22,5 +22,5 @@ * const textureArray = []; | ||
* { | ||
* const texture = Texture.from(alienImages[i]); | ||
* textureArray.push(texture); | ||
* }; | ||
* const texture = Texture.from(alienImages[i]); | ||
* textureArray.push(texture); | ||
* } | ||
* | ||
@@ -33,6 +33,6 @@ * const animatedSprite = new AnimatedSprite(textureArray); | ||
* @example | ||
* import { Assets, AnimatedSprite } from 'pixi.js'; | ||
* import { AnimatedSprite, Assets } from 'pixi.js'; | ||
* | ||
* const sheet = await Assets.load("assets/spritesheet.json"); | ||
* animatedSprite = new AnimatedSprite(sheet.animations["image_sequence"]); | ||
* const sheet = await Assets.load('assets/spritesheet.json'); | ||
* animatedSprite = new AnimatedSprite(sheet.animations['image_sequence']); | ||
* @memberof PIXI | ||
@@ -66,3 +66,3 @@ */ | ||
* animation.onComplete = () => { | ||
* // finished! | ||
* // Finished! | ||
* }; | ||
@@ -75,3 +75,3 @@ */ | ||
* animation.onFrameChange = () => { | ||
* // updated! | ||
* // Updated! | ||
* }; | ||
@@ -85,3 +85,3 @@ */ | ||
* animation.onLoop = () => { | ||
* // looped! | ||
* // Looped! | ||
* }; | ||
@@ -88,0 +88,0 @@ */ |
{ | ||
"name": "@pixi/sprite-animated", | ||
"version": "7.0.0-beta.3", | ||
"version": "7.0.0-beta.4", | ||
"main": "dist/cjs/sprite-animated.js", | ||
@@ -42,3 +42,3 @@ "module": "dist/esm/sprite-animated.mjs", | ||
], | ||
"gitHead": "8055ae1c16d4c0f8dabda86cafd8e68c356450e8" | ||
"gitHead": "a4581e4a49d23afc98fcf726765c9d54e51c3c39" | ||
} |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108131