plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.41k stars 1.1k forks source link

#215 Lay_x calls supports long version Lay_xxxx too #217

Closed kirchsth closed 2 years ago

kirchsth commented 2 years ago

Implementation of https://github.com/plantuml-stdlib/C4-PlantUML/issues/215

"long" layout calls (Lay_Up, Lay_Right, Lay_Down and Lay_Left) can be used like below

@startuml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml
HIDE_STEREOTYPE()

Person(a, "A")
Person(b, "B")
Person(c, "C")
Person(d, "D")
Person(e, "E")

Lay_U(a, b)
Lay_R(a, c)
Lay_D(a, d)
Lay_L(a, e)

Person(x, "X")
System(s1, "S1")
System(s2, "S2")
System(s3, "S3")
System(s4, "S4")

Lay_Up(x, s1)
Lay_Right(x, s2)
Lay_Down(x, s3)
Lay_Left(x, s4)
@enduml

It can be tested with my extended branch

BR Helmut

PS.: I didn't add something to LayoutOptions.md because I think it is not an option