Methods
getDevicePixelRatio() → {number}
Detects reported or approximate device pixel ratio.
* 1.0 means 1 CSS pixel is 1 hardware pixel
* 2.0 means 1 CSS pixel is 2 hardware pixels
* etc.
Uses window.devicePixelRatio if available, or CSS media queries on IE.
- Source:
Returns:
Device pixel ratio
- Type
- number