美人鱼 - 如何在降价中连接子图?
Mermaid - How to connect subgraphs in markdown?
我在降价中使用美人鱼。我不知道如何连接子图。
鉴于下面的程序,我需要能够用箭头连接一和二。
- ```mermaid
graph LR;
subgraph one
main---MainMenu
MainMenu((MainMenu))---Game
Game---Level
Game---Player
end
subgraph two
Screen
end
one-->two
```
据我所知,只能连接节点,所以你可以这样做:
main-->Screen
测试版现在允许您连接子图:
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
https://mermaid-js.github.io/mermaid/#/flowchart?id=beta-flowcharts
我在降价中使用美人鱼。我不知道如何连接子图。
鉴于下面的程序,我需要能够用箭头连接一和二。
- ```mermaid
graph LR;
subgraph one
main---MainMenu
MainMenu((MainMenu))---Game
Game---Level
Game---Player
end
subgraph two
Screen
end
one-->two
```
据我所知,只能连接节点,所以你可以这样做:
main-->Screen
测试版现在允许您连接子图:
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
https://mermaid-js.github.io/mermaid/#/flowchart?id=beta-flowcharts