Resizes given canvas element to match window size. To resize canvas to match its parent, use parentSizeCanvas.
To make the canvas appear propery, it sets the following CSS:
{ top: 0; left: 0; zIndex: -1; position: fixed;} Copy
{ top: 0; left: 0; zIndex: -1; position: fixed;}
Pass true for skipCss to avoid this.
skipCss
Provide a callback for when resize happens.
Query string or reference to canvas element
Optional
Callback for when resize happens, eg for redrawing canvas
if true, style are not added
Observable
Resizes given canvas element to match window size. To resize canvas to match its parent, use parentSizeCanvas.
To make the canvas appear propery, it sets the following CSS:
Pass true for
skipCss
to avoid this.Provide a callback for when resize happens.