flowchart

方向

  • TB - Top to bottom
  • TD - Top-down/ same as top to bottom
  • BT - Bottom to top
  • RL - Right to left
  • LR - Left to right

节点形状

  1. 正常矩形
flowchart TB
id1[this is a rectangle node]
  1. 圆角矩形
graph TB
id1(this is a node with round edges)
  1. 跑道形
graph TB
id1([this is a stadium-shaped node])
  1. 子例程
flowchart TB
id[[this is a node in a subroutine shape]]
  1. 圆柱形
flowchart TB
id1[(database)]
  1. 圆形
flowchart TB
id1((this is a node in the form of a circle))
  1. 不对称形
flowchart TB
id1>this is a node in an asymmetric shape]
  1. 菱形
flowchart TB
id1{this is a rhombus node}

常用的大概就这么多,其他的用到再补充

流程