UNPKG

@vuesax-alpha/nightly

Version:
14 lines (9 loc) 311 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var getDpr = require('./get-dpr.js'); function roundByDPR(element, value) { const dpr = getDpr.getDPR(element); return Math.round(value * dpr) / dpr; } exports.roundByDPR = roundByDPR; //# sourceMappingURL=round-by-dpr.js.map