package quill

  1. Overview
  2. Docs

Module Quill_editor.Render_treeSource

Sourcetype block_status = [
  1. | `Idle
  2. | `Running
]
Sourcetype selection_status = [
  1. | `None
  2. | `Caret
  3. | `Range_single
  4. | `Range_start
  5. | `Range_end
  6. | `Range_middle
]
Sourcetype block = {
  1. id : int;
  2. focused : bool;
  3. status : block_status;
  4. selection : selection_status;
  5. content : Document.block_content;
}
Sourcetype document = block list
Sourcetype diff =
  1. | Added of block
  2. | Removed of block
  3. | Updated of {
    1. before : block;
    2. after : block;
    }
Sourceval of_state : State.t -> document
Sourceval diff : document -> document -> diff list