PixiDom - v1.0.0
    Preparing search index...

    Function glyphsToCaretPositions

    • Build a caret-positions table from glyph boxes (anything with x and width, e.g. PixiDom's virtual bitmap-text glyphs). positions[0] is 0; interior entries are each glyph's left edge; the final entry is the right edge of the last glyph.

      Parameters

      • glyphs: { width: number; x: number }[]

      Returns number[]