meo-skia-canvas
    Preparing search index...

    Interface TextBox

    One rectangle covering a run of text, from Paragraph.getRectsForRange or Paragraph.getRectsForPlaceholders.

    🧪 Not in the HTML Canvas standard.

    interface TextBox {
        direction: number;
        rect: [number, number, number, number];
    }
    Index
    direction: number

    Direction of the run: 0 right-to-left, 1 left-to-right.

    rect: [number, number, number, number]

    [left, top, right, bottom] relative to the paragraph's top-left corner -- edges, not the [x, y, width, height] that the filter classes take.