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

0 votes
answered Aug 24, 2018 by plantuml (208,860 points)

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 (960 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
...