Class YTextEvent

java.lang.Object
io.keikai.doc.collab.utils.YEvent
io.keikai.doc.collab.types.YTextEvent

public class YTextEvent extends YEvent
Event that describes the changes on a YText type.
  • Constructor Details

    • YTextEvent

      public YTextEvent(YText ytext, Transaction transaction, Set<String> subs)
      Constructor
      Parameters:
      ytext -
      transaction -
      subs - The keys that changed
  • Method Details

    • getChanges

      public Changes getChanges()
      Description copied from class: YEvent
      Get the changes made in this event.
      Overrides:
      getChanges in class YEvent
      Returns:
      The changes made.
    • getDeltaMap

      public List<Map<String,Object>> getDeltaMap()
    • getDeltaList

      public List<Delta> 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.