subscribe to changes in the natural resolution of an on-screen element (usually a <canvas>).
<canvas>
put another way, cb is called whenever getNaturalResolution would return a different value. under the hood, this combines monitorDevicePixelRatio with a ResizeObserver.
cb
ResizeObserver
stop / deregister callback
Generated using TypeDoc
subscribe to changes in the natural resolution of an on-screen element (usually a
<canvas>
).put another way,
cb
is called whenever getNaturalResolution would return a different value. under the hood, this combines monitorDevicePixelRatio with aResizeObserver
.