

Mermaid




Mermaid的专业绘图


流程图
flowchart LRA[Hard] -->|Text| B(Round)B --> C{Decision}C -->|One| D[Result 1]C -->|Two| E[Result 2]· C{Decision} 表示一个内容为“Decision”菱形,名称为C。
· 定义好几个元素后,就可以通过箭头连接各个元素了。


时序图
sequenceDiagramAlice->>John: Hello John, how are you?loop HealthcheckJohn->>John: Fight against hypochondriaendNote right of John: Rational thoughts!John-->>Alice: Great!John->>Bob: How about you?Bob-->>John: Jolly good!


甘特图
ganttsection Section Completed :done, des1, 2014-01-06,2014-01-08 Active :active, des2, 2014-01-07, 3d Parallel 1 : des3, after des1, 1d Parallel 2 : des4, after des1, 1d Parallel 3 : des5, after des3, 1d Parallel 4 : des6, after des4, 1d

类图
classDiagramClass01 <|-- AveryLongClass : Cool<<Interface>> Class01Class09 --> C2 : Where am I?Class09 --* C3Class09 --|> Class07Class07 : equals()Class07 : Object[] elementDataClass01 : size()Class01 : int chimpClass01 : int gorillaclass Class10 {<<service>>int idsize()}


状态图
stateDiagram-v2[*] --> StillStill --> [*]Still --> MovingMoving --> StillMoving --> CrashCrash --> [*]

饼图
pie'Dogs' : 386'Cats' : 85'Rats' : 15


用户体验旅程图
journey title My working day section Go to work Make tea: 5: Me Go upstairs: 3: Me Do work: 1: Me, Cat section Go home Go downstairs: 5: Me Sit down: 3: Me

C4图
C4Contexttitle System Context diagram for Internet Banking SystemEnterprise_Boundary(b0, 'BankBoundary0') {Person(customerA, 'Banking Customer A', 'A customer of the bank, with personal bank accounts.')Person(customerB, 'Banking Customer B')Person_Ext(customerC, 'Banking Customer C', 'desc')Person(customerD, 'Banking Customer D', 'A customer of the bank, <br/> with personal bank accounts.')System(SystemAA, 'Internet Banking System', 'Allows customers to view information about their bank accounts, and make payments.')Enterprise_Boundary(b1, 'BankBoundary') {SystemDb_Ext(SystemE, 'Mainframe Banking System', 'Stores all of the core banking information about customers, accounts, transactions, etc.')System_Boundary(b2, 'BankBoundary2') {System(SystemA, 'Banking System A')System(SystemB, 'Banking System B', 'A system of the bank, with personal bank accounts. next line.')}System_Ext(SystemC, 'E-mail system', 'The internal Microsoft Exchange e-mail system.')SystemDb(SystemD, 'Banking System D Database', 'A system of the bank, with personal bank accounts.')Boundary(b3, 'BankBoundary3', 'boundary') {SystemQueue(SystemF, 'Banking System F Queue', 'A system of the bank.')SystemQueue_Ext(SystemG, 'Banking System G Queue', 'A system of the bank, with personal bank accounts.')}}}BiRel(customerA, SystemAA, 'Uses')BiRel(SystemAA, SystemE, 'Uses')Rel(SystemAA, SystemC, 'Sends e-mails', 'SMTP')Rel(SystemC, customerA, 'Sends e-mails to')UpdateElementStyle(customerA, $fontColor='red', $bgColor='grey', $borderColor='red')UpdateRelStyle(customerA, SystemAA, $textColor='blue', $lineColor='blue', $offsetX='5')UpdateRelStyle(SystemAA, SystemE, $textColor='blue', $lineColor='blue', $offsetY='-10')UpdateRelStyle(SystemAA, SystemC, $textColor='blue', $lineColor='blue', $offsetY='-40', $offsetX='-50')UpdateRelStyle(SystemC, customerA, $textColor='red', $lineColor='red', $offsetX='-50', $offsetY='20')UpdateLayoutConfig($c4ShapeInRow='3', $c4BoundaryInRow='1')


写在最后
