Class HtmlTextClip

Hierarchy (View Summary)

Constructors

Properties

animationController: (Anonymous class)<Sprite, ClipStyle<Sprite>>
fonts: undefined | string[]
htmlSprite: HTMLText
htmlText: string
id: string
sprite: Sprite
state: ClipState

Methods

  • Returns {
        align: "left" | "center" | "right" | "justify";
        breakWords: boolean;
        color: string;
        dropShadow: boolean;
        dropShadowAlpha: number;
        dropShadowAngle: number;
        dropShadowBlur: number;
        dropShadowColor: string;
        dropShadowDistance: number;
        fontFamily: string;
        fontSize: number;
        fontStyle: "normal" | "italic" | "oblique";
        fontVariant: "normal" | "small-caps";
        fontWeight:
            | "bold"
            | "normal"
            | "bolder"
            | "lighter"
            | "100"
            | "200"
            | "300"
            | "400"
            | "500"
            | "600"
            | "700"
            | "800"
            | "900";
        letterSpacing: number;
        lineHeight: number;
        padding: number;
        stroke: string;
        strokeThickness: number;
        whiteSpace: "pre"
        | "normal"
        | "pre-line";
        wordWrap: boolean;
        wordWrapWidth: number;
    }

  • Returns {
        animationController?: {
            animationDataIn?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationDataLoop?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string
                        | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationDataOut?: {
                amplification?: number;
                inOutOfRange: OutOfRangeEnum;
                name: string;
                offset?: number;
                outOutOfRange: OutOfRangeEnum;
                propertyAnimations: {
                    inOutOfRange: OutOfRangeEnum;
                    keyframes: {
                        easing: EasingEnum;
                        relativeProperty?: string;
                        space: AnimationSpaceEnum;
                        time: number;
                        value: string
                        | number;
                    }[];
                    outOutOfRange: OutOfRangeEnum;
                    property: string;
                }[];
                speed?: number;
            };
            animationInDuration?: number;
            animationLoopCount?: number;
            animationOutDuration?: number;
            loopSmoothing?: number;
        };
        clipMasks?: { clipId: string; id: string; wrapMode: MaskWrapModeEnum }[];
        customData?: [string, unknown][];
        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 }[];
        fonts?: string[];
        htmlStyle: {
            align: "left" | "center" | "right" | "justify";
            breakWords: boolean;
            color: string;
            dropShadow: boolean;
            dropShadowAlpha: number;
            dropShadowAngle: number;
            dropShadowBlur: number;
            dropShadowColor: string;
            dropShadowDistance: number;
            fontFamily: string;
            fontSize: number;
            fontStyle: "normal" | "italic" | "oblique";
            fontVariant: "normal" | "small-caps";
            fontWeight:
                | "bold"
                | "normal"
                | "bolder"
                | "lighter"
                | "100"
                | "200"
                | "300"
                | "400"
                | "500"
                | "600"
                | "700"
                | "800"
                | "900";
            letterSpacing: number;
            lineHeight: number;
            padding: number;
            stroke: string;
            strokeThickness: number;
            whiteSpace: "pre"
            | "normal"
            | "pre-line";
            wordWrap: boolean;
            wordWrapWidth: number;
        };
        htmlText: string;
        id: string;
        isVisible: boolean;
        leftTrim: number;
        mediaDataId?: string;
        rightTrim: number;
        startTime: number;
        style?: unknown;
        subtitlesId?: string;
        subtitlesOffset: number;
        text?: string;
        type: string;
        wrapMode?: CLAMP
        | REPEAT
        | PING_PONG
        | EMPTY;
    }

  • Parameters

    • style: {
          align?: "left" | "center" | "right" | "justify";
          breakWords?: boolean;
          color?: string;
          dropShadow?: boolean;
          dropShadowAlpha?: number;
          dropShadowAngle?: number;
          dropShadowBlur?: number;
          dropShadowColor?: string;
          dropShadowDistance?: number;
          fontFamily?: string;
          fontSize?: number;
          fontStyle?: "normal" | "italic" | "oblique";
          fontVariant?: "normal" | "small-caps";
          fontWeight?:
              | "bold"
              | "normal"
              | "bolder"
              | "lighter"
              | "100"
              | "200"
              | "300"
              | "400"
              | "500"
              | "600"
              | "700"
              | "800"
              | "900";
          letterSpacing?: number;
          lineHeight?: number;
          padding?: number;
          stroke?: string;
          strokeThickness?: number;
          whiteSpace?: "pre"
          | "normal"
          | "pre-line";
          wordWrap?: boolean;
          wordWrapWidth?: number;
      }
    • reset: boolean = false

    Returns void