View Source OT.Text.Transformation (OT v0.2.0)
The transformation of two concurrent operations such that they satisfy the TP1 property of operational transformation.
Link to this section Summary
Functions
Transform an operation against another operation.
Link to this section Functions
Transform an operation against another operation.
Given an operation A that occurred at the same time as operation B against the same text state, transform the components of operation A such that the state of the text after applying operation A and then operation B is the same as after applying operation B and then the transformation of operation A against operation B:
S ○ Oa ○ transform(Ob, Oa) = S ○ Ob ○ transform(Oa, Ob)
This function also takes a third side
argument that indicates which
operation came later. This is important when deciding whether it is acceptable
to break up insert components from one operation or the other.