当前位置:网站首页>Markdown drawing Mermaid practical tutorial
Markdown drawing Mermaid practical tutorial
2022-06-28 19:23:00 【No regrets!】
Mermaid Is a tool for drawing flow charts 、 State diagram 、 Sequence diagram 、 Gantt chart Library , Use JS Render locally , Widely integrated into many Markdown Editor .
Mermaid As a use JS Rendered Library , Generated is not a “ picture ”, It's a piece of HTML Code .
Click to enter the official website
Click to enter Github Project address
1. mermaid Definition

2. flow chart
The syntax is as follows :
graph LR; # among LR Direction A --> B # Different arrows indicate
a. Direction and arrow meaning
| Diction graph x; | meaning | arrow | meaning |
|---|---|---|---|
TB | From top to bottom | > | Add tail arrow |
BT | From bottom to top | - | Do not add tail arrows |
RL | From left to right | -- | Single line |
LR | From right to left | --text-- | Single line plus text |
== | Thick line | ||
==text== | Bold lines with text | ||
-.- | Dotted line | ||
-.text.- | Dotted line with text |
b. Node meaning
Default square
id1[ square ]
id2( Round edged rectangle )
id3([ Stadium shape ])
id4[[ Subroutine ]]
id5[( cylindrical )]
id6(( circular ))
id1{
The diamond }
id2{
{
hexagon }}
id3[/ parallelogram /]
id4[\ Inverse parallelogram \]
id5[/ trapezoid \]
id6[\ Reverse trapezoid /]
c. Example
graph LR;
A>"Ubuntu<br>(Linux)"] -.soft.-> C{
TV}
B["MAC"] ==> D((ARM64))
D--> C
A --> B
graph LR
a---b
b-- Text 1!---c
c---| Text 2|d
d===e
e== Text 3===f
f-.-g
g-. Text .-h
- Extend the connection :
Add corresponding characters , As shown in the figure below B To E, Added a... To the connection-. Characters can be added more than once .
graph LR
A[Start] --> B{
Is it?};
B -->|Yes| C[OK];
C --> D[Rethink];
D --> B;
B --->|No| E[End];
- Multiple chains
graph LR
a --> b & c--> d
A & B--> C & D
X --> M
X --> N
Y --> M
Y --> N
- notes
%% This is a comment , Not visible in rendered view - Subgraphs
%% This is a comment , Not visible in rendered view
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
边栏推荐
猜你喜欢

首部元宇宙概念小说《元宇宙2086》获得2022年上袭元宇宙奖

电脑如何检查驱动程序是否正常

Hands on Teaching of servlet use (1)

Idea merge other branches into dev branch
![[C #] explain the difference between value type and reference type](/img/23/5bcbfc5f9cc6e8f4d647acf9219b08.png)
[C #] explain the difference between value type and reference type

Cvpr2022 | Zhejiang University and ant group put forward a hierarchical residual multi granularity classification network based on label relation tree to model hierarchical knowledge among multi granu

视频压缩处理之ffmpeg用法

Variational graph auto-encoders (VGAE)

Double contextual relationship network for polyp segmentation

Industry analysis - quick intercom, building intercom
随机推荐
Rigid error: could not extract PIDs from PS output PIDS: [], Procs: [“bad pid
SQL calculates daily new users and retention rate indicators
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
How does the computer check whether the driver is normal
道路千万条,为什么这家创新存储公司会选这条?
PCL calculation of center and radius of circumscribed circle of plane triangle
变分自编码器 (Variational Autoencoders, VAEs)
[C #] explain the difference between value type and reference type
NanoPC-T4(RK3399) game1 oled(I2C)显示时间天气温度
Facts / assertions / assertions / conclusions / assertions / judgments
如何通过W3school学习JS/如何使用W3school的JS参考手册
I just bought the ADB MySQL service. Every time I do an operation, such as creating a table, this problem will pop up. What is the problem?
How many objects are created after new string ("hello")?
Installation and configuration of CGAL in PCL environment 5.4.1
数据库学习笔记(SQL04)
Markdown绘图mermaid实用教程
微博评论的高性能高可用计算架构方案
微信小程序_8,视图与逻辑
C#连接数据库完成增删改查操作
腾讯汤道生:面向数实融合新世界,开发者是最重要的“建筑师”