meo-skia-canvas
    Preparing search index...

    Interface ParagraphStyleInput

    🧪 Not in the HTML Canvas standard.

    interface ParagraphStyleInput {
        ellipsis?: string;
        maxLines?: number;
        strutStyle?: StrutStyleInput;
        textAlign?:
            | "center"
            | "end"
            | "start"
            | "left"
            | "right"
            | "justify"
            | string & {};
        textDirection?: "ltr"
        | "rtl"
        | string & {};
        textHeightBehavior?: number;
        textStyle?: TextStyleInput;
    }
    Index
    ellipsis?: string

    String appended to the last line when maxLines truncated the text.

    maxLines?: number

    Cap on the number of lines. Anything past it is dropped, which Paragraph.didExceedMaxLines then reports.

    strutStyle?: StrutStyleInput

    Fixed line box for deterministic leading.

    textAlign?:
        | "center"
        | "end"
        | "start"
        | "left"
        | "right"
        | "justify"
        | string & {}

    Matched case-insensitively. An unrecognised value is ignored and the default alignment stands, so a typo fails silently.

    textDirection?: "ltr" | "rtl" | string & {}

    Base direction for the paragraph. Matched case-insensitively; an unrecognised value is ignored.

    textHeightBehavior?: number

    First/last-line leading trim: 0 All, 1 DisableFirstAscent, 2 DisableLastDescent, 3 DisableAll. Mirrors CanvasKit's TextHeightBehavior.

    textStyle?: TextStyleInput

    The style text starts in, before any ParagraphBuilder.pushStyle. Font variations are read from here and nowhere else.