API reference
@searsuite/sear-plugin-freeze
Persistent Sheet freeze boundaries and typed command surface.
11 exportsderived from source
- classSheetFreezeBoundaryErrorsource ↗
-
class SheetFreezeBoundaryError extends SearErrorPublic invalid-boundary error with stable diagnostics.
constructorconstructor SheetFreezeBoundaryError(input: SheetFreezeState, rowCount: number, columnCount: number): SheetFreezeBoundaryErrorinput: SheetFreezeStaterowCount: numbercolumnCount: number
propertycode readonly code: "SHEET_FREEZE_INVALID_BOUNDARY"Stable machine-readable identifier for this error category.
Inherited members 9
Inherited from SearError.
- classSheetFreezeMatrixsource ↗
-
class SheetFreezeMatrix extends CSRMatrix<number | null>One row with the frozen row and column counts at columns zero and one.
constructorconstructor SheetFreezeMatrix(data?: SheetFreezeMatrixData, shape?: [number, number]): SheetFreezeMatrixCreates or restores a freeze matrix.
data: SheetFreezeMatrixDatashape: [number, number]
methodaddItem addItem(row: number, column: number, value: number | null): thisAdds a boundary count through the same sparse normalization.
row: numbercolumn: numbervalue: number | null
methodsetItem setItem(row: number, column: number, value: number | null): thisSets a boundary count, removing empty values from sparse storage.
row: numbercolumn: numbervalue: number | 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
- classSheetFreezePluginsource ↗
-
class SheetFreezePlugin extends Plugin<unknown, CellProperties, SheetFreezePluginState>Owns the persistent row and column prefix kept visible during scrolling.
constructorconstructor SheetFreezePlugin(state: SheetFreezePluginState, shape: (): readonly [number, number]): SheetFreezePluginstate: SheetFreezePluginStateshape: (): readonly [number, number]
propertydocumentState readonly documentState: PluginDocumentStateContribution<SheetFreezePluginState, SheetFreezePluginState>Document-state export modules owned by this plugin state.
propertyinterestedIn readonly 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<SheetFreezePluginState, SheetFreezePluginState>propertypluginKeystatic readonly pluginKey: PluginKeypropertysymbolstatic readonly symbol: typeof symbolmethodapply apply(state: SheetFreezePluginState, transaction: Transaction): SheetFreezePluginState | nullApplies a transaction to plugin-owned state and returns the next state.
state: SheetFreezePluginStatetransaction: Transaction
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodregisterCommands registerCommands(commands: SheetCommandBus): voidcommands: SheetCommandBus
methodregisterState registerState(): { dataEngine: { dataView: { fieldKey: string; select: (state: unknown): SheetFreezeMatrix; viewKey: string }[] }; key: PluginKey; state: SheetFreezePluginState }Registers one or more plugin-owned state records with the host manager.
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
- interfaceSheetFreezeCommandSourcesource ↗
-
interface SheetFreezeCommandSourceSupplies current boundaries and sheet dimensions to the command factory.
- interfaceSheetFreezeMatrixDatasource ↗
-
interface SheetFreezeMatrixDataSparse serialization payload accepted by the freeze matrix.
- interfaceSheetFreezePluginStatesource ↗
-
interface SheetFreezePluginStateDocument-owned state for one Sheet editor's freeze boundaries.
propertyfreeze readonly freeze: SheetFreezeMatrixSparse freeze boundary matrix.
- interfaceSheetFreezeStatesource ↗
-
interface SheetFreezeStateNumber of leading rows and columns kept visible while scrolling.
- variableSetSheetFreezeCommandsource ↗
-
SetSheetFreezeCommand: SheetCommandDefinition<SheetFreezeState, SheetCommandResult>Replaces both freeze boundaries in one transaction.
- variableSheetFreezeFieldKeysource ↗
-
SheetFreezeFieldKey: "sheet.freeze"Plugin-owned data-view field for persistent freeze boundaries.
- functioncreateSetSheetFreezeOperationssource ↗
-
createSetSheetFreezeOperations(input: SheetFreezeState, source: SheetFreezeCommandSource): UpdateCellOTOperation<number | null>[]Creates invertible updates for the changed freeze boundaries.
input: SheetFreezeStatesource: SheetFreezeCommandSource
- functionreadSheetFreezesource ↗
-
readSheetFreeze(dataEngine: DataEngine): SheetFreezeStateReads freeze boundaries, returning zeroes when the plugin is absent.
dataEngine: DataEngine
No public exports match that search.