Interface TextClipOptions

interface TextClipOptions {
    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?: Partial<
        {
            alpha: number;
            backgroundColor: null
            | string;
            clipId: string;
            color: string;
            cornerRadius?: [number, number, number, number];
            fontFamily: string;
            fontSize: number;
            fontStyle: "normal" | "italic" | "oblique";
            fontWeight:
                | "bold"
                | "normal"
                | "bolder"
                | "lighter"
                | "100"
                | "200"
                | "300"
                | "400"
                | "500"
                | "600"
                | "700"
                | "800"
                | "900";
            height?: number;
            mediaDataId?: string;
            padding: number[];
            position: [number, number];
            relativeCornerRadius: boolean;
            rotation: number;
            scale: [number, number];
            strokeColor: string;
            strokeThickness: number;
            textAlign: "left" | "center" | "right" | "justify";
            width?: number;
            wordWrapWidth: null | number;
            zIndex: number;
        },
    >;
    subtitlesId?: string;
    subtitlesOffset?: number;
    text?: string;
    type?: string;
}

Hierarchy (View Summary)

Properties

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?: Partial<
    {
        alpha: number;
        backgroundColor: null
        | string;
        clipId: string;
        color: string;
        cornerRadius?: [number, number, number, number];
        fontFamily: string;
        fontSize: number;
        fontStyle: "normal" | "italic" | "oblique";
        fontWeight:
            | "bold"
            | "normal"
            | "bolder"
            | "lighter"
            | "100"
            | "200"
            | "300"
            | "400"
            | "500"
            | "600"
            | "700"
            | "800"
            | "900";
        height?: number;
        mediaDataId?: string;
        padding: number[];
        position: [number, number];
        relativeCornerRadius: boolean;
        rotation: number;
        scale: [number, number];
        strokeColor: string;
        strokeThickness: number;
        textAlign: "left" | "center" | "right" | "justify";
        width?: number;
        wordWrapWidth: null | number;
        zIndex: number;
    },
>
subtitlesId?: string
subtitlesOffset?: number
text?: string
type?: string