function RendererCanvas(parent, options, useCSSRenderer)
{
	Component.call(this, parent, "div");

	this.element.style.backgroundColor = "var(--color-black)";

	/**
	 * List os parameters to be passed to the WebGLRenderer.
	 *
	 * @attribute options
	 * @type {Object}
	 */
	this.options = options !== undefined ? options : new RendererConfiguration();

	/**
	 * On resize callback, called every time the container is updated.
	 *
	 * @attribute onResize
	 * @type {Function}
	 */
	this.onResize = null;

	/**
	 * Indicates if a CSS renderer should be created alongside the WebGL renderer.
	 *
	 * @attribute useCSSRenderer
	 * @type {boolean}
	 */
	this.useCSSRenderer = useCSSRenderer !== undefined ? useCSSRenderer : true;

	/**
	 * CSS renderer used alongside.
	 *
	 * @attribute cssRenderer
	 * @type {CSS3DObject}
	 */
	this.cssRenderer = null;

	/**
	 * Overlay division used to place the css rendered DOM objects.
	 *
	 * @attribute cssDivision
	 * @type {Component}
	 */
	this.cssDivision = null;

	/**
	 * Rendering resolution accouting for the device pixel ratio.
	 *
	 * @attribute resolution
	 * @type {Vector2}
	 */
	this.resolution = new Vector2();

	/**
	 * Method called when the canvas is reset, might need to be used to replace canvas related events.
	 *
	 * Receives the RendererCanvas object as argument.
	 *
	 * @attribute onCanvasReset
	 * @type {Function}
	 */
	this.onCanvasReset = null;

	/**
	 * Canvas DOM element.
	 *
	 * @attribute canvas
	 * @type {Component}
	 */
	this.canvas = null;
	this.resetCanvas();

	/**
	 * three.js WebGl renderer.
	 *
	 * @attribute renderer
	 * @type {WebGLRenderer}
	 */
	this.renderer = null;
	this.createRenderer();
}
A canvas element that also contains a thee.js webgl renderer object.

The renderer is automatically updated to match the canvas size, it also handles the device pixel ratio.

@class RendererCanvas
@extends {Component}
@param {Component} parent Parent element.
@param {RendererConfiguration} options Options to be used for the renderer.
@param {boolean} useCSSRenderer If true a CSS renderer is created to render 3D DOM elements.