/
Alcatraz
/
Wagomon
Обзор
Документация
Войти
/
Alcatraz
/
Wagomon
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/zrender/src/animation/requestAnimationFrame.ts
21 строка
729 B
saitgalineu
fix
27 фев 2026, 12:39
27 фев 2026, 12:39
a5092f1
Код
Авторство
О чём код?
import env from '../core/env'; type RequestAnimationFrameType = typeof window.requestAnimationFrame let requestAnimationFrame: RequestAnimationFrameType; requestAnimationFrame = ( env.hasGlobalWindow && ( (window.requestAnimationFrame && window.requestAnimationFrame.bind(window)) // https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809 || ((window as any).msRequestAnimationFrame && (window as any).msRequestAnimationFrame.bind(window)) || (window as any).mozRequestAnimationFrame // @ts-ignore || window.webkitRequestAnimationFrame ) ) || function (func: Parameters<RequestAnimationFrameType>[0]): number { return setTimeout(func, 16) as any; }; export default requestAnimationFrame;