You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mermaid.js should provide a way to visualize or adjust the order of lines in the diagram.
Example
Current Mermaid code:
graph TD
subgraph test
1-->2
7-->1
3-->7
6-->7
2-->3
4-->5
3-->4
end
This results in overlapping lines that are hard to adjust.However, when the number of lines in the diagram is relatively large, there will be overlapping, which affects the view, and it is difficult to adjust the order of the lines.
I suggest adding an option or method to adjust the line rendering order more easily.
Alternative solution using subgraph:
graph TD
<1>7-->1
<2>1-->2
<3>2-->3
3-->4
3-->7
4-->5
6-->7
end
Screenshots
For example, with the following Mermaid code, it's hard to easily move the leftmost line to the right, as shown in test1 below:
graph TD
subgraph test
1-->2
7-->1
3-->7
6-->7
2-->3
4-->5
3-->4
end
Eventually, using a subgraph approach is the only workaround that somewhat matches the expectation, as shown in test2 below:
graph TD
subgraph test
subgraph left
7
1
end
subgraph right
2
3
4
5
6
end
7-->1
1-->2
2-->3
3-->4
3-->7
4-->5
6-->7
end
The text was updated successfully, but these errors were encountered:
Proposal
Mermaid.js should provide a way to visualize or adjust the order of lines in the diagram.
Example
Current Mermaid code:
This results in overlapping lines that are hard to adjust.However, when the number of lines in the diagram is relatively large, there will be overlapping, which affects the view, and it is difficult to adjust the order of the lines.
I suggest adding an option or method to adjust the line rendering order more easily.
Alternative solution using subgraph:
Screenshots
For example, with the following Mermaid code, it's hard to easily move the leftmost line to the right, as shown in test1 below:
Eventually, using a subgraph approach is the only workaround that somewhat matches the expectation, as shown in test2 below:
The text was updated successfully, but these errors were encountered: