@univerjs/docs-ui v0.4.2 • 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
packages/docs-ui/src/services/doc-state-change-manager.service.ts:46 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | packages/core/src/shared/lifecycle.ts:117 (opens in a new tab) |
docStateChange$ | readonly | Observable <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
Defined in
packages/core/src/shared/lifecycle.ts:119 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
unitId | string |
Returns
{
collaboration: IDocStateChangeParams[];
history: IDocStateChangeParams[];
}
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
Parameter | Type |
---|---|
unitId | string |
cache | IStateCache |
Returns
void
Defined in
packages/docs-ui/src/services/doc-state-change-manager.service.ts:66 (opens in a new tab)