See

Widget

Constructors

Properties

canvas: Canvas
ck: CanvasKit
config: Config
height: number
last: Widget
playing: boolean = false
plugins: GlobalPlugin[]
scene: Scene
surface: Surface
updates: ((elapsed) => void)[] = []

Type declaration

    • (elapsed): void
    • Parameters

      • elapsed: number

      Returns void

width: number

Methods

  • Get every frame's image data

    Parameters

    • duration: number

      The duration

    • Optional fps: number

    Returns Uint8Array[]

    The image data list.

  • Set up a update function to call it when the widget is changed.

    Parameters

    • updateFunc: ((elapsed) => void)

      The frame from having gone to current frame.

        • (elapsed): void
        • Parameters

          • elapsed: number

          Returns void

    Returns void