UNPKG

element-plus

Version:

A Component Library for Vue 3

8 lines (5 loc) 278 B
import { isClient } from '@vueuse/core'; const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16); const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle); export { cAF, rAF }; //# sourceMappingURL=raf.mjs.map