BBTextObjectDataType: {
    content: {
        align: "left" | "center" | "right";
        color: string;
        fontFamily: string;
        fontSize: number;
        opacity: number;
        text: string;
        visible: boolean;
        wordWrap: boolean;
    };
}

Base parameters for gdjs.BBTextRuntimeObject

Type declaration

  • content: {
        align: "left" | "center" | "right";
        color: string;
        fontFamily: string;
        fontSize: number;
        opacity: number;
        text: string;
        visible: boolean;
        wordWrap: boolean;
    }

    The base parameters of the BBText

    • align: "left" | "center" | "right"

      Alignment of the text: "left", "center" or "right"

    • color: string

      The color of the text

    • fontFamily: string

      The font of the text

    • fontSize: number

      The size of the text

    • opacity: number

      The opacity of the BBText

    • text: string

      Content of the text

    • visible: boolean

      Deprecated - Is the text visible?

    • wordWrap: boolean

      Activate word wrap if set to true