You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
1.1 KiB

{"ast":null,"code":"import { isClient } from '@vueuse/core';\nconst rAF = fn => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);\nconst cAF = handle => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);\nexport { cAF, rAF };","map":{"version":3,"names":["rAF","fn","isClient","window","requestAnimationFrame","setTimeout","cAF","handle","cancelAnimationFrame","clearTimeout"],"sources":["../../../../packages/utils/raf.ts"],"sourcesContent":["import { isClient } from './browser'\n\nexport const rAF = (fn: () => void) =>\n isClient\n ? window.requestAnimationFrame(fn)\n : (setTimeout(fn, 16) as unknown as number)\n\nexport const cAF = (handle: number) =>\n isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle)\n"],"mappings":";AACY,MAACA,GAAG,GAAIC,EAAE,IAAKC,QAAQ,GAAGC,MAAM,CAACC,qBAAqB,CAACH,EAAE,CAAC,GAAGI,UAAU,CAACJ,EAAE,EAAE,EAAE;AAC9E,MAACK,GAAG,GAAIC,MAAM,IAAKL,QAAQ,GAAGC,MAAM,CAACK,oBAAoB,CAACD,MAAM,CAAC,GAAGE,YAAY,CAACF,MAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}