Skip to content

Type Editor


Type Editor / @type-editor/tables / utils/next-cell

utils/next-cell

Functions

FunctionDescription

nextCell

Finds the next cell in a given direction along an axis.

Navigates from the current cell position to find an adjacent cell, properly handling cells that span multiple rows or columns.

Example

typescript
const nextRight = nextCell($cellPos, "horiz", 1);
const nextUp = nextCell($cellPos, "vert", -1);