Class Clip<T, K>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

animationController: (Anonymous class)<T, K>
id: string
sprite: T
state: ClipState
style: K

Methods

  • Returns {
        animationController?: {
            animationDataIn?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationDataLoop?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string
                        | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationDataOut?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string
                        | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationInDuration?: number;
            animationLoopCount?: number;
            animationOutDuration?: number;
            loopSmoothing?: number;
        };
        clipMasks?: { clipId: string; id: string; wrapMode: MaskWrapModeEnum }[];
        customData?: [string, unknown][];
        duration: number;
        effects: {
            id: string;
            options: {
                fragmentSrc?: string;
                frameHeight: number;
                frameWidth: number;
                textureHeight: number;
                textureWidth: number;
                uniforms?: Record<string, unknown>;
            };
            sourceId: string;
        }[];
        filters: { id: string; options: { lutUrl: string }; sourceId: string }[];
        id: string;
        isVisible: boolean;
        leftTrim: number;
        mediaDataId?: string;
        rightTrim: number;
        startTime: number;
        style?: unknown;
        subtitlesId?: string;
        subtitlesOffset: number;
        text?: string;
        type: string;
        wrapMode?: CLAMP | REPEAT | PING_PONG | EMPTY;
    }

  • Parameters

    • key: string
    • value: unknown
    • overwrite: boolean = true

    Returns boolean

  • Parameters

    • subtitlesId: string
    • offset: number = 0

    Returns void

  • Parameters

    • OptionalnewMediaId: string

    Returns Promise<boolean>