![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/metras.v32.1/node_modules/rxjs/src/util/ |
import { root } from './root'; export class RequestAnimationFrameDefinition { cancelAnimationFrame: (handle: number) => void; requestAnimationFrame: (cb: () => void) => number; constructor(root: any) { if (root.requestAnimationFrame) { this.cancelAnimationFrame = root.cancelAnimationFrame.bind(root); this.requestAnimationFrame = root.requestAnimationFrame.bind(root); } else if (root.mozRequestAnimationFrame) { this.cancelAnimationFrame = root.mozCancelAnimationFrame.bind(root); this.requestAnimationFrame = root.mozRequestAnimationFrame.bind(root); } else if (root.webkitRequestAnimationFrame) { this.cancelAnimationFrame = root.webkitCancelAnimationFrame.bind(root); this.requestAnimationFrame = root.webkitRequestAnimationFrame.bind(root); } else if (root.msRequestAnimationFrame) { this.cancelAnimationFrame = root.msCancelAnimationFrame.bind(root); this.requestAnimationFrame = root.msRequestAnimationFrame.bind(root); } else if (root.oRequestAnimationFrame) { this.cancelAnimationFrame = root.oCancelAnimationFrame.bind(root); this.requestAnimationFrame = root.oRequestAnimationFrame.bind(root); } else { this.cancelAnimationFrame = root.clearTimeout.bind(root); this.requestAnimationFrame = function(cb) { return root.setTimeout(cb, 1000 / 60); }; } } } export const AnimationFrame = new RequestAnimationFrameDefinition(root);