Creates an instance of the canvas helper class.
Reference to the HTML canvas {@link HTMLCanvasElement|element}.
Adjusts canvas size and position.
New width for canvas.
New height for canvas.
New top position for canvas.
New left position for canvas.
Adjust canvas size and position from existing element.
Existing {@link HTMLElement|element} as reference.
Clear the canvas area.
Inserts canvas html element right after the reference element.
Reference {@link HTMLElement|element} where we want position the canvas.
Generated using TypeDoc
Canvas helper class. Inserts {@link HTMLCanvasElement|element} and handles position and size adjustments.