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
Parameter | Type |
---|---|
_undoRedoService | IUndoRedoService |
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
_docStateEmitService | DocStateEmitService |
_renderManagerService | IRenderManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:120 |
docStateChange$ | readonly | Observable <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
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
unitId | string |
Returns
{
collaboration: IDocStateChangeParams[];
history: IDocStateChangeParams[];
}
Name | Type | Defined in |
---|---|---|
collaboration | IDocStateChangeParams [] | submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:62 |
history | IDocStateChangeParams [] | 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
Parameter | Type |
---|---|
unitId | string |
cache | IStateCache |
Returns
void