@univerjsdocs-uiindexclassesDocstatechangemanagerservice

@univerjs/docs-ui v0.5.0-beta.1Docs


Class: DocStateChangeManagerService

Extends

Constructors

new DocStateChangeManagerService()

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

Parameters

ParameterType
_undoRedoServiceIUndoRedoService
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService
_docStateEmitServiceDocStateEmitService
_renderManagerServiceIRenderManagerService

Returns

DocStateChangeManagerService

Overrides

RxDisposable.constructor

Defined in

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

Properties

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

Methods

dispose()

dispose(): void

Returns

void

Inherited from

RxDisposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:119


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getStateCache()

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

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

Defined in

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


setStateCache()

setStateCache(unitId, cache): void

Parameters

ParameterType
unitIdstring
cacheIStateCache

Returns

void

Defined in

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