* Stops the current animation and queues a new animation. * @param handler Function to invoke when timeout is complete. * @param timeout Length of time to wait before invoking the handler. * @param options Optional QueuedAnimationOptions object.
(handler, timeout, options)
| 8101 | * @param timeout Length of time to wait before invoking the handler. |
| 8102 | * @param options Optional QueuedAnimationOptions object. |
| 8103 | */ animationQueue(handler, timeout, options) { |
| 8104 | if (this.logger) this.logger(`queueing animation ${options && options.waitingLabel || "waiting"}...`); |
| 8105 | this.animationCancel(); |
| 8106 | this.animationTimer = setTimeout(()=>{ |
| 8107 | if (this.logger) this.logger(`queueing animation ${options && options.handlerLabel || "handler"}...`); |
| 8108 | handler(); |
| 8109 | }, timeout); |
| 8110 | } |
| 8111 | /** |
| 8112 | * Retrieve a sub-element of the rendered output. |
| 8113 | * @param type PresenterElement type of the HTMLElement to retrieve. |
no test coverage detected