View as Markdown

API reference: @salmonui/data-grid/engine/row-drag-drop

computeDropPointfunction

import { computeDropPoint } from '@salmonui/data-grid/engine/row-drag-drop';
function computeDropPoint<Row>(model: RowModelSnapshot<Row>, index: number, fraction: number): DropPoint;

Drop point for a pointer at fraction (0..1) of the height of visible row index: the upper half of a data row is before, the lower half after; a group caption is into that group; a detail row is after its parent and a group footer after the group's last row. Indexes past the end land after the last row. O(log) in the row model.