@searsuite/sear-plugin-zoom
Editor-local zoom state, commands, observations, and render integration.
- classSheetZoomPlugin
-
class SheetZoomPlugin extends Plugin<SearCoreSheet, CellProperties, Record<string, never>>Local-only Excel-style sheet view zoom. It never changes document data or OT state.
constructor SheetZoomPlugin(keyboardRouter: KeyboardRouter, commands?: SheetCommandBus, platform?: Platform): SheetZoomPluginproperty readonly pluginKey: PluginKeystaticStable plugin key for SheetZoomPlugin.
property readonly symbol: typeof symbolstaticDI token for resolving SheetZoomPlugin.
method apply(state: Record<string, never>, _transaction: Transaction): Record<string, never>Applies a transaction to SheetZoomPlugin state.
method getPluginConfig(): unknownReturns the plugin config.
method getScale(): numberReturns the scale.
method registerCommands(commands: SheetCommandBus): voidRegisters the commands.
method registerConfig(): { config: ConfigUnit<{ maxScale: number; minScale: number; step: number }>; key: PluginKey }[]Registers default configuration values owned by this plugin.
method registerSessionState(registry: SessionStateRegistry): voidRegisters local view scale after Core initialization makes zoom effects available.
method registerState(): { key: PluginKey; state: Record<string, never> }Registers the state.
method render(core: SearCoreSheet): Node<CellProperties>[]Renders SheetZoomPlugin scene output.
method setScale(nextScale: number): voidUpdates the scale.
Inherited members 28
Inherited from Plugin.
- depth
- documentState
- interestedIn
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- variableSetSheetZoomCommand
-
SetSheetZoomCommand: SheetCommandDefinition<number, SheetCommandResult>Command that updates local sheet view zoom; input is the next zoom scale.
- variableSheetZoomSessionStateDefinition
-
SheetZoomSessionStateDefinition: SessionStateDefinition<number>Stable session-state identity owned by SheetZoomPlugin.
No matching API entries.