How to force rectangles layout?

0 votes
asked Oct 26, 2017 in To be sorted by Georgie
Is there a way to constrain rectangles layout? I would like to show memories internal organization with sectors, themselves made of banks, etc. The following code displays Sector 0 and Sector 1 in a row. Is it possible to force them to display in a column?

@startuml
rectangle "my_memory" {
 rectangle "Sector 0"
 rectangle "Sector 1"
}
@enduml
commented Oct 26, 2017 by Georgie
I have found a solution :
rectangle "my_memory" {
 rectangle "Sector 0" as src
 rectangle "Sector 1" as tgt
 src -[hidden]> tgt  (or src -[hidden]-> tgt depending on the wanted orientation)
}

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...