package quill

  1. Overview
  2. Docs
Interactive notebook for OCaml data science

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha2.tbz
sha256=93abc49d075a1754442ccf495645bc4fdc83e4c66391ec8aca8fa15d2b4f44d2
sha512=5eb958c51f30ae46abded4c96f48d1825f79c7ce03f975f9a6237cdfed0d62c0b4a0774296694def391573d849d1f869919c49008acffca95946b818ad325f6f

doc/quill.editor/Quill_editor/State/index.html

Module Quill_editor.StateSource

Sourcemodule Int_set : Set.S with type elt = int
Sourcetype load_state =
  1. | Idle
  2. | Loading of {
    1. path : string;
    }
  3. | Load_failed of {
    1. path : string;
    2. error : string;
    }
Sourcetype caret = {
  1. block_id : int;
  2. inline_id : int option;
  3. offset : int;
}
Sourcetype selection =
  1. | No_selection
  2. | Caret of caret
  3. | Range of {
    1. anchor : caret;
    2. focus : caret;
    }
Sourcetype config = {
  1. history_limit : int;
  2. auto_normalize : bool;
}
Sourcetype snapshot = {
  1. document : Document.t;
  2. selection : selection;
}
Sourcetype history = {
  1. past : snapshot list;
  2. future : snapshot list;
  3. capacity : int;
}
Sourcetype t = {
  1. document : Document.t;
  2. selection : selection;
  3. load_state : load_state;
  4. running_blocks : Int_set.t;
  5. history : history;
  6. config : config;
}
Sourceval default_config : config
Sourceval init : t
Sourceval create : ?config:config -> ?document:Document.t -> ?selection:selection -> unit -> t
Sourceval with_document : ?config:config -> ?selection:selection -> Document.t -> t
Sourceval set_document : t -> Document.t -> t
Sourceval set_load_state : t -> load_state -> t
Sourceval set_selection : t -> selection -> t
Sourceval clear_selection : t -> t
Sourceval mark_block_running : t -> int -> t
Sourceval mark_block_idle : t -> int -> t
Sourceval is_block_running : t -> int -> bool
Sourceval snapshot : t -> snapshot
Sourceval restore : t -> config:config -> history:history -> t
Sourceval record_document_change : ?selection:selection -> t -> Document.t -> t
Sourceval has_undo : t -> bool
Sourceval has_redo : t -> bool
Sourceval undo : t -> t option
Sourceval redo : t -> t option
Sourceval selection_blocks : t -> int list