@univerjsdocs-uiindexclassesDocstatechangemanagerservice

@univerjs/docs-ui v0.5.4


Class: DocStateChangeManagerService

Defined in: submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:36

Extends

Constructors

new DocStateChangeManagerService()

new DocStateChangeManagerService(
   _undoRedoService, 
   _commandService, 
   _univerInstanceService, 
   _docStateEmitService, 
   _renderManagerService): DocStateChangeManagerService

Defined in: submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:46

Parameters

ParameterType
_undoRedoServiceIUndoRedoService
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService
_docStateEmitServiceDocStateEmitService
_renderManagerServiceIRenderManagerService

Returns

DocStateChangeManagerService

Overrides

RxDisposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:120
docStateChange$readonlyObservable<Nullable<IDocStateChangeParams>>undefined-submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:38

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:122

Returns

void

Inherited from

RxDisposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

RxDisposable.ensureNotDisposed


getStateCache()

getStateCache(unitId): {
  collaboration: IDocStateChangeParams[];
  history: IDocStateChangeParams[];
}

Defined in: submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:59

Parameters

ParameterType
unitIdstring

Returns

{
  collaboration: IDocStateChangeParams[];
  history: IDocStateChangeParams[];
}
NameTypeDefined in
collaborationIDocStateChangeParams[]submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:62
historyIDocStateChangeParams[]submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:61

setStateCache()

setStateCache(unitId, cache): void

Defined in: submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:66

Parameters

ParameterType
unitIdstring
cacheIStateCache

Returns

void