MCPcopy Index your code
hub / github.com/microsoft/SandDance / animationQueue

Method animationQueue

docs/app/js/sanddance-app.js:8103–8110  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 2

onAnimateDataChangeMethod · 0.45
renderMethod · 0.45

Calls 2

animationCancelMethod · 0.95
handlerFunction · 0.70

Tested by

no test coverage detected