meo-skia-canvas
    Preparing search index...

    Interface GlyphPosition

    A text position, as returned by Paragraph.getGlyphPositionAtCoordinate.

    🧪 Not in the HTML Canvas standard.

    interface GlyphPosition {
        affinity: number;
        pos: number;
    }
    Index
    affinity: number

    Which side of pos the query point fell on: 0 upstream (the end of the preceding glyph), 1 downstream (the start of the following one). It is what decides where a caret sits at a line wrap.

    pos: number

    Offset into the paragraph's text, in UTF-16 code units.