# @salmonui/data-grid/engine/focus API reference

> 15 exported symbols of @salmonui/data-grid/engine/focus: 3 functions, 2 interfaces and 10 types.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-focus

```ts
import { … } from '@salmonui/data-grid/engine/focus';
```

## Functions

### spanAnchorOf

Kind: function

Page: https://salmonui.dev/docs/reference/data-grid/engine-focus/spanAnchorOf

```ts
function spanAnchorOf<Row>(ctx: ModuleContext<Row>, spans: CellSpanResolver | null, rowId: RowId, columnId: ColumnId): {
    rowId: RowId;
    columnId: ColumnId;
} | null;
```

The anchor cell of the span covering a cell: the cell a
span-aware focus, selection, or edit targets. Null when there is no
resolver, the cell is outside the view, or it is not covered by a span
starting elsewhere.

## Re-exported entry points

- [@salmonui/data-grid/engine](https://salmonui.dev/docs/reference/data-grid/engine.md): 14 symbols: 2 functions, 2 interfaces and 10 types
  `FocusCommand`, `FocusDirection`, `FocusIntent`, `FocusMethods`, `FocusModule`, `FocusMoveCommand`, `FocusOptions`, `FocusSetCommand`, `FocusSetDirectionCommand`, `FocusSetModeCommand`, `FocusState`, `FocusTarget`, `createFocusModule`, `visibleColumnIndex`
