@fishjam-cloud/js-server-sdk - v0.32.2
    Preparing search index...

    Interface Text

    Text

    interface Text {
        align?: HorizontalAlign | null;
        backgroundColor?: string | null;
        color?: string | null;
        fontFamily?: string | null;
        fontSize: number;
        height?: number | null;
        id?: string | null;
        lineHeight?: number | null;
        maxHeight?: number | null;
        maxWidth?: number | null;
        style?: TextStyle | null;
        text: string;
        type: "text";
        weight?: TextWeight | null;
        width?: number | null;
        wrap?: TextWrapMode | null;
    }
    Index
    align?: HorizontalAlign | null

    (default="left") Text align.

    Text

    backgroundColor?: string | null

    (default="#00000000") Background color in #RRGGBBAA format.

    Text

    color?: string | null

    (default="#FFFFFFFF") Font color in #RRGGBBAA format.

    Text

    fontFamily?: string | null

    (default="Verdana") Font family. Provide family-name for a specific font. "generic-family" values like e.g. "sans-serif" will not work.

    Text

    fontSize: number

    Font size in pixels.

    Text

    height?: number | null

    Height of a texture that text will be rendered on. If not provided, the resulting texture will be sized based on the defined text but limited to max_height value. It's an error to provide height if width is not defined.

    Text

    id?: string | null

    Id of a component.

    Text

    lineHeight?: number | null

    Distance between lines in pixels. Defaults to the value of the font_size property.

    Text

    maxHeight?: number | null

    (default=4320) Maximal height. Limits the height of the texture that the text will be rendered on. Value is ignored if height is defined.

    Text

    maxWidth?: number | null

    (default=7682) Maximal width. Limits the width of the texture that the text will be rendered on. Value is ignored if width is defined.

    Text

    style?: TextStyle | null

    (default="normal") Font style. The selected font needs to support the specified style.

    Text

    text: string

    Text that will be rendered.

    Text

    type: "text"

    Text

    weight?: TextWeight | null

    (default="normal") Font weight. The selected font needs to support the specified weight.

    Text

    width?: number | null

    Width of a texture that text will be rendered on. If not provided, the resulting texture will be sized based on the defined text but limited to max_width value.

    Text

    wrap?: TextWrapMode | null

    (default="none") Text wrapping options.

    Text