(injector: Injector)
| 85 | } |
| 86 | |
| 87 | export function scheduleAnimationQueue(injector: Injector) { |
| 88 | const animationQueue = injector.get(ANIMATION_QUEUE); |
| 89 | // We only want to schedule the animation queue if it hasn't already been scheduled. |
| 90 | if (!animationQueue.isScheduled) { |
| 91 | afterNextRender( |
| 92 | () => { |
| 93 | animationQueue.isScheduled = false; |
| 94 | for (let animateFn of animationQueue.queue) { |
| 95 | animateFn(); |
| 96 | } |
| 97 | animationQueue.queue.clear(); |
| 98 | }, |
| 99 | {injector: animationQueue.injector}, |
| 100 | ); |
| 101 | animationQueue.isScheduled = true; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | export function initializeAnimationQueueScheduler(injector: Injector) { |
| 106 | const animationQueue = injector.get(ANIMATION_QUEUE); |
nothing calls this directly
no test coverage detected