# computeDropPoint (@salmonui/data-grid/engine/row-drag-drop)

> The computeDropPoint function of @salmonui/data-grid/engine/row-drag-drop: 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.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-row-drag-drop/computeDropPoint

```ts
import { computeDropPoint } from '@salmonui/data-grid/engine/row-drag-drop';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-row-drag-drop (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-row-drag-drop.md).

## Reference

Kind: function

```ts
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.
