Mermaid diagram renderer for MoonBit (ASCII and SVG output)
pub enum ActorKind {
Participant
Actor
}type Canvastype Celltype Defaultspub struct DiagramColors {
bg : String
fg : String
line : String
accent : String
muted : String
surface : String
border : String
}pub enum DiagramKind {
Flowchart
State
Class
Er
}pub enum Direction {
TD
LR
BT
RL
}pub struct GraphEdge {
from : String
to : String
label : String?
}type LayoutBoxpub enum NodeShape {
Rect
Rounded
Circle
StateStart
StateEnd
}pub(all) struct Options {
use_ascii : Bool
padding_x : Int
padding_y : Int
box_border_padding : Int
max_width : Int
}type Pointtype PositionedActortype PositionedEdgetype PositionedGraphtype PositionedMessageimpl Eq for PositionedMessageimpl Show for PositionedMessagetype PositionedNodetype PositionedSequenceimpl Eq for PositionedSequenceimpl Show for PositionedSequencepub struct SequenceMessage {
from : String
to : String
text : String
dashed : Bool
}pub struct SvgOptions {
bg : String?
fg : String?
line : String?
accent : String?
muted : String?
surface : String?
border : String?
font : String?
transparent : Bool?
}Install
Download zipMermaid diagram renderer for MoonBit (ASCII and SVG output)