get the natural resolution of an element (usually a <canvas>), i.e. its size in native screen pixels.
<canvas>
under the hood, this combines clientWidth / clientHeight with devicePixelRatio.
clientWidth
clientHeight
devicePixelRatio
Generated using TypeDoc
get the natural resolution of an element (usually a
<canvas>), i.e. its size in native screen pixels.under the hood, this combines
clientWidth/clientHeightwithdevicePixelRatio.