bobzhang/beautiful_mermaid/model does not have a README file
pub(all) struct AsciiRenderOptions {
use_ascii : Bool
padding_x : Int
padding_y : Int
box_border_padding : Int
}pub(all) struct DiagramColors {
bg : String
fg : String
line : String?
accent : String?
muted : String?
surface : String?
border : String?
}pub(all) enum DiagramKind {
Flowchart
State
Sequence
Class
Er
}pub(all) enum LayoutEngine {
Legacy
DagreParity
Elk
ElkLayered
}pub(all) struct MermaidEdge {
source : String
target : String
label : String?
style : EdgeStyle
has_arrow_start : Bool
has_arrow_end : Bool
relation_operator : String?
}pub(all) struct MermaidGraph {
diagram_kind : DiagramKind
direction : Direction
nodes : Map[String, MermaidNode]
node_definition_order : Array[String]
edges : Array[MermaidEdge]
subgraphs : Array[MermaidSubgraph]
class_defs : Map[String, Map[String, String]]
class_assignments : Map[String, String]
node_styles : Map[String, Map[String, String]]
sequence_actor_order : Array[String]
sequence_actor_kinds : Map[String, SequenceParticipantKind]
sequence_blocks : Array[SequenceBlock]
sequence_notes : Array[SequenceNote]
sequence_activation_commands : Array[SequenceActivationCommand]
}pub(all) struct MermaidSubgraph {
id : String
label : String
node_ids : Array[String]
children : Array[MermaidSubgraph]
direction : Direction?
}pub(all) enum NodeShape {
Rectangle
Rounded
Diamond
Stadium
Circle
Subroutine
DoubleCircle
Hexagon
Cylinder
Asymmetric
Trapezoid
TrapezoidAlt
StateStart
StateEnd
ClassEntity
ErEntity
SequenceParticipant
} derive(Eq)pub(all) struct PositionedGraph {
width : Int
height : Int
nodes : Array[PositionedNode]
edges : Array[PositionedEdge]
groups : Array[PositionedGroup]
sequence_lifelines : Array[PositionedSequenceLifeline]
sequence_activations : Array[PositionedSequenceActivation]
sequence_blocks : Array[PositionedSequenceBlock]
sequence_notes : Array[PositionedSequenceNote]
}pub(all) struct PositionedGroup {
id : String
label : String
x : Int
y : Int
width : Int
height : Int
children : Array[PositionedGroup]
}pub(all) struct PositionedSequenceActivation {
actor_id : String
x : Int
top_y : Int
bottom_y : Int
width : Int
}pub(all) struct PositionedSequenceBlock {
block_type : SequenceBlockType
label : String
x : Int
y : Int
width : Int
height : Int
dividers : Array[PositionedSequenceBlockDivider]
}pub(all) struct PositionedSequenceBlockDivider {
y : Int
label : String
}pub(all) struct PositionedSequenceLifeline {
actor_id : String
x : Int
top_y : Int
bottom_y : Int
}pub(all) struct PositionedSequenceNote {
text : String
x : Int
y : Int
width : Int
height : Int
}pub(all) struct RenderOptions {
bg : String?
fg : String?
line : String?
accent : String?
muted : String?
surface : String?
border : String?
font : String?
padding : Int?
node_spacing : Int?
layer_spacing : Int?
transparent : Bool?
layout_engine : LayoutEngine?
}pub(all) struct SequenceActivationCommand {
actor_id : String
activate : Bool
after_index : Int
}pub(all) struct SequenceBlock {
block_type : SequenceBlockType
label : String
start_index : Int
end_index : Int
dividers : Array[SequenceBlockDivider]
}pub(all) struct SequenceBlockDivider {
index : Int
label : String
}pub(all) struct SequenceNote {
actor_ids : Array[String]
text : String
position : SequenceNotePosition
after_index : Int
}pub(all) enum SequenceNotePosition {
Left
Right
Over
}pub(all) enum SequenceParticipantKind {
Participant
Actor
}Install
Download zipMoonBit port of beautiful-mermaid: render Mermaid diagrams to SVG and ASCII/Unicode text.
Dependencies