Interface ShapeClipOptions

interface ShapeClipOptions {
    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;
    shape: ShapeTypeEnum;
    startTime?: number;
    style?: Partial<
        {
            alpha: number;
            clipId: string;
            cornerRadius?: [number, number, number, number];
            fillColor?: string;
            hasFill: boolean;
            height?: number;
            innerRadius?: number;
            mediaDataId?: string;
            nrPoints?: number;
            outerRadius?: number;
            position: [number, number];
            rectRadius?: number;
            relativeCornerRadius: boolean;
            rotation: number;
            scale: [number, number];
            shape: ShapeTypeEnum;
            strokeAlignment?: number;
            strokeAlpha?: number;
            strokeColor?: string;
            strokeWidth?: number;
            width?: number;
            zIndex: number;
        },
    >;
    subtitlesId?: string;
    subtitlesOffset?: number;
    type?: string;
    wrapMode?: WrapModeEnum;
}

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;
        clipId: string;
        cornerRadius?: [number, number, number, number];
        fillColor?: string;
        hasFill: boolean;
        height?: number;
        innerRadius?: number;
        mediaDataId?: string;
        nrPoints?: number;
        outerRadius?: number;
        position: [number, number];
        rectRadius?: number;
        relativeCornerRadius: boolean;
        rotation: number;
        scale: [number, number];
        shape: ShapeTypeEnum;
        strokeAlignment?: number;
        strokeAlpha?: number;
        strokeColor?: string;
        strokeWidth?: number;
        width?: number;
        zIndex: number;
    },
>
subtitlesId?: string
subtitlesOffset?: number
type?: string
wrapMode?: WrapModeEnum