New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/filter-bloom

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/filter-bloom - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

types.d.ts

31

lib/filter-bloom.es.js
/*!
* @pixi/filter-bloom - v2.0.1
* Compiled Tue, 12 Sep 2017 17:13:53 UTC
* @pixi/filter-bloom - v2.0.2
* Compiled Wed, 11 Oct 2017 19:50:05 UTC
*

@@ -25,20 +25,31 @@ * pixi-filters is licensed under the MIT License.

* @param {number|PIXI.Point} [blur=2] Sets the strength of both the blurX and blurY properties simultaneously
* @param {number} [quality=4] The quality of the blurX & blurY filter.
* @param {number} [resolution=PIXI.settings.RESOLUTION] The resolution of the blurX & blurY filter.
* @param {number} [kernelSize=5] The kernelSize of the blurX & blurY filter.Options: 5, 7, 9, 11, 13, 15.
*/
var BloomFilter = (function (superclass) {
function BloomFilter(blur) {
function BloomFilter(blur, quality, resolution, kernelSize) {
if ( blur === void 0 ) blur = 2;
if ( quality === void 0 ) quality = 4;
if ( resolution === void 0 ) resolution = PIXI.settings.RESOLUTION;
if ( kernelSize === void 0 ) kernelSize = 5;
superclass.call(this);
this.blurXFilter = new BlurXFilter();
this.blurYFilter = new BlurYFilter();
this.blurYFilter.blendMode = PIXI.BLEND_MODES.SCREEN;
this.defaultFilter = new VoidFilter();
var blurX;
var blurY;
if (typeof blur === 'number') {
this.blur = blur;
blurX = blur;
blurY = blur;
}
else if (blur instanceof PIXI.Point) {
this.blurX = blur.x;
this.blurY = blur.y;
blurX = blur.x;
blurY = blur.y;
}
this.blurXFilter = new BlurXFilter(blurX, quality, resolution, kernelSize);
this.blurYFilter = new BlurYFilter(blurY, quality, resolution, kernelSize);
this.blurYFilter.blendMode = PIXI.BLEND_MODES.SCREEN;
this.defaultFilter = new VoidFilter();
}

@@ -45,0 +56,0 @@

/*!
* @pixi/filter-bloom - v2.0.1
* Compiled Tue, 12 Sep 2017 17:13:54 UTC
* @pixi/filter-bloom - v2.0.2
* Compiled Wed, 11 Oct 2017 19:50:05 UTC
*

@@ -8,3 +8,3 @@ * pixi-filters is licensed under the MIT License.

*/
var ref=PIXI.filters,BlurXFilter=ref.BlurXFilter,BlurYFilter=ref.BlurYFilter,VoidFilter=ref.VoidFilter,BloomFilter=function(r){function t(t){void 0===t&&(t=2),r.call(this),this.blurXFilter=new BlurXFilter,this.blurYFilter=new BlurYFilter,this.blurYFilter.blendMode=PIXI.BLEND_MODES.SCREEN,this.defaultFilter=new VoidFilter,"number"==typeof t?this.blur=t:t instanceof PIXI.Point&&(this.blurX=t.x,this.blurY=t.y)}r&&(t.__proto__=r),(t.prototype=Object.create(r&&r.prototype)).constructor=t;var l={blur:{},blurX:{},blurY:{}};return t.prototype.apply=function(r,t,l){var e=r.getRenderTarget(!0);this.defaultFilter.apply(r,t,l),this.blurXFilter.apply(r,t,e),this.blurYFilter.apply(r,e,l),r.returnRenderTarget(e)},l.blur.get=function(){return this.blurXFilter.blur},l.blur.set=function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},l.blurX.get=function(){return this.blurXFilter.blur},l.blurX.set=function(r){this.blurXFilter.blur=r},l.blurY.get=function(){return this.blurYFilter.blur},l.blurY.set=function(r){this.blurYFilter.blur=r},Object.defineProperties(t.prototype,l),t}(PIXI.Filter);PIXI.filters.BloomFilter=BloomFilter;export{BloomFilter};
var ref=PIXI.filters,BlurXFilter=ref.BlurXFilter,BlurYFilter=ref.BlurYFilter,VoidFilter=ref.VoidFilter,BloomFilter=function(r){function t(t,l,e,i){void 0===t&&(t=2),void 0===l&&(l=4),void 0===e&&(e=PIXI.settings.RESOLUTION),void 0===i&&(i=5),r.call(this);var u,o;"number"==typeof t?(u=t,o=t):t instanceof PIXI.Point&&(u=t.x,o=t.y),this.blurXFilter=new BlurXFilter(u,l,e,i),this.blurYFilter=new BlurYFilter(o,l,e,i),this.blurYFilter.blendMode=PIXI.BLEND_MODES.SCREEN,this.defaultFilter=new VoidFilter}r&&(t.__proto__=r),(t.prototype=Object.create(r&&r.prototype)).constructor=t;var l={blur:{},blurX:{},blurY:{}};return t.prototype.apply=function(r,t,l){var e=r.getRenderTarget(!0);this.defaultFilter.apply(r,t,l),this.blurXFilter.apply(r,t,e),this.blurYFilter.apply(r,e,l),r.returnRenderTarget(e)},l.blur.get=function(){return this.blurXFilter.blur},l.blur.set=function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},l.blurX.get=function(){return this.blurXFilter.blur},l.blurX.set=function(r){this.blurXFilter.blur=r},l.blurY.get=function(){return this.blurYFilter.blur},l.blurY.set=function(r){this.blurYFilter.blur=r},Object.defineProperties(t.prototype,l),t}(PIXI.Filter);PIXI.filters.BloomFilter=BloomFilter;export{BloomFilter};
//# sourceMappingURL=filter-bloom.es.min.js.map
/*!
* @pixi/filter-bloom - v2.0.1
* Compiled Tue, 12 Sep 2017 17:13:52 UTC
* @pixi/filter-bloom - v2.0.2
* Compiled Wed, 11 Oct 2017 19:50:03 UTC
*

@@ -31,20 +31,31 @@ * pixi-filters is licensed under the MIT License.

* @param {number|PIXI.Point} [blur=2] Sets the strength of both the blurX and blurY properties simultaneously
* @param {number} [quality=4] The quality of the blurX & blurY filter.
* @param {number} [resolution=PIXI.settings.RESOLUTION] The resolution of the blurX & blurY filter.
* @param {number} [kernelSize=5] The kernelSize of the blurX & blurY filter.Options: 5, 7, 9, 11, 13, 15.
*/
var BloomFilter = (function (superclass) {
function BloomFilter(blur) {
function BloomFilter(blur, quality, resolution, kernelSize) {
if ( blur === void 0 ) blur = 2;
if ( quality === void 0 ) quality = 4;
if ( resolution === void 0 ) resolution = PIXI.settings.RESOLUTION;
if ( kernelSize === void 0 ) kernelSize = 5;
superclass.call(this);
this.blurXFilter = new BlurXFilter();
this.blurYFilter = new BlurYFilter();
this.blurYFilter.blendMode = PIXI.BLEND_MODES.SCREEN;
this.defaultFilter = new VoidFilter();
var blurX;
var blurY;
if (typeof blur === 'number') {
this.blur = blur;
blurX = blur;
blurY = blur;
}
else if (blur instanceof PIXI.Point) {
this.blurX = blur.x;
this.blurY = blur.y;
blurX = blur.x;
blurY = blur.y;
}
this.blurXFilter = new BlurXFilter(blurX, quality, resolution, kernelSize);
this.blurYFilter = new BlurYFilter(blurY, quality, resolution, kernelSize);
this.blurYFilter.blendMode = PIXI.BLEND_MODES.SCREEN;
this.defaultFilter = new VoidFilter();
}

@@ -51,0 +62,0 @@

/*!
* @pixi/filter-bloom - v2.0.1
* Compiled Tue, 12 Sep 2017 17:13:52 UTC
* @pixi/filter-bloom - v2.0.2
* Compiled Wed, 11 Oct 2017 19:50:04 UTC
*

@@ -8,3 +8,3 @@ * pixi-filters is licensed under the MIT License.

*/
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(t.__filter_bloom={})}(this,function(t){"use strict";var r=PIXI.filters,e=r.BlurXFilter,l=r.BlurYFilter,i=r.VoidFilter,u=function(t){function r(r){void 0===r&&(r=2),t.call(this),this.blurXFilter=new e,this.blurYFilter=new l,this.blurYFilter.blendMode=PIXI.BLEND_MODES.SCREEN,this.defaultFilter=new i,"number"==typeof r?this.blur=r:r instanceof PIXI.Point&&(this.blurX=r.x,this.blurY=r.y)}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var u={blur:{},blurX:{},blurY:{}};return r.prototype.apply=function(t,r,e){var l=t.getRenderTarget(!0);this.defaultFilter.apply(t,r,e),this.blurXFilter.apply(t,r,l),this.blurYFilter.apply(t,l,e),t.returnRenderTarget(l)},u.blur.get=function(){return this.blurXFilter.blur},u.blur.set=function(t){this.blurXFilter.blur=this.blurYFilter.blur=t},u.blurX.get=function(){return this.blurXFilter.blur},u.blurX.set=function(t){this.blurXFilter.blur=t},u.blurY.get=function(){return this.blurYFilter.blur},u.blurY.set=function(t){this.blurYFilter.blur=t},Object.defineProperties(r.prototype,u),r}(PIXI.Filter);PIXI.filters.BloomFilter=u,t.BloomFilter=u,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.__filter_bloom={})}(this,function(t){"use strict";var e=PIXI.filters,r=e.BlurXFilter,l=e.BlurYFilter,i=e.VoidFilter,u=function(t){function e(e,u,o,n){void 0===e&&(e=2),void 0===u&&(u=4),void 0===o&&(o=PIXI.settings.RESOLUTION),void 0===n&&(n=5),t.call(this);var b,s;"number"==typeof e?(b=e,s=e):e instanceof PIXI.Point&&(b=e.x,s=e.y),this.blurXFilter=new r(b,u,o,n),this.blurYFilter=new l(s,u,o,n),this.blurYFilter.blendMode=PIXI.BLEND_MODES.SCREEN,this.defaultFilter=new i}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var u={blur:{},blurX:{},blurY:{}};return e.prototype.apply=function(t,e,r){var l=t.getRenderTarget(!0);this.defaultFilter.apply(t,e,r),this.blurXFilter.apply(t,e,l),this.blurYFilter.apply(t,l,r),t.returnRenderTarget(l)},u.blur.get=function(){return this.blurXFilter.blur},u.blur.set=function(t){this.blurXFilter.blur=this.blurYFilter.blur=t},u.blurX.get=function(){return this.blurXFilter.blur},u.blurX.set=function(t){this.blurXFilter.blur=t},u.blurY.get=function(){return this.blurYFilter.blur},u.blurY.set=function(t){this.blurYFilter.blur=t},Object.defineProperties(e.prototype,u),e}(PIXI.Filter);PIXI.filters.BloomFilter=u,t.BloomFilter=u,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=filter-bloom.min.js.map
{
"name": "@pixi/filter-bloom",
"version": "2.0.2",
"version": "2.1.0",
"main": "lib/filter-bloom.min.js",

@@ -11,2 +11,3 @@ "description": "Display filter render as ASCII text",

"module": "lib/filter-bloom.es.min.js",
"types": "types.d.ts",
"homepage": "http://pixijs.com/",

@@ -28,3 +29,4 @@ "bugs": "https://github.com/pixijs/pixi-filters/issues",

"files": [
"lib"
"lib",
"types.d.ts"
],

@@ -31,0 +33,0 @@ "peerDependencies": {

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