Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**/ constructor(width, height) {
/**/ this.renderableCount = 0;
/**/ this.renderables = [];
/**/ this.renderer = autoDetectRenderer(width, height, {
/**/ antialias: true, resolution: 1,
/**/ });
/**/ this.renderer.backgroundColor = bgColor;
/**/ this.dom = this.renderer.view;
/**/ this.scene = new Container();
/**/ this.animate = this.animate.bind(this);
/**/ this.resizeHandler = this.resizeHandler.bind(this);
/**/ }
/**/ add(renderable) {
constructor(width, height) {
this.renderableCount = 0;
this.renderables = [];
this.renderer = autoDetectRenderer(width, height, {
antialias: true, transparent: true, resolution: 1,
});
if (bgColor) this.renderer.backgroundColor = bgColor;
this.dom = this.renderer.view;
this.scene = new Container();
this.animate = this.animate.bind(this);
this.resizeHandler = this.resizeHandler.bind(this);
}
add(renderable) {