API reference
@searsuite/sear-plugin-fixed-row
Sparse fixed-row state, structural transforms, visual projection, collaboration, and export.
11 exportsderived from source
- classFixedRowMatrixsource ↗
-
class FixedRowMatrix extends CSRMatrix<boolean | null>Sparse one-by-row-count matrix whose stored
truevalues identify fixed rows.constructorconstructor FixedRowMatrix(data?: FixedRowMatrixData, shape?: [number, number]): FixedRowMatrixdata: FixedRowMatrixDatashape: [number, number]
methodaddItem addItem(row: number, column: number, value: boolean | null): thisAdds an item to the matrix at the specified row and column.
ReturnsThe current instance for chaining.
row: numberThe row index.
column: numbervalue: boolean | nullThe value to add.
methodsetItem setItem(row: number, column: number, value: boolean | null): thisStores true sparsely; false and null clear the row's fixed state.
row: numbercolumn: numbervalue: boolean | null
Inherited members 34
Inherited from CSRMatrix.
- name
- ndim
- nnz
- shape
- addColumn
- addListener
- addRow
- clone
- cloneCommittedView
- cloneDetached
- cloneForStaging
- deleteColumns
- deleteRows
- dispatch
- dot
- forEach
- forEachStored
- forEachStoredInRange
- forEachStoredInRow
- fromDense
- getCol
- getDefaultValue
- getItem
- getRow
- lockMutations
- multiply
- removeItem
- removeListener
- setDefaultValue
- sum
- swapColumn
- swapRow
- toArray
- transpose
- classSheetFixedRowPluginsource ↗
-
class SheetFixedRowPlugin extends Plugin<unknown, CellProperties, SheetFixedRowPluginState>Owns fixed-row data, commands, structural projections, export, history, and collaboration.
constructorconstructor SheetFixedRowPlugin(state: SheetFixedRowPluginState): SheetFixedRowPluginstate: SheetFixedRowPluginState
propertydocumentState readonly documentState: PluginDocumentStateContribution<SheetFixedRowPluginState, SheetFixedRowPluginState>Document-state export modules owned by this plugin state.
propertyinterestedIn interestedIn: MatrixOTActionName[]Declares which Sheet OT action names this plugin is interested in. The engine will only call
applywhen a transaction contains at least one operation matching these action names, unless the transaction is owned by this plugin.['uc', 'rr', 'rc']— only called for UpdateCell, ResizeRow, ResizeCol['*']— called for any transaction (wildcard)[]— only called for this plugin's own transactions
propertytransactionOT readonly transactionOT: { collaborative: boolean; definition: TransactionOTDefinition<MatrixOTOperation<unknown>>; ownerId: string; relations: OTTransformRelation<MatrixOTOperation<unknown>, MatrixOTOperation<unknown>>[] }Shared transaction algebra used by history and collaboration.
propertywarnOnDuplicateDepth readonly warnOnDuplicateDepth: falseWhether PluginManager should warn when another ordered plugin shares this depth.
propertydocumentStatestatic readonly documentState: PluginDocumentStateContribution<SheetFixedRowPluginState, SheetFixedRowPluginState>propertypluginKeystatic readonly pluginKey: PluginKeypropertysymbolstatic readonly symbol: typeof symbolmethodapply apply(state: SheetFixedRowPluginState, transaction: Transaction): SheetFixedRowPluginState | nullApplies direct fixed-row updates and projects sheet row structure changes.
state: SheetFixedRowPluginStatetransaction: Transaction
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodregisterCommands registerCommands(commands: SheetCommandBus): voidRegisters the public command that fixes or unfixes a row range.
commands: SheetCommandBus
methodregisterState registerState(): { dataEngine: { dataView: { fieldKey: string; select: (state: unknown): FixedRowMatrix; viewKey: string }[] }; key: PluginKey; state: SheetFixedRowPluginState }Publishes the plugin-owned matrix as a read-only Sheet data-view field.
methodrender render(): Node<CellProperties>[]Produces scene nodes owned by this plugin for the current core state.
Inherited members 26
Inherited from Plugin.
- depth
- pluginKey
- transactionHistory
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerConfig
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- interfaceFixedRowMatrixDatasource ↗
-
interface FixedRowMatrixDataSerialized sparse storage accepted by FixedRowMatrix.
- interfaceSheetFixedRowCommandDataSourcesource ↗
-
interface SheetFixedRowCommandDataSourceFixed-row state needed to validate and create invertible command operations.
propertytarget readonly target: PluginKeymethodgetRowCount getRowCount(): numbermethodisRowFixed isRowFixed(index: number): booleanindex: number
- interfaceSheetFixedRowPluginStatesource ↗
-
interface SheetFixedRowPluginStateState owned exclusively by SheetFixedRowPlugin.
propertyfixedRows readonly fixedRows: FixedRowMatrix - interfaceSheetSetRowsFixedInputsource ↗
-
interface SheetSetRowsFixedInputPublic input for fixing or unfixing rows.
- variableSetSheetRowsFixedCommandsource ↗
-
SetSheetRowsFixedCommand: SheetCommandDefinition<SheetSetRowsFixedInput, SheetCommandResult>Sets the fixed state for a contiguous row range.
- variableSheetFixedRowsFieldKeysource ↗
-
SheetFixedRowsFieldKey: "sheet.fixedRows"Stable Sheet data-view field owned by SheetFixedRowPlugin.
- functioncreateSetSheetRowsFixedOperationssource ↗
-
createSetSheetRowsFixedOperations(input: SheetSetRowsFixedInput, dataSource: SheetFixedRowCommandDataSource): UpdateCellOTOperation<boolean>[]Creates sparse, invertible fixed-row updates for a normalized row range.
input: SheetSetRowsFixedInputdataSource: SheetFixedRowCommandDataSource
- functionreadSheetFixedRowssource ↗
-
readSheetFixedRows(dataEngine: DataEngine): FixedRowMatrix | nullReads the fixed-row matrix published by SheetFixedRowPlugin.
dataEngine: DataEngine
- functionregisterSheetFixedRowCommandssource ↗
-
registerSheetFixedRowCommands(commands: SheetCommandBus, dataSource: SheetFixedRowCommandDataSource): voidRegisters the fixed-row command against one plugin-owned state source.
commands: SheetCommandBusdataSource: SheetFixedRowCommandDataSource
No public exports match that search.