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