Package io.keikai.doc.collab.types
Class YTextEvent
java.lang.Object
io.keikai.doc.collab.utils.YEvent
io.keikai.doc.collab.types.YTextEvent
Event that describes the changes on a YText type.
-
Field Summary
Fields inherited from class io.keikai.doc.collab.utils.YEvent
_currentTarget, _target, _transaction, ERROR_COMPUTE_CHANGES -
Constructor Summary
ConstructorsConstructorDescriptionYTextEvent(YText ytext, Transaction transaction, Set<String> subs) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the changes made in this event.Compute the changes in the delta format.Methods inherited from class io.keikai.doc.collab.utils.YEvent
adds, deletes, getKeys, getPath, getTarget, getTransaction, setCurrentTarget, setPath
-
Constructor Details
-
YTextEvent
Constructor- Parameters:
ytext-transaction-subs- The keys that changed
-
-
Method Details
-
getChanges
Description copied from class:YEventGet the changes made in this event.- Overrides:
getChangesin classYEvent- Returns:
- The changes made.
-
getDeltaMap
-
getDeltaList
Compute the changes in the delta format. A <a href="https://quilljs.com/docs/delta/|Quill">Delta</a> that represents the changes on the document.
-