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

@pixi/sprite-tiling

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/sprite-tiling - npm Package Compare versions

Comparing version 6.3.2 to 6.4.0

27

dist/browser/sprite-tiling.js
/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -206,3 +206,2 @@ * @pixi/sprite-tiling is licensed under the MIT License.

* A tiling sprite is a fast way of rendering a tiling image.
*
* @memberof PIXI

@@ -230,3 +229,2 @@ */

* Allows to customize the rendering process without overriding '_render' method.
*
* @default 'tilingSprite'

@@ -242,3 +240,2 @@ */

* Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas
*
* @default 0.5

@@ -290,3 +287,2 @@ * @member {number}

* Renders the object using the WebGL renderer
*
* @param renderer - The renderer

@@ -315,5 +311,4 @@ */

* Gets the local bounds of the sprite object.
*
* @param rect - Optional output rectangle.
* @return The bounds.
* @returns The bounds.
*/

@@ -339,5 +334,4 @@ TilingSprite.prototype.getLocalBounds = function (rect) {

* Checks if a point is inside this tiling sprite.
*
* @param point - The point to check.
* @return Whether or not the sprite contains the point.
* @returns Whether or not the sprite contains the point.
*/

@@ -359,3 +353,2 @@ TilingSprite.prototype.containsPoint = function (point) {

* Destroys this sprite and optionally its texture and children
*
* @param {object|boolean} [options] - Options parameter. A boolean will act as if all options

@@ -376,9 +369,8 @@ * have been set to that value

* The source can be - frame id, image url, video url, canvas element, video element, base texture
*
* @static
* @param {string|PIXI.Texture|HTMLCanvasElement|HTMLVideoElement} source - Source to create texture from
* @param {Object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {number} options.width - required width of the tiling sprite
* @param {number} options.height - required height of the tiling sprite
* @return {PIXI.TilingSprite} The newly created texture
* @returns {PIXI.TilingSprite} The newly created texture
*/

@@ -429,3 +421,2 @@ TilingSprite.from = function (source, options) {

* WebGL renderer plugin for tiling sprites
*
* @class

@@ -439,3 +430,2 @@ * @memberof PIXI

* constructor for renderer
*
* @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.

@@ -450,3 +440,2 @@ */

* The WebGL state in which this renderer will work.
*
* @member {PIXI.State}

@@ -458,5 +447,3 @@ * @readonly

}
/**
* Creates shaders when context is initialized.
*/
/** Creates shaders when context is initialized. */
TilingSpriteRenderer.prototype.contextChange = function () {

@@ -463,0 +450,0 @@ var renderer = this.renderer;

/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/sprite-tiling is licensed under the MIT License.

/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -50,3 +50,2 @@ * @pixi/sprite-tiling is licensed under the MIT License.

* A tiling sprite is a fast way of rendering a tiling image.
*
* @memberof PIXI

@@ -74,3 +73,2 @@ */

* Allows to customize the rendering process without overriding '_render' method.
*
* @default 'tilingSprite'

@@ -86,3 +84,2 @@ */

* Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas
*
* @default 0.5

@@ -134,3 +131,2 @@ * @member {number}

* Renders the object using the WebGL renderer
*
* @param renderer - The renderer

@@ -159,5 +155,4 @@ */

* Gets the local bounds of the sprite object.
*
* @param rect - Optional output rectangle.
* @return The bounds.
* @returns The bounds.
*/

@@ -183,5 +178,4 @@ TilingSprite.prototype.getLocalBounds = function (rect) {

* Checks if a point is inside this tiling sprite.
*
* @param point - The point to check.
* @return Whether or not the sprite contains the point.
* @returns Whether or not the sprite contains the point.
*/

@@ -203,3 +197,2 @@ TilingSprite.prototype.containsPoint = function (point) {

* Destroys this sprite and optionally its texture and children
*
* @param {object|boolean} [options] - Options parameter. A boolean will act as if all options

@@ -220,9 +213,8 @@ * have been set to that value

* The source can be - frame id, image url, video url, canvas element, video element, base texture
*
* @static
* @param {string|PIXI.Texture|HTMLCanvasElement|HTMLVideoElement} source - Source to create texture from
* @param {Object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {number} options.width - required width of the tiling sprite
* @param {number} options.height - required height of the tiling sprite
* @return {PIXI.TilingSprite} The newly created texture
* @returns {PIXI.TilingSprite} The newly created texture
*/

@@ -273,3 +265,2 @@ TilingSprite.from = function (source, options) {

* WebGL renderer plugin for tiling sprites
*
* @class

@@ -283,3 +274,2 @@ * @memberof PIXI

* constructor for renderer
*
* @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.

@@ -294,3 +284,2 @@ */

* The WebGL state in which this renderer will work.
*
* @member {PIXI.State}

@@ -302,5 +291,3 @@ * @readonly

}
/**
* Creates shaders when context is initialized.
*/
/** Creates shaders when context is initialized. */
TilingSpriteRenderer.prototype.contextChange = function () {

@@ -307,0 +294,0 @@ var renderer = this.renderer;

/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/sprite-tiling is licensed under the MIT License.

/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -46,3 +46,2 @@ * @pixi/sprite-tiling is licensed under the MIT License.

* A tiling sprite is a fast way of rendering a tiling image.
*
* @memberof PIXI

@@ -70,3 +69,2 @@ */

* Allows to customize the rendering process without overriding '_render' method.
*
* @default 'tilingSprite'

@@ -82,3 +80,2 @@ */

* Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas
*
* @default 0.5

@@ -130,3 +127,2 @@ * @member {number}

* Renders the object using the WebGL renderer
*
* @param renderer - The renderer

@@ -155,5 +151,4 @@ */

* Gets the local bounds of the sprite object.
*
* @param rect - Optional output rectangle.
* @return The bounds.
* @returns The bounds.
*/

@@ -179,5 +174,4 @@ TilingSprite.prototype.getLocalBounds = function (rect) {

* Checks if a point is inside this tiling sprite.
*
* @param point - The point to check.
* @return Whether or not the sprite contains the point.
* @returns Whether or not the sprite contains the point.
*/

@@ -199,3 +193,2 @@ TilingSprite.prototype.containsPoint = function (point) {

* Destroys this sprite and optionally its texture and children
*
* @param {object|boolean} [options] - Options parameter. A boolean will act as if all options

@@ -216,9 +209,8 @@ * have been set to that value

* The source can be - frame id, image url, video url, canvas element, video element, base texture
*
* @static
* @param {string|PIXI.Texture|HTMLCanvasElement|HTMLVideoElement} source - Source to create texture from
* @param {Object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {number} options.width - required width of the tiling sprite
* @param {number} options.height - required height of the tiling sprite
* @return {PIXI.TilingSprite} The newly created texture
* @returns {PIXI.TilingSprite} The newly created texture
*/

@@ -269,3 +261,2 @@ TilingSprite.from = function (source, options) {

* WebGL renderer plugin for tiling sprites
*
* @class

@@ -279,3 +270,2 @@ * @memberof PIXI

* constructor for renderer
*
* @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.

@@ -290,3 +280,2 @@ */

* The WebGL state in which this renderer will work.
*
* @member {PIXI.State}

@@ -298,5 +287,3 @@ * @readonly

}
/**
* Creates shaders when context is initialized.
*/
/** Creates shaders when context is initialized. */
TilingSpriteRenderer.prototype.contextChange = function () {

@@ -303,0 +290,0 @@ var renderer = this.renderer;

/*!
* @pixi/sprite-tiling - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/sprite-tiling - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

@@ -5,0 +5,0 @@ * @pixi/sprite-tiling is licensed under the MIT License.

@@ -25,3 +25,2 @@ /// <reference path="./global.d.ts" />

* A tiling sprite is a fast way of rendering a tiling image.
*
* @memberof PIXI

@@ -40,3 +39,2 @@ */

* this, the top-left corner always gets the (0, 0) texture coordinate.
*
* @default false

@@ -54,3 +52,2 @@ */

* Change to -0.5 to add a pixel to the edge, recommended for transparent trimmed textures in atlas
*
* @default 0.5

@@ -63,3 +60,3 @@ * @member {number}

get tileScale(): ObservablePoint;
set tileScale(value: ObservablePoint);
set tileScale(value: IPointData);
/** The offset of the image that is being tiled. */

@@ -74,3 +71,2 @@ get tilePosition(): ObservablePoint;

* Renders the object using the WebGL renderer
*
* @param renderer - The renderer

@@ -83,5 +79,4 @@ */

* Gets the local bounds of the sprite object.
*
* @param rect - Optional output rectangle.
* @return The bounds.
* @returns The bounds.
*/

@@ -91,5 +86,4 @@ getLocalBounds(rect?: Rectangle): Rectangle;

* Checks if a point is inside this tiling sprite.
*
* @param point - The point to check.
* @return Whether or not the sprite contains the point.
* @returns Whether or not the sprite contains the point.
*/

@@ -99,3 +93,2 @@ containsPoint(point: IPointData): boolean;

* Destroys this sprite and optionally its texture and children
*
* @param {object|boolean} [options] - Options parameter. A boolean will act as if all options

@@ -112,11 +105,13 @@ * have been set to that value

* The source can be - frame id, image url, video url, canvas element, video element, base texture
*
* @static
* @param {string|PIXI.Texture|HTMLCanvasElement|HTMLVideoElement} source - Source to create texture from
* @param {Object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {object} options - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {number} options.width - required width of the tiling sprite
* @param {number} options.height - required height of the tiling sprite
* @return {PIXI.TilingSprite} The newly created texture
* - See {@link PIXI.BaseTexture}'s constructor for options.
* @param {number} options.width - required width of the tiling sprite
* @param {number} options.height - required height of the tiling sprite
* @returns {PIXI.TilingSprite} The newly created texture
*/
static from(source: TextureSource, options: ISize & IBaseTextureOptions): TilingSprite;
static from(source: TextureSource | Texture, options: ISize & IBaseTextureOptions): TilingSprite;
/** The width of the sprite, setting this will actually modify the scale to achieve the value set. */

@@ -132,3 +127,2 @@ get width(): number;

* WebGL renderer plugin for tiling sprites
*
* @class

@@ -145,9 +139,6 @@ * @memberof PIXI

* constructor for renderer
*
* @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.
*/
constructor(renderer: Renderer);
/**
* Creates shaders when context is initialized.
*/
/** Creates shaders when context is initialized. */
contextChange(): void;

@@ -154,0 +145,0 @@ /**

{
"name": "@pixi/sprite-tiling",
"version": "6.3.2",
"version": "6.4.0",
"main": "dist/cjs/sprite-tiling.js",
"module": "dist/esm/sprite-tiling.js",
"bundle": "dist/browser/sprite-tiling.js",
"types": "index.d.ts",
"exports": {
".": {
"import": {
"default": "./dist/cjs/sprite-tiling.js",
"types": "./index.d.ts"
},
"require": {
"default": "./dist/esm/sprite-tiling.js",
"types": "./index.d.ts"
}
}
},
"description": "Tiling Sprites for faster rendering a tiling image",

@@ -28,10 +41,10 @@ "author": "Mat Groves",

"peerDependencies": {
"@pixi/constants": "6.3.2",
"@pixi/core": "6.3.2",
"@pixi/display": "6.3.2",
"@pixi/math": "6.3.2",
"@pixi/sprite": "6.3.2",
"@pixi/utils": "6.3.2"
"@pixi/constants": "6.4.0",
"@pixi/core": "6.4.0",
"@pixi/display": "6.4.0",
"@pixi/math": "6.4.0",
"@pixi/sprite": "6.4.0",
"@pixi/utils": "6.4.0"
},
"gitHead": "87031295631dcd7db3e24b99ed7ceb2c4f963a40"
"gitHead": "e7eaa713b6e0eeb335e90384aec778f5c99c60d5"
}

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