Class WorkerPAGView

Hierarchy

  • WorkerPAGView

Methods

  • The duration of current composition in microseconds.

    Returns Promise<number>

  • Set the number of times the animation will repeat. The default is 1, which means the animation will play only once. 0 means the animation will play infinity times.

    Parameters

    • repeatCount: number

    Returns Promise<void>

  • Returns the current progress of play position, the value is from 0.0 to 1.0. It is applied only when the composition is not null.

    Returns Promise<number>

  • Set the progress of play position, the value is from 0.0 to 1.0.

    Parameters

    • progress: number

    Returns Promise<undefined>

  • Specifies the rule of how to scale the pag content to fit the surface size. The matrix changes when this method is called.

    Parameters

    Returns Promise<void>

  • Call this method to render current position immediately. If the play() method is already called, there is no need to call it. Returns true if the content has changed.

    Returns Promise<boolean>

Constructors

Properties

key: number
worker: Worker
isDestroyed: boolean = false

Generated using TypeDoc