To provide specific OT behavior and better collisions solving, methods to change attributes
RootAttributeDelta class which inherits from the
Delta class and may
overwrite some methods.
baseVersion : Number | null
Returns delta base version which is equal to the base version of the first operation in delta. If there are no operations in delta, returns
Array of operations which compose delta.
type : String
_reverseDeltaClass : function
A class that will be used when creating reversed delta.
className : String
readonly inherited static
Creates a delta instance.
addOperation( operation )
Add operation to the delta.
operation : Operation
Creates and returns a delta that has the same parameters as this delta.
Clone of this delta.
Creates and returns a reverse delta. Reverse delta when executed right after the original delta will bring back tree model state to the point before the original delta execution. In other words, it reverses changes done by the original delta.
toJSON() → Object
Custom toJSON method to make deltas serializable.
Clone of this delta with added class name.