diagrams icon indicating copy to clipboard operation
diagrams copied to clipboard

Connecting two cluster

Open ncamit opened this issue 2 years ago • 5 comments

I have a two cluster Cluster 1: A,B,C and Cluster 2: D,E,F . Now I want to connect in this order : A to D , B to F , C to E When I connect Cluster 1 to Cluster 2, Cluster 2 nodes/elements order changes. How to fix this issue

ncamit avatar Apr 01 '22 09:04 ncamit

@ncamit
See if this helps https://github.com/mingrammer/diagrams/issues/17#issuecomment-723361274

I would also help if you posted your code.

clayms avatar Apr 05 '22 20:04 clayms

@ncamit Is the following similar to the problem you are having? https://github.com/mingrammer/diagrams/issues/552#issue-932956917

clayms avatar Apr 05 '22 20:04 clayms

@clayms

Just read your explanations on the other thread. Thanks for writing that! I saw that there were two outstanding PRs (#438, #439) for rendering edges between clusters. But your solution seems the most elegant.

I was wondering though, how can you include an icon with this solution? That seems to be what stood out with the other two solutions.

nvictor avatar Apr 06 '22 15:04 nvictor

You can't currently. Not until the other PRs you referenced get pulled in.

You can do this, https://github.com/mingrammer/diagrams/issues/279#issuecomment-722004811 , but with the neato layout engine, you can't do this: https://github.com/mingrammer/diagrams/issues/17#issuecomment-723361274, which only works with the dot layout engine.

clayms avatar Apr 06 '22 16:04 clayms

Thank you for writing 😊 That's unfortunate... I read both threads and they seem to have deadlocked. Would be nice to both features with the same layout engine and not much change.

nvictor avatar Apr 06 '22 17:04 nvictor