https://blog.csdn.net/sandalphon4869/article/details/89341443 https://blog.csdn.net/swinfans/article/details/89393853 https://zhuanlan.zhihu.com/p/614018391 https://blog.csdn.net/qq_42491125/article/details/114005171 https://www.cnblogs.com/leween/p/12945751.html#_label4
方向
TB = TD - top bottom -从上到下 BT - bottom top - 从下到上 LR - left right - 自左向右 RL - right left - 自右向左
mermaid">
mermaid-svg-eWTkLn1WCNRbkGZb" width="116.91024017333984" xmlns="http://www.w3.org/2000/svg" height="348.202392578125" viewbox="0 0 116.91024017333984 348.202392578125" class="mermaid -svg">
TB
TD
top bottom
从上到下
mermaid">
mermaid-svg-aFraZaIJI7Ddih39" width="120.63636779785156" xmlns="http://www.w3.org/2000/svg" height="252.65179443359375" viewbox="0 0 120.63636779785156 252.65179443359375" class="mermaid -svg">
BT
bottom TOP
从下到上
mermaid">
mermaid-svg-muuePcsFW8vQlwZm" width="321.3190612792969" xmlns="http://www.w3.org/2000/svg" height="61.55059814453125" viewbox="0 0 321.3190612792969 61.55059814453125" class="mermaid -svg">
LR
left right
自左向右
mermaid">
mermaid-svg-pKp5sccV78R2IXL4" width="321.31903076171875" xmlns="http://www.w3.org/2000/svg" height="61.55059814453125" viewbox="0 0 321.31903076171875 61.55059814453125" class="mermaid -svg">
RL
right left
自右向左
节点样式
https://blog.csdn.net/sandalphon4869/article/details/89341443
形状
矩形 [ 内容]
圆角矩形 ( 内容)
圆形 ( ( 内容) )
菱形 {内容}
旗帜 > 内容]
mermaid">
mermaid-svg-zyuZXW7DPyXmiJ2w" width="980.93603515625" xmlns="http://www.w3.org/2000/svg" height="416.762939453125" viewbox="0 0 980.93603515625 416.762939453125" class="mermaid -svg">
[矩形]
长方形
((圆))
{菱形}
>旗帜]
(圆角)
[[subroute process]]
[(圆柱形)]
([椭圆])
{{六边形}}
[/This is the text in the box/]
[\This is the text in the box\]
[/Christmas\]
[\Go shopping/]
箭头
mermaid">
mermaid-svg-bbMhGDBQC11AB4i9" width="614.6265869140625" xmlns="http://www.w3.org/2000/svg" height="62.08290481567383" viewbox="0 0 614.6265869140625 62.08290481567383" class="mermaid -svg">
-->
---
-.->
-.-
==>
===
end
子图
mermaid">
mermaid-svg-Si2PSPra27FaA1lF" width="387.1011962890625" xmlns="http://www.w3.org/2000/svg" height="207.1011962890625" viewbox="0.000003814697265625 0 387.1011962890625 207.1011962890625" class="mermaid -svg">
mermaid-svg-Si2PSPra27FaA1lFText">
three
mermaid-svg-Si2PSPra27FaA1lFText">
two
mermaid-svg-Si2PSPra27FaA1lFText">
one
c2
c1
b2
b1
a2
a1
流程图
http://flowchart.js.org/
mermaid sequence-diagram flow-chart">
Created with Raphaël 2.3.0
开始
我的操作
确认?
结束
yes
no
类图
mermaid">
mermaid-svg-cHD53ul16l9X7tC3" width="536.3333740234375" xmlns="http://www.w3.org/2000/svg" height="397.9554138183594" viewbox="0 0 536.3333740234375 397.9554138183594" class="mermaid -svg">
Cool
Where am i?
«interface»
Class01
int chimp
int gorilla
size()
AveryLongClass
Class09
C2
C3
Class07
Object[] elementData
equals()
Class10
>>service>>
int id
size()
uml图
mermaid">
mermaid-svg-LK0Zkr3wiLx3oaXm" width="100%" xmlns="http://www.w3.org/2000/svg" height="536" style="max-width: 886px;" viewbox="-50 -10 886 536" class="mermaid -svg">
张三
李四
王五
你好!李四, 最近怎么样?
你最近怎么样,王五?
我很好,谢谢!
我很好,谢谢!
李四想了很长时间, 文字太长了
不适合放在一行.
打量着王五...
很好... 王五, 你怎么样?
张三
李四
王五
甘特图
mermaid">
mermaid-svg-0xVmzwXG91UpqE8A" width="100%" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1200 340" height="340" style="max-width: 1200px;" class="mermaid -svg">
2014-01-07
2014-01-09
2014-01-11
2014-01-13
2014-01-15
2014-01-17
2014-01-19
2014-01-21
Completed task
Completed task in the critical line
Implement parser and jison
Active task
Create tests for parser
Future task
Future task in critical line
Future task2
Create tests for renderer
Add to mermaid
A section
Critical tasks
Adding GANTT diagram functionality to mermaid