MAIDR JavaScript API
    Preparing search index...

    Function computeIndexAndSegment

    • Compute the point index and segment type a grid cell names.

      The cell is [section][point] in every orientation: the highlight grid, the braille cell and the movable grid of a sectioned trace all share that frame, and the orientation only says which screen axis the points run along.

      Type Parameters

      • T extends string

      Parameters

      • row: number

        The row coordinate from UI/ViewModel

      • col: number

        The column coordinate from UI/ViewModel

      • sections: readonly T[]

        Array of available section names (e.g., ['open', 'high', 'low', 'close'])

      Returns { pointIndex: number; segmentType: T }

      Object containing pointIndex and segmentType