import { AnimationFrameScheduler } from './AnimationFrameScheduler'; /** * * Animation Frame Scheduler * * <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span> * * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler * behaviour. * * Without delay, `animationFrame` scheduler can be used to create smooth browser animations. * It makes sure scheduled task will happen just before next browser content repaint, * thus performing animations as efficiently as possible. * * ## Example * Schedule div height animation * ```ts * // html: <div style="background: #0ff;"></div> * import { animationFrameScheduler } from 'rxjs'; * * const div = document.querySelector('div'); * * animationFrameScheduler.schedule(function(height) { * div.style.height = height + "px"; * * this.schedule(height + 1); // `this` references currently executing Action, * // which we reschedule with new state * }, 0, 0); * * // You will see a div element growing in height * ``` */ export declare const animationFrameScheduler: AnimationFrameScheduler; /** * @deprecated renamed. Use {@link animationFrameScheduler} */ export declare const animationFrame: AnimationFrameScheduler;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Action.d.ts | File | 1.26 KB | 0644 |
|
Action.js | File | 1.08 KB | 0644 |
|
Action.js.map | File | 356 B | 0644 |
|
AnimationFrameAction.d.ts | File | 739 B | 0644 |
|
AnimationFrameAction.js | File | 2.05 KB | 0644 |
|
AnimationFrameAction.js.map | File | 1.16 KB | 0644 |
|
AnimationFrameScheduler.d.ts | File | 212 B | 0644 |
|
AnimationFrameScheduler.js | File | 1.76 KB | 0644 |
|
AnimationFrameScheduler.js.map | File | 939 B | 0644 |
|
AsapAction.d.ts | File | 669 B | 0644 |
|
AsapAction.js | File | 2.03 KB | 0644 |
|
AsapAction.js.map | File | 1.17 KB | 0644 |
|
AsapScheduler.d.ts | File | 202 B | 0644 |
|
AsapScheduler.js | File | 1.68 KB | 0644 |
|
AsapScheduler.js.map | File | 918 B | 0644 |
|
AsyncAction.d.ts | File | 1.12 KB | 0644 |
|
AsyncAction.js | File | 3.44 KB | 0644 |
|
AsyncAction.js.map | File | 2.73 KB | 0644 |
|
AsyncScheduler.d.ts | File | 1.01 KB | 0644 |
|
AsyncScheduler.js | File | 2.38 KB | 0644 |
|
AsyncScheduler.js.map | File | 1.38 KB | 0644 |
|
QueueAction.d.ts | File | 734 B | 0644 |
|
QueueAction.js | File | 1.96 KB | 0644 |
|
QueueAction.js.map | File | 1.17 KB | 0644 |
|
QueueScheduler.d.ts | File | 114 B | 0644 |
|
QueueScheduler.js | File | 1.03 KB | 0644 |
|
QueueScheduler.js.map | File | 243 B | 0644 |
|
VirtualTimeScheduler.d.ts | File | 1.37 KB | 0644 |
|
VirtualTimeScheduler.js | File | 4.03 KB | 0644 |
|
VirtualTimeScheduler.js.map | File | 2.69 KB | 0644 |
|
animationFrame.d.ts | File | 1.28 KB | 0644 |
|
animationFrame.js | File | 445 B | 0644 |
|
animationFrame.js.map | File | 244 B | 0644 |
|
asap.d.ts | File | 1.62 KB | 0644 |
|
asap.js | File | 325 B | 0644 |
|
asap.js.map | File | 219 B | 0644 |
|
async.d.ts | File | 1.45 KB | 0644 |
|
async.js | File | 337 B | 0644 |
|
async.js.map | File | 221 B | 0644 |
|
queue.d.ts | File | 1.98 KB | 0644 |
|
queue.js | File | 337 B | 0644 |
|
queue.js.map | File | 221 B | 0644 |
|