meo-skia-canvas
    Preparing search index...

    Variable RectHeightStyleConst

    RectHeightStyle: {
        IncludeLineSpacingBottom: 4;
        IncludeLineSpacingMiddle: 2;
        IncludeLineSpacingTop: 3;
        Max: 1;
        Strut: 5;
        Tight: 0;
    }

    How tall the rectangles Paragraph.getRectsForRange returns are.

    A selection highlight and a hit test want different answers from the same range: the highlight should meet its neighbours with no gap, the hit test should cover only the glyphs.

    🧪 Not in the HTML Canvas standard.

    Type Declaration

    • ReadonlyIncludeLineSpacingBottom: 4

      The line spacing below, so the last line reaches the bottom.

    • ReadonlyIncludeLineSpacingMiddle: 2

      Half the line spacing above and below, except at the ends.

    • ReadonlyIncludeLineSpacingTop: 3

      The line spacing above, so the first line reaches the paragraph top.

    • ReadonlyMax: 1

      The line's full height, so consecutive lines meet.

    • ReadonlyStrut: 5

      The strut's height, ignoring the glyphs.

    • ReadonlyTight: 0

      The glyphs and nothing more. The default, and what a hit test wants.