MAIDR JavaScript API
    Preparing search index...

    Function moveToXValueInPoints

    • Navigate to a specific X value within the points array and invoke callback with new position.

      An exact match on preferredRow wins over one on any other row. A layer switch away and back calls this with the X the reader left at, and resolving that to the first row holding it silently moved a reader on line 3 to line 1: same X, different series, and every Up/Down from then on started from the wrong one.

      Parameters

      • points: PointWithX[] | PointWithX[][]

        Array of points (single or multi-row)

      • xValue: XValue

        The target X value to navigate to

      • moveToIndex: (row: number, col: number) => void

        Callback function to execute when position is found

      • preferredRow: number = 0

        The row to try first, normally the trace's current row

      Returns boolean

      True if navigation was successful, false otherwise