Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
27
my-app/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js
generated
vendored
Executable file
27
my-app/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js
generated
vendored
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue