Timeline Studio API Documentation - v0.26.0
    Preparing search index...
    • Создает новый субтитровый клип

      Parameters

      • text: string
      • trackId: string
      • startTime: number
      • duration: number
      • Optionaloptions: {
            animationIn?: {
                duration: number;
                easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out";
                type: "slide" | "fade" | "typewriter" | "scale" | "wave";
            };
            animationOut?: {
                duration: number;
                easing?: "linear"
                | "ease"
                | "ease-in"
                | "ease-out"
                | "ease-in-out";
                type: "slide" | "fade" | "scale";
            };
            formatting?: {
                bold?: boolean;
                color?: string;
                fontSize?: number;
                italic?: boolean;
                underline?: boolean;
            };
            position?: {
                alignment: | "top-left"
                | "top-right"
                | "bottom-left"
                | "bottom-right"
                | "top-center"
                | "middle-left"
                | "middle-center"
                | "middle-right"
                | "bottom-center";
                marginX: number;
                marginY: number;
            };
            subtitleStyleId?: string;
        }

      Returns SubtitleClip