Class Timeline

Constructors

Properties

currentTime: number
fps: number
isPlaying: boolean
layers: Record<string, Layer>
layersOrder: string[]

Methods

  • Parameters

    • layer: Layer
    • Optionalindex: number

    Returns Promise<void>

  • Parameters

    • file: File

    Returns Promise<null | string>

  • Returns void

  • Parameters

    Returns number

  • Parameters

    • Optionaloptions: { index?: number }

    Returns Layer

  • Returns void

  • Returns number

  • Returns number

  • Returns boolean

  • Parameters

    • clipId: string

    Returns undefined | Layer

  • Parameters

    • layerId: string

    Returns undefined | Layer

  • Parameters

    • layerId: string

    Returns number

  • Returns Promise<void>

  • Parameters

    • clipId: string
    • newLayerId: string

    Returns Promise<void>

  • Returns void

  • Returns Promise<void>

  • Parameters

    • clipId: string

    Returns boolean

  • Parameters

    • layerId: string

    Returns boolean

  • Returns Promise<void>

  • Parameters

    • value: number

    Returns void

  • Returns {
        fitDuration: number;
        fps: number;
        layers: {
            clips: any[];
            id: string;
            muted?: boolean;
            transitions: {
                endClipId: string;
                id: string;
                inDuration: number;
                name: string;
                outDuration: number;
                startClipId: string;
                transitionSrc: string;
                type: "transition";
            }[];
            visible?: boolean;
            volume?: number;
        }[];
        startTime: number;
    }

  • Parameters

    • fps: number

    Returns void

  • Parameters

    • subtitlesId: string
    • offset: number
    • OptionalclipIds: string[]

    Returns void

  • Returns void