The last history operation.
The version of the last operation in the history.
The history version is incremented automatically when a new operation is added to the history. Setting the version manually should be done only in rare circumstances when a gap is planned between history versions. When doing so, a gap will be created and the history will accept adding an operation with base version equal to the new history version.
Adds an operation to the history and increments the history version.
The operation's base version should be equal to the history version. Otherwise an error is thrown.
Returns operation from the history that bases on given baseVersion.
Base version of the operation to get.
Operation with given base version or undefined if there is no such operation in history.
Returns operations from the given range of operation base versions that were added to the history.
Note that there may be gaps in operations base versions.
OptionalfromBaseVersion: numberBase version from which operations should be returned (inclusive).
OptionaltoBaseVersion: numberBase version up to which operations should be returned (exclusive).
History operations for the given range, in chronological order.
Checks whether given operation is undoing any other operation.
Operation to check.
true if given operation is undoing any other operation, false otherwise.
Checks whether given operation has been undone by any other operation.
Operation to check.
true if given operation has been undone any other operation, false otherwise.
Resets the history of operations.
Marks in history that one operation is an operation that is undoing the other operation. By marking operation this way, history is keeping more context information about operations, which helps in operational transformation.
Historykeeps the track of all the operations applied to the module:engine/model/document~ModelDocument document.