@pixi/sprite
Advanced tools
Comparing version 7.0.0-alpha to 7.0.0-alpha.2
/*! | ||
* @pixi/sprite - v7.0.0-alpha | ||
* Compiled Fri, 09 Sep 2022 16:09:18 UTC | ||
* @pixi/sprite - v7.0.0-alpha.2 | ||
* Compiled Sun, 18 Sep 2022 20:45:04 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/sprite is licensed under the MIT License. |
"use strict";/*! | ||
* @pixi/sprite - v7.0.0-alpha | ||
* Compiled Fri, 09 Sep 2022 16:09:18 UTC | ||
* @pixi/sprite - v7.0.0-alpha.2 | ||
* Compiled Sun, 18 Sep 2022 20:45:04 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/sprite is licensed under the MIT License. |
@@ -23,3 +23,5 @@ /// <reference path="./global.d.ts" /> | ||
* ```js | ||
* let sprite = PIXI.Sprite.from('assets/image.png'); | ||
* import { Sprite } from 'pixi.js'; | ||
* | ||
* const sprite = Sprite.from('assets/image.png'); | ||
* ``` | ||
@@ -31,9 +33,6 @@ * | ||
* ```js | ||
* PIXI.Loader.shared.add("assets/spritesheet.json").load(setup); | ||
* import { Assets, Sprite } from 'pixi.js'; | ||
* | ||
* function setup() { | ||
* let sheet = PIXI.Loader.shared.resources["assets/spritesheet.json"].spritesheet; | ||
* let sprite = new PIXI.Sprite(sheet.textures["image.png"]); | ||
* ... | ||
* } | ||
* const sheet = await Assets.load("assets/spritesheet.json"); | ||
* const sprite = new Sprite(sheet.textures["image.png"]); | ||
* ``` | ||
@@ -210,3 +209,5 @@ * @memberof PIXI | ||
* @example | ||
* const sprite = new PIXI.Sprite(texture); | ||
* import { Sprite } from 'pixi.js'; | ||
* | ||
* const sprite = new Sprite(Texture.WHITE); | ||
* sprite.anchor.set(0.5); // This will set the origin to center. (0.5) is same as (0.5, 0.5). | ||
@@ -213,0 +214,0 @@ */ |
{ | ||
"name": "@pixi/sprite", | ||
"version": "7.0.0-alpha", | ||
"version": "7.0.0-alpha.2", | ||
"main": "dist/cjs/sprite.js", | ||
@@ -42,3 +42,3 @@ "module": "dist/esm/sprite.mjs", | ||
], | ||
"gitHead": "da993226df64b804a9c00ed9ee4d011191467b8a" | ||
"gitHead": "439f6c1606ba63b26a93173284d25c35a7682b17" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
156888
808
0