mmdflux 2.1.0

Render Mermaid diagrams as Unicode text, ASCII, SVG, and MMDS JSON.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Runtime payload contract returned by [`crate::registry::ParsedDiagram::into_payload`].
//!
//! Diagram modules stop at parsing, compilation, and config-sensitive payload
//! construction. Runtime owns the final dispatch from these payloads to
//! family-specific renderers.

/// Diagram payload returned by the registry contract.
#[derive(Debug, Clone)]
pub enum Diagram {
    /// Flowchart payload (graph-family).
    Flowchart(crate::graph::Graph),
    /// Class diagram payload (graph-family).
    Class(crate::graph::Graph),
    /// Sequence diagram payload.
    Sequence(crate::timeline::Sequence),
    /// State diagram payload (graph-family).
    State(crate::graph::Graph),
}