Skip to content

Type Editor


Type Editor / @type-editor/tables / utils/points-at-cell

utils/points-at-cell

Functions

FunctionDescription

pointsAtCell

Checks if the given position points directly at a cell.

A position "points at" a cell when its parent is a table row and there is a node immediately after the position.

Example

typescript
if (pointsAtCell($pos)) {
  const cell = $pos.nodeAfter;
  // Process the cell...
}