weasel API - v0.8.0
    Preparing search index...

    Interface ResolvedTextStyle

    TextStyle with all fields filled in from defaults — what the renderer actually consumes.

    interface ResolvedTextStyle {
        align: "center" | "left" | "right";
        caretColor: string;
        fill: FillStyle;
        fontFamily: string;
        fontSize: number;
        fontStyle: "normal" | "italic";
        fontWeight: string | number;
        letterSpacing: number;
        lineHeight: number;
        selectionBackground: string | null;
        selectionColor: string | null;
        strikethrough: boolean;
        stroke?: Stroke;
        underline: boolean;
    }
    Index

    Properties

    align: "center" | "left" | "right"
    caretColor: string
    fill: FillStyle
    fontFamily: string
    fontSize: number
    fontStyle: "normal" | "italic"
    fontWeight: string | number
    letterSpacing: number
    lineHeight: number
    selectionBackground: string | null
    selectionColor: string | null
    strikethrough: boolean
    stroke?: Stroke

    Absent means no outline — unlike the other fields, this one has no default to fall back to. See TextStyle.stroke.

    underline: boolean