Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.smoothProperty = 'oImageSmoothingEnabled';
}
else if (this.rootContext.msImageSmoothingEnabled)
{
this.smoothProperty = 'msImageSmoothingEnabled';
}
}
this.initPlugins(CanvasRenderer.__plugins);
this.blendModes = mapCanvasBlendModesToPixi();
this._activeBlendMode = null;
this.renderingToScreen = false;
sayHello('Canvas');
/**
* Fired after rendering finishes.
*
* @event PIXI.CanvasRenderer#postrender
*/
/**
* Fired before rendering starts.
*
* @event PIXI.CanvasRenderer#prerender
*/
this.resize(this.options.width, this.options.height);
}
premultipliedAlpha: this.transparent && this.transparent !== 'notMultiplied',
stencil: true,
preserveDrawingBuffer: options.preserveDrawingBuffer,
powerPreference: this.options.powerPreference,
});
}
/**
* Flag if we are rendering to the screen vs renderTexture
* @member {boolean}
* @readonly
* @default true
*/
this.renderingToScreen = true;
sayHello(this.context.webGLVersion === 2 ? 'WebGL 2' : 'WebGL 1');
this.resize(this.options.width, this.options.height);
}
}
this.initPlugins(CanvasRenderer.__plugins);
/**
* Tracks the blend modes useful for this renderer.
*
* @member {object}
*/
this.blendModes = mapCanvasBlendModesToPixi();
this._activeBlendMode = null;
this._outerBlend = false;
this.renderingToScreen = false;
sayHello('Canvas');
/**
* Fired after rendering finishes.
*
* @event PIXI.CanvasRenderer#postrender
*/
/**
* Fired before rendering starts.
*
* @event PIXI.CanvasRenderer#prerender
*/
this.resize(this.options.width, this.options.height);
}