I'm just starting with plantuml and having trouble getting the layout the way I want. With the below file, I want box1 to appear above box2 and within box2, have c1-4 in a stacked column and c5-7 in another stacked column to the right of it.
It would also be great if box1 was as wide as box2 and just had c8 pushed to the right side. Is it possible to do something like that?
@startuml
scale 2
rectangle "outer" #white {
rectangle "Box1" #e0cca6 {
rectangle "Component 8" as c8 #blue
}
rectangle "Box2" #e0cca6 {
rectangle "Component 1" as c1 #blue
rectangle "Component 2" as c2 #blue
rectangle "Component 3" as c3 #blue
rectangle "Component 4" as c4 #blue
rectangle "Component 5" as c5 #blue
rectangle "Component 6" as c6 #blue
rectangle "Component 7" as c7 #blue
}
}
c7 -- c1
c7 -- c2
c7 -- c3
c7 -- c4
c7 -- c5
c7 -- c6
c7 .. c8
@enduml