@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
15 lines (11 loc) • 322 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function getDPR(element) {
if (typeof window === "undefined") {
return 1;
}
const win = element.ownerDocument.defaultView || window;
return win.devicePixelRatio || 1;
}
exports.getDPR = getDPR;
//# sourceMappingURL=get-dpr.js.map