Buckets:
Quantumbraid/trainingdata / ui /node_modules /rxjs /dist /esm /internal /scheduler /animationFrameProvider.js
| import { Subscription } from '../Subscription'; | |
| export const animationFrameProvider = { | |
| schedule(callback) { | |
| let request = requestAnimationFrame; | |
| let cancel = cancelAnimationFrame; | |
| const { delegate } = animationFrameProvider; | |
| if (delegate) { | |
| request = delegate.requestAnimationFrame; | |
| cancel = delegate.cancelAnimationFrame; | |
| } | |
| const handle = request((timestamp) => { | |
| cancel = undefined; | |
| callback(timestamp); | |
| }); | |
| return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle)); | |
| }, | |
| requestAnimationFrame(...args) { | |
| const { delegate } = animationFrameProvider; | |
| return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args); | |
| }, | |
| cancelAnimationFrame(...args) { | |
| const { delegate } = animationFrameProvider; | |
| return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args); | |
| }, | |
| delegate: undefined, | |
| }; | |
| //# sourceMappingURL=animationFrameProvider.js.map |
Xet Storage Details
- Size:
- 1.17 kB
- Xet hash:
- 08818ae78934439f524e5184b03ed34c5cdb40627119e43915c69adbe5d889c1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.