selectCellZIndex()
function selectCellZIndex(cell): number;
Selects a cell's z-index — its paint order within a layer, where higher
values draw on top. Falls back to 0 when the cell has no explicit z-index.
Parameters
| Parameter | Type | Description |
|---|---|---|
cell | Computed<CellRecord> | the resolved cell record |
Returns
number
Example
import { useCell, selectCellZIndex } from '@joint/react';
const z = useCell(cellId, selectCellZIndex);