@univerjs/core v0.5.0-beta.1 • Docs
Interface: IUndoRedoService
Properties
Property | Type | Defined in |
---|---|---|
undoRedoStatus$ | Observable <IUndoRedoStatus > | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:40 |
Methods
__tempBatchingUndoRedo()
__tempBatchingUndoRedo(unitId): IDisposable
Batch undo redo elements into a single IUndoRedoItem
util the returned IDisposable
is called.
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
a disposable to cancel batching undo redo elements
Deprecated
This is a temporary solution. We are going to refactor the undo redo service shortly.
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:60
clearUndoRedo()
clearUndoRedo(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:52
pitchTopRedoElement()
pitchTopRedoElement(): Nullable<IUndoRedoItem>
Pitch the top undo element of the currently focused Univer document instance.
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:47
pitchTopUndoElement()
pitchTopUndoElement(): Nullable<IUndoRedoItem>
Pitch the top redo element of the currently focused Univer document instance.
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:45
popRedoToUndo()
popRedoToUndo(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:50
popUndoToRedo()
popUndoToRedo(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:49
pushUndoRedo()
pushUndoRedo(item): void
Parameters
Parameter | Type |
---|---|
item | IUndoRedoItem |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/undoredo/undoredo.service.ts:42