The location of this node in the TSeq tree
The local process ID
Applies remote operations to this local clone of the TSeq
the operations to apply
a callback to recover reversion information if required
the actually-affected character nodes (ignoring empty -> empty)
Changes the text content of this TSeq by removing or replacing existing characters and/or adding new characters in place.
zero-based index at which to start changing the text
the number of characters in the text to remove from index
the characters to add to the text, beginning from index
Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.10.0-edge.9 Source code licensed MIT. Privacy policy
A CRDT for plain text. Characters are positioned into an n-ary tree, in which each node is a sparse array, extensible in either positive or negative index direction, 'belonging' to a process identity. The tree is read in depth-first order. The use of owned-arrays reflects an optimisation for the typical text document pattern of editing – a user extends some selected text with new text.
A TSeq requires the framework guarantees of a 'shared data type' in m-ld: operations must be applied only once, and in causal order.