Current dimensions.
Disconnect the resizer from its canvas, further size changes will not be observed.
Call CanvasResizer.observe to re-connect.
Observe the resizer's canvas for size changes. Default state of the resizer after initialization.
Update canvas' width
and height
properties if its size changed.
true
if resized
Applies a HTMLCanvasElement | canvas element's actual size to its
width
andheight
properties to ensure correct render dimensions.