Skip to main content
Version: 4.3

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

ParameterTypeDescription
cellComputed<CellRecord>the resolved cell record

Returns

number

Example

import { useCell, selectCellZIndex } from '@joint/react';

const z = useCell(cellId, selectCellZIndex);

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub