Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { ParticleContainer } from '@pixi/particles';
/**
* Renders the object using the Canvas renderer
* @method renderCanvas
* @memberof PIXI.ParticleContainer#
* @private
* @param {PIXI.CanvasRenderer} renderer - a reference to the canvas renderer
*/
ParticleContainer.prototype.renderCanvas = function renderCanvas(renderer)
{
if (!this.visible || this.worldAlpha <= 0 || !this.children.length || !this.renderable)
{
return;
}
const context = renderer.context;
const transform = this.worldTransform;
let isRotated = true;
let positionX = 0;
let positionY = 0;
let finalWidth = 0;
let finalHeight = 0;