VideoUltra API
    Preparing search index...

    Interface CaptionPreset

    Caption style presets (v0.2 A3): a text style, where captions sit, and how the word being said is highlighted. Our own designs; fonts are the editor's font presets (system fonts).

    interface CaptionPreset {
        highlight: "type" | "fill" | "none" | "word" | "box" | "reveal";
        highlightColor: string;
        id: string;
        label: string;
        style: {
            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;
        };
        y: number;
    }
    Index
    highlight: "type" | "fill" | "none" | "word" | "box" | "reveal"
    highlightColor: string
    id: string
    label: string
    style: {
        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;
    }

    Type Declaration

    • 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

      Font size as a fraction of canvas height.

    y: number

    Vertical centre as a fraction of the canvas (0.82 ≈ lower third).