Hi,
This specification:
@startuml
hide circle
hide members
package " Some Foo Package " as P1 {
class "Foo Core" as FooCore
class "Foo Shell" as FooShell
class "Foo Config" as FooConfig
}
package " Some Bar Package " as P2 {
class "Bar Core" as BarCore
class "Bar Shell" as BarShell
class "Bar Config" as BarConfig
}
package " www.example.local config " as P3 {
class " Config 1 " as Config11
class " Config 2 " as Config12
}
package " www.example2.local config " as P4 {
class " Config 1 " as Config21
class " Config 2 " as Config22
}
FooShell --> BarCore: creates
BarShell --> Config11: creates
BarShell --> Config21: creates
@enduml
is rendered into:
However if I change the associations slightly, it is no longer rendered in three layers. In other words,
@startuml
hide circle
hide members
package " Some Foo Package " as P1 {
class "Foo Core" as FooCore
class "Foo Shell" as FooShell
class "Foo Config" as FooConfig
}
package " Some Bar Package " as P2 {
class "Bar Core" as BarCore
class "Bar Shell" as BarShell
class "Bar Config" as BarConfig
}
package " www.example.local config " as P3 {
class " Config 1 " as Config11
class " Config 2 " as Config12
}
package " www.example2.local config " as P4 {
class " Config 1 " as Config21
class " Config 2 " as Config22
}
FooShell --> BarCore: creates
BarShell --> Config11: creates
BarShell --> Config21: creates
@enduml
is rendered to:
How can I enforce a layout in which "Some Foo Package" is on top of "Some Bar Package", and "Some Bar Package" is on top of the other two packages?
Also how can I enforce the classes in Some Foo Package remain on the same line?
FooConfig-[hidden]-FooShell
FooShell-[hidden]-FooCore
didn't help:
Thanks in advance.