UNPKG

stage-js

Version:

2D HTML5 Rendering and Layout

6 lines (5 loc) 188 B
/** @internal */ export function getDevicePixelRatio() { // todo: do we need to divide by backingStoreRatio? return typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1; }