Class HtmlTextClip

Hierarchy (view full)

Constructors

Properties

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

Methods

  • 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;
        };
        customData?: [string, unknown][];
        duration: number;
        effects: unknown[];
        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;
        leftTrim: number;
        mediaDataId?: string;
        rightTrim: number;
        startTime: number;
        style?: unknown;
        subtitlesId?: string;
        subtitlesOffset: number;
        text?: string;
        type: string;
        warpMode: WarpModeEnum;
    }

    • Optional 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;
      }
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional animationInDuration?: number
      • Optional animationLoopCount?: number
      • Optional animationOutDuration?: number
      • Optional loopSmoothing?: number
    • Optional customData?: [string, unknown][]
    • duration: number
    • effects: unknown[]
    • filters: {
          id: string;
          options: {
              lutUrl: string;
          };
          sourceId: string;
      }[]
    • Optional 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;
      }
      • 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
    • leftTrim: number
    • Optional mediaDataId?: string
    • rightTrim: number
    • startTime: number
    • Optional style?: unknown
    • Optional subtitlesId?: string
    • subtitlesOffset: number
    • Optional text?: string
    • type: string
    • warpMode: WarpModeEnum
  • 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;
        };
        customData?: [string, unknown][];
        duration: number;
        effects: unknown[];
        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;
        leftTrim: number;
        mediaDataId?: string;
        rightTrim: number;
        startTime: number;
        style?: unknown;
        subtitlesId?: string;
        subtitlesOffset: number;
        text?: string;
        type: string;
        warpMode: WarpModeEnum;
    }

    • Optional 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;
      }
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional 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;
        }
        • Optional amplification?: number
        • inOutOfRange: OutOfRangeEnum
        • name: string
        • Optional offset?: number
        • outOutOfRange: OutOfRangeEnum
        • propertyAnimations: {
              inOutOfRange: OutOfRangeEnum;
              keyframes: {
                  easing: EasingEnum;
                  relativeProperty?: string;
                  space: AnimationSpaceEnum;
                  time: number;
                  value: string | number;
              }[];
              outOutOfRange: OutOfRangeEnum;
              property: string;
          }[]
        • Optional speed?: number
      • Optional animationInDuration?: number
      • Optional animationLoopCount?: number
      • Optional animationOutDuration?: number
      • Optional loopSmoothing?: number
    • Optional customData?: [string, unknown][]
    • duration: number
    • effects: unknown[]
    • filters: {
          id: string;
          options: {
              lutUrl: string;
          };
          sourceId: string;
      }[]
    • Optional 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;
      }
      • 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
    • leftTrim: number
    • Optional mediaDataId?: string
    • rightTrim: number
    • startTime: number
    • Optional style?: unknown
    • Optional subtitlesId?: string
    • subtitlesOffset: number
    • Optional text?: string
    • type: string
    • warpMode: WarpModeEnum
  • 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;
      }
      • Optional align?: "left" | "center" | "right" | "justify"
      • Optional breakWords?: boolean
      • Optional color?: string
      • Optional dropShadow?: boolean
      • Optional dropShadowAlpha?: number
      • Optional dropShadowAngle?: number
      • Optional dropShadowBlur?: number
      • Optional dropShadowColor?: string
      • Optional dropShadowDistance?: number
      • Optional fontFamily?: string
      • Optional fontSize?: number
      • Optional fontStyle?: "normal" | "italic" | "oblique"
      • Optional fontVariant?: "normal" | "small-caps"
      • Optional fontWeight?: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"
      • Optional letterSpacing?: number
      • Optional lineHeight?: number
      • Optional padding?: number
      • Optional stroke?: string
      • Optional strokeThickness?: number
      • Optional whiteSpace?: "pre" | "normal" | "pre-line"
      • Optional wordWrap?: boolean
      • Optional wordWrapWidth?: number
    • reset: boolean = false

    Returns void

Generated using TypeDoc