Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/sprite

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/sprite - npm Package Compare versions

Comparing version 7.0.0-alpha to 7.0.0-alpha.2

4

dist/cjs/sprite.js
/*!
* @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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc