@pixi/canvas-particles
Advanced tools
Comparing version 5.2.0 to 5.2.1
/*! | ||
* @pixi/canvas-particles - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* | ||
@@ -122,3 +122,3 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
context.drawImage( | ||
child._texture.baseTexture.source, | ||
child._texture.baseTexture.getDrawableSource(), | ||
frame.x * resolution, | ||
@@ -125,0 +125,0 @@ frame.y * resolution, |
/*! | ||
* @pixi/canvas-particles - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 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,h=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){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,h=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,h=d.height}var u=n._texture.baseTexture.resolution;e.drawImage(n._texture.baseTexture.source,d.x*u,d.y*u,d.width*u,d.height*u,o*t.resolution,s*t.resolution,a*t.resolution,h*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,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)}}}}}(); | ||
//# sourceMappingURL=canvas-particles.min.js.map |
/*! | ||
* @pixi/canvas-particles - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* | ||
@@ -120,3 +120,3 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
context.drawImage( | ||
child._texture.baseTexture.source, | ||
child._texture.baseTexture.getDrawableSource(), | ||
frame.x * resolution, | ||
@@ -123,0 +123,0 @@ frame.y * resolution, |
/*! | ||
* @pixi/canvas-particles - v5.2.0 | ||
* Compiled Wed, 06 Nov 2019 02:32:43 UTC | ||
* @pixi/canvas-particles - v5.2.1 | ||
* Compiled Tue, 28 Jan 2020 23:33:11 UTC | ||
* | ||
@@ -122,3 +122,3 @@ * @pixi/canvas-particles is licensed under the MIT License. | ||
context.drawImage( | ||
child._texture.baseTexture.source, | ||
child._texture.baseTexture.getDrawableSource(), | ||
frame.x * resolution, | ||
@@ -125,0 +125,0 @@ frame.y * resolution, |
{ | ||
"name": "@pixi/canvas-particles", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"main": "lib/canvas-particles.js", | ||
@@ -28,5 +28,5 @@ "module": "lib/canvas-particles.es.js", | ||
"dependencies": { | ||
"@pixi/particles": "^5.2.0" | ||
"@pixi/particles": "5.2.1" | ||
}, | ||
"gitHead": "aaf96b460582b83a1fa73037ef2dd69dd9e84415" | ||
"gitHead": "b56b4fca1c169f0e6d2a0472251ba1f7399bb4a3" | ||
} |
@@ -1,7 +0,9 @@ | ||
# @pixi/canvas-sprite-tiling | ||
# @pixi/canvas-particles | ||
Provides CanvasRenderer support for `@pixi/particles`. | ||
## Installation | ||
```bash | ||
npm install @pixi/canvas-sprite-tiling | ||
npm install @pixi/canvas-particles | ||
``` | ||
@@ -12,3 +14,6 @@ | ||
```js | ||
import '@pixi/canvas-sprite-tiling'; | ||
import '@pixi/canvas-particles'; | ||
import { ParticleContainer } from '@pixi/particles'; | ||
const container = new ParticleContainer(); | ||
``` |
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
42938
18
+ Added@pixi/constants@5.2.1(transitive)
+ Added@pixi/core@5.2.1(transitive)
+ Added@pixi/display@5.2.1(transitive)
+ Added@pixi/math@5.2.1(transitive)
+ Added@pixi/particles@5.2.1(transitive)
+ Added@pixi/runner@5.2.1(transitive)
+ Added@pixi/settings@5.2.1(transitive)
+ Added@pixi/ticker@5.2.1(transitive)
+ Added@pixi/utils@5.2.1(transitive)
- Removed@pixi/constants@5.3.12(transitive)
- Removed@pixi/core@5.3.12(transitive)
- Removed@pixi/display@5.3.12(transitive)
- Removed@pixi/math@5.3.12(transitive)
- Removed@pixi/particles@5.3.12(transitive)
- Removed@pixi/runner@5.3.12(transitive)
- Removed@pixi/settings@5.3.12(transitive)
- Removed@pixi/ticker@5.3.12(transitive)
- Removed@pixi/utils@5.3.12(transitive)
Updated@pixi/particles@5.2.1