Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (typeof blur === 'number') {
blurX = blur;
blurY = blur;
}
else if (blur instanceof Point) {
blurX = blur.x;
blurY = blur.y;
}
else if (Array.isArray(blur)) {
blurX = blur[0];
blurY = blur[1];
}
this.blurXFilter = new BlurFilterPass(true, blurX, quality, resolution, kernelSize);
this.blurYFilter = new BlurFilterPass(false, blurY, quality, resolution, kernelSize);
this.blurYFilter.blendMode = BLEND_MODES.SCREEN;
this.defaultFilter = new AlphaFilter();
}
let blurY;
if (typeof blur === 'number') {
blurX = blur;
blurY = blur;
}
else if (blur instanceof Point) {
blurX = blur.x;
blurY = blur.y;
}
else if (Array.isArray(blur)) {
blurX = blur[0];
blurY = blur[1];
}
this.blurXFilter = new BlurFilterPass(true, blurX, quality, resolution, kernelSize);
this.blurYFilter = new BlurFilterPass(false, blurY, quality, resolution, kernelSize);
this.blurYFilter.blendMode = BLEND_MODES.SCREEN;
this.defaultFilter = new AlphaFilter();
}