Class TextStyle

Hierarchy (View Summary)

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"
padding: number[]
strokeColor: string
strokeThickness: number
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;
        padding: number[];
        position: [number, number];
        relativeCornerRadius: boolean;
        rotation: number;
        scale: [number, number];
        strokeColor: string;
        strokeThickness: number;
        textAlign: "left" | "center" | "right" | "justify";
        width?: number;
        wordWrapWidth: null | number;
        zIndex: number;
    }

  • Parameters

    • radii: number | [number, number, number, number]
    • relative: boolean = false

    Returns void

  • Parameters

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

    Returns void