How to align blocks in PlantUML class diagrams?

UPDATES Aug.08.2019

From Rotsiser’s comment, by combining changing the length of lines with together keyword, it can align elements

@startuml
class A
A ..> B
C ---> B
D ...> B
together {
    class E
    class F
    class G
}
E ----> B
@enduml

enter image description here


OUTDATED

You are able to align elements by changing the number of line’s character, such as ‘-‘, ‘.’, and so on.

@startuml
class A
A ..> B
C ---> B
D ...> B
E ----> B
F ----> B
G ----> B
@enduml

enter image description here

Leave a Comment

tech