Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.initBaseEl();
this.colorScale = this.options.colorRange
? colorDomainToRgbaArray(this.options.colorRange, true)
: [];
this.positioning.offsetX = this.positioning.offsetX || 0;
this.positioning.offsetY = this.positioning.offsetY || 0;
this.positioning.offsetTopTrack = this.positioning.offsetTopTrack || 0;
this.positioning.offsetLeftTrack = this.positioning.offsetLeftTrack || 0;
this.fetchChromInfo = this.dataType === 'cooler'
? chromInfo.get(chromInfoPath)
: undefined;
this.dropShadow = new DropShadowFilter({
rotation: 90,
distance: this.options.dropDistance,
blur: this.options.dropBlur,
color: 0x000000,
alpha: this.options.dropOpacity,
});
this.isRenderToCanvas = this.options.isRenderToCanvas || false;
this.pBase.alpha = this.options.opacity;
this.pMain.filters = [this.dropShadow];
this.insets = new KeySet();
this.insetsInPreparation = new KeySet();
this.insetMouseHandler = {