VideoUltra API
    Preparing search index...

    Interface TemplateElement

    One element of a template. Times in seconds from the template's start.

    interface TemplateElement {
        content: string;
        duration: number;
        in?: string;
        kind: "emoji" | "text";
        loop?: string;
        maxWidth?: number;
        out?: string;
        rotation?: number;
        scale?: number;
        start: number;
        style?: Partial<
            {
                align: "left"
                | "right"
                | "center";
                background: { color: string; padding: number; radius: number } | null;
                color: string;
                fontFamily: string;
                fontWeight: number;
                italic: boolean;
                letterSpacing: number;
                lineHeight: number;
                outline: { color: string; width: number } | null;
                shadow: { blur: number; color: string; x: number; y: number } | null;
                size: number;
            },
        >;
        x: number;
        y: number;
    }
    Index
    content: string

    Text with {variable}s, or the emoji.

    duration: number
    in?: string
    kind: "emoji" | "text"
    loop?: string
    maxWidth?: number

    Text wrap width, fraction of the canvas width.

    out?: string
    rotation?: number
    scale?: number

    Emoji: size as a fraction of the canvas's shorter side. Text: ignored (style.size).

    start: number
    style?: Partial<
        {
            align: "left"
            | "right"
            | "center";
            background: { color: string; padding: number; radius: number } | null;
            color: string;
            fontFamily: string;
            fontWeight: number;
            italic: boolean;
            letterSpacing: number;
            lineHeight: number;
            outline: { color: string; width: number } | null;
            shadow: { blur: number; color: string; x: number; y: number } | null;
            size: number;
        },
    >
    x: number

    Centre, fractions of the canvas.

    y: number