The Animation interface having not gotten instanced

interface Animation<T> {
    act: ((widget, elapsed, process, duration, ck, params?) => void);
    after?: ((widget, elapsed, ck, params?) => void);
    init?: ((widget, startAt, duration, ck, params?) => void);
}

Type Parameters

  • T

Properties

Properties

act: ((widget, elapsed, process, duration, ck, params?) => void)

The action of this animation when it's in his lifecycle.

Type declaration

    • (widget, elapsed, process, duration, ck, params?): void
    • Parameters

      • widget: T

        The widget's self.

      • elapsed: number

        The elapsed frame.

      • process: number

        The process of this animation, value is duration [0, 1]

      • duration: number
      • ck: CanvasKit
      • Optional params: any

        The other parameters of this animation

      Returns void

Returns

after?: ((widget, elapsed, ck, params?) => void)

Type declaration

    • (widget, elapsed, ck, params?): void
    • Parameters

      • widget: T
      • elapsed: number
      • ck: CanvasKit
      • Optional params: any

      Returns void

init?: ((widget, startAt, duration, ck, params?) => void)

Type declaration

    • (widget, startAt, duration, ck, params?): void
    • Parameters

      • widget: T
      • startAt: number
      • duration: number
      • ck: CanvasKit
      • Optional params: any

      Returns void

See

act