raf.js 403 B

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