API reference
@searsuite/sear-plugin-format-painter
Sheet format painting through state-owner contributions.
17 exportsderived from source
- classSheetFormatPainterPluginsource ↗
-
class SheetFormatPainterPlugin extends Plugin<unknown, CellProperties, null>Owns only a local captured-format session; document formats remain with their owners.
constructorconstructor SheetFormatPainterPlugin(options: SheetFormatPainterOptions): SheetFormatPainterPluginoptions: SheetFormatPainterOptions
propertywarnOnDuplicateDepth readonly warnOnDuplicateDepth: falseWhether PluginManager should warn when another ordered plugin shares this depth.
propertysymbolstatic readonly symbol: typeof symbolmethodapply apply(_state: null, _transaction: Transaction): nullApplies a transaction to plugin-owned state and returns the next state.
_state: null_transaction: Transaction
methoddestroy destroy(): voidmethodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodregisterCommands registerCommands(commands: SheetCommandBus): voidcommands: SheetCommandBus
methodregisterObservations registerObservations(observations: ObservationRegistry): voidobservations: ObservationRegistry
methodregisterState registerState(): { dataEngine: { enabled: boolean }; key: PluginKey; state: null }Registers one or more plugin-owned state records with the host manager.
methodrender render(): nullProduces scene nodes owned by this plugin for the current core state.
Inherited members 29
Inherited from Plugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerConfig
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- classSheetFormatPainterSessionsource ↗
-
class SheetFormatPainterSessionLocal brush state borrowed by Sheet editors mounted within one Workbook.
constructorconstructor SheetFormatPainterSession(): SheetFormatPainterSessionpropertysymbolstatic readonly symbol: typeof symbolmembersnapshot snapshot: unknownmemberstate state: unknownmethodclear clear(): voidmethodstart start(formats: SheetFormatTransferRegistry, snapshot: SheetFormatTransferSnapshot, state: FormatPainterState): voidformats: SheetFormatTransferRegistrysnapshot: SheetFormatTransferSnapshotstate: FormatPainterState
methodvisibleState visibleState(formats: SheetFormatTransferRegistry): FormatPainterStateformats: SheetFormatTransferRegistry
- interfaceFormatPainterStatesource ↗
-
interface FormatPainterState - interfaceSheetFormatPainterOptionssource ↗
-
interface SheetFormatPainterOptionsDependencies supplied by the owning composition root, with no global state.
- interfaceStartFormatPainterInputsource ↗
-
interface StartFormatPainterInput - typeFormatPainterModesource ↗
-
type FormatPainterMode = typeof FormatPainterMode[keyof typeof FormatPainterMode]Canonical activation modes shared by commands and hosts.
- variableApplyFormatPainterCommandsource ↗
-
ApplyFormatPainterCommand: SheetCommandDefinition<{ destination: SheetMoveRange }, SheetCommandResult> - variableCancelFormatPainterCommandsource ↗
-
CancelFormatPainterCommand: SheetCommandDefinition<void, SheetCommandResult> - variableFormatPainterModesource ↗
-
FormatPainterMode: { Once: "once"; Persistent: "persistent" }Canonical activation modes shared by commands and hosts.
- variableFormatPainterObservationsource ↗
-
FormatPainterObservation: StateObservationDefinition<FormatPainterState> - variableStartFormatPainterCommandsource ↗
-
StartFormatPainterCommand: SheetCommandDefinition<StartFormatPainterInput, SheetCommandResult> - functioncreateMatrixFormatTransfersource ↗
-
createMatrixFormatTransfer<Value>(id: string, target: PluginKey, readMatrix: (): SheetFormatMatrix<Value>): Required<SheetFormatTransferContribution>Captures sparse persisted formats and tiles them over an inclusive target.
id: stringtarget: PluginKeyreadMatrix: (): SheetFormatMatrix<Value>
- typeSheetFormatRangesource ↗
-
type SheetFormatRange = SheetMoveRangeInclusive range shared by format-transfer owners and hosts.
- interfaceSheetFormatTransferContributionsource ↗
-
interface SheetFormatTransferContributionOptional state-owner contribution to format painting.
propertyid readonly id: stringmethodcapture capture(source: SheetMoveRange): SheetFormatTransferSnapshotsource: SheetMoveRange
methodclear clear(range: SheetMoveRange): readonly SheetFormatTransferPlan[]Plans removal of this owner's explicit formats without changing cell content.
range: SheetMoveRange
methodplanCaptured planCaptured(portable: unknown, destination: SheetMoveRange): readonly SheetFormatTransferPlan[]Plans a captured source pattern using this owner's current target state.
portable: unknowndestination: SheetMoveRange
- interfaceSheetFormatTransferPlansource ↗
-
interface SheetFormatTransferPlanOne owner's isolated plan; only the owner interprets its operations.
propertyoperations readonly operations: readonly Operation[]propertytarget readonly target: PluginKey - classSheetFormatTransferRegistrysource ↗
-
class SheetFormatTransferRegistryEditor-local composition of state-owner format transfers.
constructorconstructor SheetFormatTransferRegistry(): SheetFormatTransferRegistrypropertysymbolstatic readonly symbol: typeof symbolmethodcapture capture(source: SheetMoveRange): SheetFormatTransferSnapshotsource: SheetMoveRange
methodcapturePortable capturePortable(source: SheetMoveRange): readonly SheetPortableFormatTransfer[]source: SheetMoveRange
methodclear clear(range: SheetMoveRange): readonly SheetFormatTransferPlan[]Plans all format owners against the same unchanged pre-clear state.
range: SheetMoveRange
methoddestroy destroy(): voidmethodplanPortable planPortable(captured: readonly SheetPortableFormatTransfer[], destination: SheetMoveRange): readonly SheetFormatTransferPlan[]captured: readonly SheetPortableFormatTransfer[]destination: SheetMoveRange
methodregister register(owner: SheetFormatTransferContribution): (): voidowner: SheetFormatTransferContribution
- interfaceSheetFormatTransferSnapshotsource ↗
-
interface SheetFormatTransferSnapshotCaptured format data, independent of subsequent source changes.
propertyportable readonly portable?: unknownCaptured owner data that can be planned against another Sheet instance.
methodplan plan(destination: SheetMoveRange, targetRegistry?: SheetFormatTransferRegistry): readonly SheetFormatTransferPlan[]destination: SheetMoveRangetargetRegistry: SheetFormatTransferRegistry
No public exports match that search.