Expand description
mathtex-editor-core is the headless guest core for model, command, host, and editor types.
Re-exports§
pub use command::Command;pub use command::CommandResult;pub use doc::DocFragment;pub use doc::Document;pub use doc::NodeDoc;pub use editor::Editor;pub use host::Host;pub use host::RenderOutput;pub use menu::MenuItem;pub use menu::MenuView;pub use model::Cursor;pub use model::Kind;pub use model::Node;pub use model::NodeId;pub use model::Seq;pub use model::SeqId;pub use model::Selection;pub use model::Tree;
Modules§
- command
- Semantic commands mapped from host input before
Editor::exec. - doc
- The document and clipboard format is an id-free nested tree rebuilt into slotmap storage on load.
- editor
- Editor owns the
Tree, cursor, selection, host callbacks, render output, and undo snapshots. - export
- Exports the model to LaTeX with
SpanMapbyte ranges and phantom boxes for empty slots. - host
- Host API for the guest and host boundary.
- matcher
- Matcher geometry and render support for mapping model spans to mathtex IR boxes in SVG point units.
- menu
- Host facing state for the Backspace dropdown menu.
- model
- The editable data model uses a
SeqandNodetree backed by stable slotmap ids. - nav
- Pure model navigation, rendered geometry and hit testing live in
crate::matcher. - ops
- Edit operations preserve slotmap integrity and keep semantic edits built from primitive tree changes.
- selection
- Selection extension with common-ancestor promotion across slot boundaries.