Class TextStyle

Hierarchy (view full)

Constructors

Properties

backgroundColor: null | string
color: string
fontFamily: string
fontSize: number
fontStyle: "normal" | "italic" | "oblique"
fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"
textAlign: "left" | "center" | "right" | "justify"
wordWrapWidth: null | number

Methods

  • Returns "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"

  • Returns {
        alpha: number;
        backgroundColor: null | string;
        clipId: string;
        color: string;
        cornerRadius?: [number, number, number, number];
        fontFamily: string;
        fontSize: number;
        fontStyle: "normal" | "italic" | "oblique";
        fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
        height?: number;
        mediaDataId?: string;
        position: [number, number];
        relativeCornerRadius: boolean;
        rotation: number;
        scale: [number, number];
        textAlign: "left" | "center" | "right" | "justify";
        width?: number;
        zIndex: number;
    }

    • alpha: number
    • backgroundColor: null | string
    • clipId: string
    • color: string
    • Optional cornerRadius?: [number, number, number, number]
    • fontFamily: string
    • fontSize: number
    • fontStyle: "normal" | "italic" | "oblique"
    • fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"
    • Optional height?: number
    • Optional mediaDataId?: string
    • position: [number, number]
    • relativeCornerRadius: boolean
    • rotation: number
    • scale: [number, number]
    • textAlign: "left" | "center" | "right" | "justify"
    • Optional width?: number
    • zIndex: number
  • Parameters

    • fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"

    Returns void

Generated using TypeDoc