API Reference
@univerjs
@univerjs/docs-ui
classes
Docstatechangemanagerservice

@univerjs/docs-ui v0.4.2Docs


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

packages/docs-ui/src/services/doc-state-change-manager.service.ts:46 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$packages/core/src/shared/lifecycle.ts:117 (opens in a new tab)
docStateChange$readonlyObservable<Nullable<IDocStateChangeParams>>undefined-packages/docs-ui/src/services/doc-state-change-manager.service.ts:38 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

RxDisposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:119 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getStateCache()

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

Parameters

ParameterType
unitIdstring

Returns

{
  collaboration: IDocStateChangeParams[];
  history: IDocStateChangeParams[];
}
NameTypeDefined in
collaborationIDocStateChangeParams[]packages/docs-ui/src/services/doc-state-change-manager.service.ts:62 (opens in a new tab)
historyIDocStateChangeParams[]packages/docs-ui/src/services/doc-state-change-manager.service.ts:61 (opens in a new tab)

Defined in

packages/docs-ui/src/services/doc-state-change-manager.service.ts:59 (opens in a new tab)


setStateCache()

setStateCache(unitId, cache): void

Parameters

ParameterType
unitIdstring
cacheIStateCache

Returns

void

Defined in

packages/docs-ui/src/services/doc-state-change-manager.service.ts:66 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.