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
Detect element definition (without connections) and use it's location as priority to use as parent subgraph.
Currently mermaid output element in subgraph where it used first time. But sometime it has to be in another.
Example
flowchart LR;
subgraph current version - b in 1.1 but we need in 1.2
direction LR;
subgraph 1.1
a-->b
end
subgraph 1.2
b-->c
end
end
subgraph manual fix - to put bb in 2.2 we have to move 2.2 before 2.1
direction LR;
subgraph 2.2
bb-->cc
end
subgraph 2.1
aa-->bb
end
end
subgraph suggest defintions - bbb has to be in 3.2
direction LR;
subgraph 3.1
aaa-->bbb
end
subgraph 3.2
%% define bbb here to output it in current subgraph
bbb
bbb-->ccc
end
end
Screenshots
The text was updated successfully, but these errors were encountered:
Proposal
Detect element definition (without connections) and use it's location as priority to use as parent subgraph.
Currently mermaid output element in subgraph where it used first time. But sometime it has to be in another.
Example
Screenshots
The text was updated successfully, but these errors were encountered: