AngularTS
    Preparing search index...

    Class AnimateRunner

    Index

    Constructors

    • Accepts optional host callbacks. Set jsAnimation to true to use RAF/timer ticks instead of the batched CSS animation queue.

      Parameters

      • host: AnimationHost = {}
      • jsAnimation: boolean = false

      Returns AnimateRunner

    Properties

    _doneCallbacks: ((ok: boolean) => void)[]
    _host: AnimationHost
    _promise: Promise<void> | null
    _state: number
    _tick: (fn: VoidFunction) => void

    Methods

    • Cancels the animation.

      Returns void

    • Standard promise catcher.

      Parameters

      • onRejected: (reason: any) => any

      Returns Promise<void>

    • Schedule animation completion.

      Parameters

      • status: boolean = true

      Returns void

    • Register a completion callback. Fires immediately if animation is already done.

      Parameters

      • fn: (ok: boolean) => void

      Returns void

    • Ends the animation successfully. Equivalent to user choosing to finish it immediately.

      Returns void

    • Standard promise finally.

      Parameters

      • onFinally: () => any

      Returns Promise<void>

    • Returns an internal promise that resolves on success, and rejects on cancel.

      Returns Promise<void>

    • Pause underlying animation (if supported).

      Returns void

    • Reports progress to host.

      Parameters

      • ...args: any[]

      Returns void

    • Resume underlying animation (if supported).

      Returns void

    • Sets or replaces the current host.

      Parameters

      • host: AnimationHost

      Returns void

    • Standard "thenable" interface

      Type Parameters

      • T

      Parameters

      • onFulfilled: (value: void) => T | PromiseLike<T>
      • OptionalonRejected: ((reason: any) => T | PromiseLike<T>) | null

      Returns Promise<T>

    • Waits until all runners complete.

      Parameters

      Returns void

    • Executes a list of runners sequentially. Each must complete before the next starts.

      Parameters

      Returns void