Socket
Socket
Sign inDemoInstall

@pixi/mixin-cache-as-bitmap

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/mixin-cache-as-bitmap - npm Package Compare versions

Comparing version 5.0.0-rc to 5.0.0-rc.2

29

lib/mixin-cache-as-bitmap.es.js
/*!
* @pixi/mixin-cache-as-bitmap - v5.0.0-rc
* Compiled Fri, 01 Feb 2019 04:50:10 UTC
* @pixi/mixin-cache-as-bitmap - v5.0.0-rc.2
* Compiled Mon, 18 Feb 2019 23:45:28 UTC
*

@@ -86,3 +86,3 @@ * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.

data.originalUpdateTransform = this.updateTransform;
data.originalCalculateBounds = this._calculateBounds;
data.originalCalculateBounds = this.calculateBounds;
data.originalGetLocalBounds = this.getLocalBounds;

@@ -113,3 +113,3 @@

this.renderCanvas = data.originalRenderCanvas;
this._calculateBounds = data.originalCalculateBounds;
this.calculateBounds = data.originalCalculateBounds;
this.getLocalBounds = data.originalGetLocalBounds;

@@ -227,3 +227,6 @@

this.render = this._renderCached;
// the rest is the same as for Canvas
this.updateTransform = this.displayObjectUpdateTransform;
this.calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;

@@ -242,6 +245,2 @@ this._mask = null;

// easy bounds..
this._calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;
this._cacheData.sprite = cachedSprite;

@@ -343,3 +342,6 @@

this.renderCanvas = this._renderCachedCanvas;
// the rest is the same as for WebGL
this.updateTransform = this.displayObjectUpdateTransform;
this.calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;

@@ -355,5 +357,9 @@ this._mask = null;

cachedSprite.anchor.y = -(bounds.y / bounds.height);
cachedSprite.alpha = cacheAlpha;
cachedSprite._bounds = this._bounds;
cachedSprite.alpha = cacheAlpha;
this._cacheData.sprite = cachedSprite;
this.transform._parentID = -1;
// restore the transform of the cached sprite to avoid the nasty flicker..
if (!this.parent)

@@ -370,6 +376,3 @@ {

this.updateTransform = this.displayObjectUpdateTransform;
this._cacheData.sprite = cachedSprite;
// map the hit test..
this.containsPoint = cachedSprite.containsPoint.bind(cachedSprite);

@@ -376,0 +379,0 @@ };

/*!
* @pixi/mixin-cache-as-bitmap - v5.0.0-rc
* Compiled Fri, 01 Feb 2019 04:50:10 UTC
* @pixi/mixin-cache-as-bitmap - v5.0.0-rc.2
* Compiled Mon, 18 Feb 2019 23:45:28 UTC
*

@@ -88,3 +88,3 @@ * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.

data.originalUpdateTransform = this.updateTransform;
data.originalCalculateBounds = this._calculateBounds;
data.originalCalculateBounds = this.calculateBounds;
data.originalGetLocalBounds = this.getLocalBounds;

@@ -115,3 +115,3 @@

this.renderCanvas = data.originalRenderCanvas;
this._calculateBounds = data.originalCalculateBounds;
this.calculateBounds = data.originalCalculateBounds;
this.getLocalBounds = data.originalGetLocalBounds;

@@ -229,3 +229,6 @@

this.render = this._renderCached;
// the rest is the same as for Canvas
this.updateTransform = this.displayObjectUpdateTransform;
this.calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;

@@ -244,6 +247,2 @@ this._mask = null;

// easy bounds..
this._calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;
this._cacheData.sprite = cachedSprite;

@@ -345,3 +344,6 @@

this.renderCanvas = this._renderCachedCanvas;
// the rest is the same as for WebGL
this.updateTransform = this.displayObjectUpdateTransform;
this.calculateBounds = this._calculateCachedBounds;
this.getLocalBounds = this._getCachedLocalBounds;

@@ -357,5 +359,9 @@ this._mask = null;

cachedSprite.anchor.y = -(bounds.y / bounds.height);
cachedSprite.alpha = cacheAlpha;
cachedSprite._bounds = this._bounds;
cachedSprite.alpha = cacheAlpha;
this._cacheData.sprite = cachedSprite;
this.transform._parentID = -1;
// restore the transform of the cached sprite to avoid the nasty flicker..
if (!this.parent)

@@ -372,6 +378,3 @@ {

this.updateTransform = this.displayObjectUpdateTransform;
this._cacheData.sprite = cachedSprite;
// map the hit test..
this.containsPoint = cachedSprite.containsPoint.bind(cachedSprite);

@@ -378,0 +381,0 @@ };

{
"name": "@pixi/mixin-cache-as-bitmap",
"version": "5.0.0-rc",
"version": "5.0.0-rc.2",
"main": "lib/mixin-cache-as-bitmap.js",

@@ -28,8 +28,8 @@ "module": "lib/mixin-cache-as-bitmap.es.js",

"dependencies": {
"@pixi/core": "^5.0.0-rc",
"@pixi/display": "^5.0.0-rc",
"@pixi/math": "^5.0.0-rc",
"@pixi/settings": "^5.0.0-rc",
"@pixi/sprite": "^5.0.0-rc",
"@pixi/utils": "^5.0.0-rc"
"@pixi/core": "^5.0.0-rc.2",
"@pixi/display": "^5.0.0-rc.2",
"@pixi/math": "^5.0.0-rc.2",
"@pixi/settings": "^5.0.0-rc.2",
"@pixi/sprite": "^5.0.0-rc.2",
"@pixi/utils": "^5.0.0-rc.2"
},

@@ -39,3 +39,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

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