y in content pixels
number of rows (> 0)
top of a row in content pixels (AreaModelIf.getYPosByRowIndex)
Optional constantRowHeight: numberthe height of every row, if they are all equal (AreaModelIf.getConstantRowHeight)
the row index, 0 … rowCount - 1
const body = tableModel.getBodyModel();
const rowIndex = findRowIndexAtY(1234, body.getRowCount(), i => body.getYPosByRowIndex(i), body.getConstantRowHeight?.());
1.1.95
The row at a content position (y in px from the top of all body rows): constant row heights are computed directly, variable ones by a binary search over the row tops. Positions above / below the rows give the first / last row.