@pixi/canvas-particles
Advanced tools
Comparing version 5.2.1 to 5.2.2
/*! | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* @pixi/canvas-particles - v5.2.2 | ||
* Compiled Tue, 21 Apr 2020 03:53:51 UTC | ||
* | ||
@@ -51,2 +51,7 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
if (!child._texture.valid) | ||
{ | ||
continue; | ||
} | ||
var frame = child._texture.frame; | ||
@@ -61,11 +66,3 @@ | ||
{ | ||
context.setTransform( | ||
transform.a, | ||
transform.b, | ||
transform.c, | ||
transform.d, | ||
transform.tx * renderer.resolution, | ||
transform.ty * renderer.resolution | ||
); | ||
renderer.setContextTransform(transform, false, 1); | ||
isRotated = false; | ||
@@ -91,24 +88,3 @@ } | ||
if (this.roundPixels) | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
(childTransform.tx * renderer.resolution) | 0, | ||
(childTransform.ty * renderer.resolution) | 0 | ||
); | ||
} | ||
else | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
childTransform.tx * renderer.resolution, | ||
childTransform.ty * renderer.resolution | ||
); | ||
} | ||
renderer.setContextTransform(childTransform, this.roundPixels, 1); | ||
@@ -115,0 +91,0 @@ positionX = ((child.anchor.x) * (-frame.width)) + 0.5; |
/*! | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* @pixi/canvas-particles - v5.2.2 | ||
* Compiled Tue, 21 Apr 2020 03:53:51 UTC | ||
* | ||
@@ -8,3 +8,3 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
*/ | ||
this.PIXI=this.PIXI||{},function(t){"use strict";PIXI.ParticleContainer.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var e=t.context,r=this.worldTransform,i=!0,o=0,s=0,a=0,l=0;t.setBlendMode(this.blendMode),e.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var h=0;h<this.children.length;++h){var n=this.children[h];if(n.visible){var d=n._texture.frame;if(e.globalAlpha=this.worldAlpha*n.alpha,n.rotation%(2*Math.PI)==0)i&&(e.setTransform(r.a,r.b,r.c,r.d,r.tx*t.resolution,r.ty*t.resolution),i=!1),o=n.anchor.x*(-d.width*n.scale.x)+n.position.x+.5,s=n.anchor.y*(-d.height*n.scale.y)+n.position.y+.5,a=d.width*n.scale.x,l=d.height*n.scale.y;else{i||(i=!0),n.displayObjectUpdateTransform();var c=n.worldTransform;this.roundPixels?e.setTransform(c.a,c.b,c.c,c.d,c.tx*t.resolution|0,c.ty*t.resolution|0):e.setTransform(c.a,c.b,c.c,c.d,c.tx*t.resolution,c.ty*t.resolution),o=n.anchor.x*-d.width+.5,s=n.anchor.y*-d.height+.5,a=d.width,l=d.height}var u=n._texture.baseTexture.resolution;e.drawImage(n._texture.baseTexture.getDrawableSource(),d.x*u,d.y*u,d.width*u,d.height*u,o*t.resolution,s*t.resolution,a*t.resolution,l*t.resolution)}}}}}(); | ||
this.PIXI=this.PIXI||{},function(t){"use strict";PIXI.ParticleContainer.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var e=t.context,r=this.worldTransform,i=!0,a=0,o=0,h=0,s=0;t.setBlendMode(this.blendMode),e.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var l=0;l<this.children.length;++l){var n=this.children[l];if(n.visible&&n._texture.valid){var d=n._texture.frame;if(e.globalAlpha=this.worldAlpha*n.alpha,n.rotation%(2*Math.PI)==0)i&&(t.setContextTransform(r,!1,1),i=!1),a=n.anchor.x*(-d.width*n.scale.x)+n.position.x+.5,o=n.anchor.y*(-d.height*n.scale.y)+n.position.y+.5,h=d.width*n.scale.x,s=d.height*n.scale.y;else{i||(i=!0),n.displayObjectUpdateTransform();var c=n.worldTransform;t.setContextTransform(c,this.roundPixels,1),a=n.anchor.x*-d.width+.5,o=n.anchor.y*-d.height+.5,h=d.width,s=d.height}var u=n._texture.baseTexture.resolution;e.drawImage(n._texture.baseTexture.getDrawableSource(),d.x*u,d.y*u,d.width*u,d.height*u,a*t.resolution,o*t.resolution,h*t.resolution,s*t.resolution)}}}}}(); | ||
//# sourceMappingURL=canvas-particles.min.js.map |
/*! | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* @pixi/canvas-particles - v5.2.2 | ||
* Compiled Tue, 21 Apr 2020 03:53:51 UTC | ||
* | ||
@@ -49,2 +49,7 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
if (!child._texture.valid) | ||
{ | ||
continue; | ||
} | ||
var frame = child._texture.frame; | ||
@@ -59,11 +64,3 @@ | ||
{ | ||
context.setTransform( | ||
transform.a, | ||
transform.b, | ||
transform.c, | ||
transform.d, | ||
transform.tx * renderer.resolution, | ||
transform.ty * renderer.resolution | ||
); | ||
renderer.setContextTransform(transform, false, 1); | ||
isRotated = false; | ||
@@ -89,24 +86,3 @@ } | ||
if (this.roundPixels) | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
(childTransform.tx * renderer.resolution) | 0, | ||
(childTransform.ty * renderer.resolution) | 0 | ||
); | ||
} | ||
else | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
childTransform.tx * renderer.resolution, | ||
childTransform.ty * renderer.resolution | ||
); | ||
} | ||
renderer.setContextTransform(childTransform, this.roundPixels, 1); | ||
@@ -113,0 +89,0 @@ positionX = ((child.anchor.x) * (-frame.width)) + 0.5; |
/*! | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* @pixi/canvas-particles - v5.2.2 | ||
* Compiled Tue, 21 Apr 2020 03:53:51 UTC | ||
* | ||
@@ -51,2 +51,7 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
if (!child._texture.valid) | ||
{ | ||
continue; | ||
} | ||
var frame = child._texture.frame; | ||
@@ -61,11 +66,3 @@ | ||
{ | ||
context.setTransform( | ||
transform.a, | ||
transform.b, | ||
transform.c, | ||
transform.d, | ||
transform.tx * renderer.resolution, | ||
transform.ty * renderer.resolution | ||
); | ||
renderer.setContextTransform(transform, false, 1); | ||
isRotated = false; | ||
@@ -91,24 +88,3 @@ } | ||
if (this.roundPixels) | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
(childTransform.tx * renderer.resolution) | 0, | ||
(childTransform.ty * renderer.resolution) | 0 | ||
); | ||
} | ||
else | ||
{ | ||
context.setTransform( | ||
childTransform.a, | ||
childTransform.b, | ||
childTransform.c, | ||
childTransform.d, | ||
childTransform.tx * renderer.resolution, | ||
childTransform.ty * renderer.resolution | ||
); | ||
} | ||
renderer.setContextTransform(childTransform, this.roundPixels, 1); | ||
@@ -115,0 +91,0 @@ positionX = ((child.anchor.x) * (-frame.width)) + 0.5; |
{ | ||
"name": "@pixi/canvas-particles", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"main": "lib/canvas-particles.js", | ||
@@ -28,5 +28,5 @@ "module": "lib/canvas-particles.es.js", | ||
"dependencies": { | ||
"@pixi/particles": "5.2.1" | ||
"@pixi/particles": "5.2.2" | ||
}, | ||
"gitHead": "b56b4fca1c169f0e6d2a0472251ba1f7399bb4a3" | ||
"gitHead": "c163c466c20f2286b6e41ab90d68a03aad2051d4" | ||
} |
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
34833
275
+ Added@pixi/constants@5.2.2(transitive)
+ Added@pixi/core@5.2.2(transitive)
+ Added@pixi/display@5.2.2(transitive)
+ Added@pixi/math@5.2.2(transitive)
+ Added@pixi/particles@5.2.2(transitive)
+ Added@pixi/runner@5.2.2(transitive)
+ Added@pixi/settings@5.2.2(transitive)
+ Added@pixi/ticker@5.2.2(transitive)
+ Added@pixi/utils@5.2.2(transitive)
- Removed@pixi/constants@5.2.1(transitive)
- Removed@pixi/core@5.2.1(transitive)
- Removed@pixi/display@5.2.1(transitive)
- Removed@pixi/math@5.2.1(transitive)
- Removed@pixi/particles@5.2.1(transitive)
- Removed@pixi/runner@5.2.1(transitive)
- Removed@pixi/settings@5.2.1(transitive)
- Removed@pixi/ticker@5.2.1(transitive)
- Removed@pixi/utils@5.2.1(transitive)
Updated@pixi/particles@5.2.2