Is it possible to create intersecting/overlapping containers at Deployment Diagram?

0 votes
asked Aug 21, 2018 in Question / help by mopk (120 points)

I would like to show different security groups of a cloud deployment as round corner rectangles.
If a node in the cloud is included into two groups at the same time then the groups containing it should overlap/intersect.

I've tried to use an alias within the second rectangle (group) containing the same element and got syntax error:

@startuml

rectangle A {
  rectangle X as X1
  rectangle Y
}
rectangle B {
  X1
}
@enduml

Also I've tried to name with the same name the inner element included into both groups like this:

@startuml
rectangle A {
  rectangle X
  rectangle Y
}
rectangle B {
  rectangle X
}
@enduml

It results in two separate rectangles with different X elements inside each rectangle.

1 Answer

+1 vote
answered Aug 24, 2018 by plantuml (295,000 points)
selected Oct 18, 2021 by mopk
 
Best answer

Sorry, but it's really not possible to have groups that overlap/intersect .

So you cannot draw something like that :

(I think it's what you are looking for)

commented Aug 25, 2018 by valexiev (1,200 points)
That would be hard to compute, and would quickly become impossible.

BTW, the best library for Venn diagrams that can handle more than 3-4 intersecting sets is venn.js
commented Oct 18, 2021 by mopk (120 points)
@valexiev,
what's the math behind that tell us it would be hard to compute such diagrams?
...