raf.js 378 B

123456789101112
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var core = require('@vueuse/core');
  4. const rAF = (fn) => core.isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
  5. const cAF = (handle) => core.isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
  6. exports.cAF = cAF;
  7. exports.rAF = rAF;
  8. //# sourceMappingURL=raf.js.map