vuesax-alpha
Version:
A Component Library for Vue 3
1 lines • 589 B
Source Map (JSON)
{"version":3,"file":"get-dpr.mjs","sources":["../../../../../../../packages/hooks/use-floating/vue/utils/get-dpr.ts"],"sourcesContent":["export function getDPR(element: Element): number {\n if (typeof window === 'undefined') {\n return 1\n }\n const win = element.ownerDocument.defaultView || window\n return win.devicePixelRatio || 1\n}\n"],"names":[],"mappings":"AAAO,SAAS,OAAO,OAA0B,EAAA;AAC/C,EAAI,IAAA,OAAO,WAAW,WAAa,EAAA;AACjC,IAAO,OAAA,CAAA,CAAA;AAAA,GACT;AACA,EAAM,MAAA,GAAA,GAAM,OAAQ,CAAA,aAAA,CAAc,WAAe,IAAA,MAAA,CAAA;AACjD,EAAA,OAAO,IAAI,gBAAoB,IAAA,CAAA,CAAA;AACjC;;;;"}