@univerjs/docs-ui v0.5.0-beta.1 • Docs
Class: DocStateChangeManagerService
Extends
Constructors
new DocStateChangeManagerService()
new DocStateChangeManagerService(
_undoRedoService,
_commandService,
_univerInstanceService,
_docStateEmitService,
_renderManagerService): DocStateChangeManagerService
Parameters
Parameter | Type |
---|---|
_undoRedoService | IUndoRedoService |
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
_docStateEmitService | DocStateEmitService |
_renderManagerService | IRenderManagerService |
Returns
Overrides
Defined in
submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:46
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:117 |
docStateChange$ | readonly | Observable <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
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:119
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
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 |
Defined in
submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:59
setStateCache()
setStateCache(unitId, cache): void
Parameters
Parameter | Type |
---|---|
unitId | string |
cache | IStateCache |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/doc-state-change-manager.service.ts:66