@searsuite/sear-assembly-config
Editor-local configuration storage, defaults, and typed configuration access.
Configuration defaults
- interfaceDocConfig
-
Configuration owned by a standalone Doc editor.
property readonly devicePixelRatio: numberproperty readonly docFontFamily: stringproperty readonly docFontSize: numberproperty readonly docLineHeightMultiplier: numberDefault paragraph line-height multiplier used by standalone Doc.
property readonly docParagraphSpacingAfter: numberDefault paragraph spacing after each non-final block.
property readonly docVerticalAlign: "center" | "top"property readonly incrementalRenderPolicyLimits: IncrementalRenderPolicyLimitsConfig - interfaceIncrementalRenderPolicyLimitsConfig
-
Guardrails for accepting an incremental document render plan.
property readonly maxCopiedAreaRatio: numberproperty readonly maxCopyCount: numberproperty readonly maxInvalidAreaRatio: numberproperty readonly maxInvalidRectCount: number - interfaceSheetConfig
-
Configuration owned by a standalone Sheet editor.
property readonly cellPadding: numberproperty readonly defaultCellAlign: SheetHorizontalAlignmentproperty readonly defaultCellVerticalAlign: SheetVerticalAlignmentproperty readonly defaultColumnSize: numberproperty readonly defaultRowSize: numberproperty readonly devicePixelRatio: numberproperty readonly sheetCellFontFamily: stringproperty readonly sheetCellFontSize: numberproperty readonly sheetOffsetX: numberproperty readonly sheetOffsetY: number - typeEditorDefaultConfigOverrides
-
type EditorDefaultConfigOverrides = Partial<TConfig> & Record<string, unknown>Host-provided overrides for one editor-owned configuration object.
- variabledefaultDocConfig
-
defaultDocConfig: DocConfigBuilt-in defaults for standalone Doc editors.
- variabledefaultSheetConfig
-
defaultSheetConfig: SheetConfigBuilt-in defaults for ordinary Sheet cells and Sheet viewport services.
Editor configuration storage
- classConfigEngine
-
class ConfigEngine<TConfig>Registry and merger for one editor-owned configuration scope.
constructor ConfigEngine<TConfig>(defaults?: TConfig, initialConfig?: EditorDefaultConfigOverrides<TConfig>): ConfigEngine<TConfig>Creates the engine for one composition-root-owned default configuration object.
property readonly symbol: symbolstaticDI token for resolving the shared configuration engine.
method enforceCommandBoundary(isCommandExecuting: (): boolean): voidSeals retained configuration handles after editor initialization.
method getCombinedConfig<T>(): ConfigUnit<T> & TGet merged config of all plugins
ReturnsMerged config
method getDefaultConfig(): TConfigReturns this editor's defaults merged with its host/runtime overrides.
method getPluginConfig<T>(pluginKey: ConfigKey): ConfigUnit<T> & T | undefinedGet config of specified plugin
ReturnsPlugin configuration
pluginKeyStable key whose configuration should be returned.
method registerPluginConfig<T>(pluginKey: ConfigKey, pluginConfig: T): voidRegister plugin config
pluginKeyStable key that owns the configuration.
pluginConfigPlugin config
method updateDefaultConfigOverrides(overrides: EditorDefaultConfigOverrides<TConfig>): voidMerges host/runtime default overrides into future default-config reads.
- classConfigUnit
-
class ConfigUnit<T>Mutable configuration unit registered by a plugin or assembly module.
constructor ConfigUnit<T>(initialConfig?: T): ConfigUnit<T>Creates a config unit by copying the provided initial values.
No matching API entries.