Skip to content

RowBridge@sheetwrite/core

On this page

Projects canonical document transactions into host-owned row changes.

The bridge only owns compact data-space identity arrays. It never writes to defaultRows, never renders, and never creates a second document store.

Members 5

constructor
constructor<Id extends RowBridgeId = RowBridgeId, Row extends Record<string, CellScalar> = Record<string, CellScalar>>(options: RowBridgeOptions<Row, Id>);
columnKeys Current semantic column keys in canonical column order.
columnKeys: (sheet?: SheetId) => readonly string[];
project Project an applied Grid change as an accepted, transformed, or remote result.
project: (event: ChangeEvent, requestedOperations?: readonly DocumentOp[], transactionId?: string) => RowBridgeProjection<Id>;
reconcile Reconcile a canonical transaction response without synchronizing host rows implicitly.
reconcile: (input: RowBridgeReconciliationInput<Id>) => RowBridgeProjection<Id>;
rowIds Current data-space row identities; visual sort and filters do not affect this order.
rowIds: (sheet?: SheetId) => readonly (Id | null)[]

Declaration

View full TypeScript declaration
class RowBridge {
constructor<
Id extends RowBridgeId = RowBridgeId,
Row extends Record<string, CellScalar> = Record<string, CellScalar>,
>(options: RowBridgeOptions<Row, Id>);
columnKeys: (sheet?: SheetId) => readonly string[];
project: (
event: ChangeEvent,
requestedOperations?: readonly DocumentOp[],
transactionId?: string,
reconcile: (
rowIds: (sheet?: SheetId) => readonly (Id | null)[];
}

Referenced by

Workspace packages depending on @sheetwrite/core

  • @sheetwrite/benchdependency
  • @sheetwrite/docs-startdependency
  • @sheetwrite/reactdependency
  • @sheetwrite/sveltedependency
  • @sheetwrite/vuedependency
  • @sheetwrite/xlsxdependency

Public exports naming RowBridge

Documentation