Skip to content

CellVertexId

  • VertexId

new CellVertexId(workbookKey, sheetIndex, rowIndex, colIndex): CellVertexId

number

The dependency graph key of the workbook

number

Zero-based sheet index

number

Zero-based row index

number

Zero-based column index

CellVertexId

VertexId.constructor

colIndex: number


key: string

VertexId.key


rowIndex: number


sheetIndex: number


workbookKey: number

VertexId.workbookKey

get bottom(): number

number


get left(): number

number


get right(): number

number


get top(): number

number

contains(otherId): boolean

Check if this vertex ID fully contains another (i.e., all cells of the other vertex ID are within this one). The base implementation only matches exact key equality; RangeVertexId overrides this for geometric containment.

KnownVertexId

boolean

VertexId.contains


is1x1(): boolean

boolean


offset(rows, cols): CellVertexId

number

number

CellVertexId


overlaps(otherId): boolean

Check if this vertex ID overlaps with another. Used for determining if a dynamic dependency edge applies to a given cell/range change. The base implementation only matches exact key equality; subclasses like RangeVertexId override this to perform geometric intersection.

KnownVertexId

boolean

VertexId.overlaps


topLeft(): CellVertexId

CellVertexId


toRange(): Range

Range

VertexId.toRange


toString(): string

string

VertexId.toString


visitCells(callback, bounds?): void

CallbackWithStop<CellVertexId>

function to call with each cell vertex ID

the maximum 0-based x and y coordinates to visit. If not specified, then all coordinates of this range vertex ID are visited.

number

number

void


withCoordinates(x, y): CellVertexId

number

number

CellVertexId


withSheetIndex(newSheetIndex): KnownVertexId

number

KnownVertexId

VertexId.withSheetIndex


static fromKey(key): KnownVertexId

string

KnownVertexId

VertexId.fromKey