mirror of
https://github.com/plantuml-stdlib/C4-PlantUML.git
synced 2022-10-18 01:14:54 +00:00
Merge pull request #105 from kirchsth/feature/74
Add sample rel_* versus lay_*
This commit is contained in:
@@ -161,7 +161,45 @@ You can force the direction of a relationship by using:
|
||||
* `Rel_L`, `Rel_Left`
|
||||
* `Rel_R`, `Rel_Right`
|
||||
|
||||
In rare cases, you can force the layout using hidden relationships, `Lay_U`, `Lay_D`, `Lay_L`, `Lay_R`.
|
||||
In rare cases, you can force the layout of objects which have no relationships by using:
|
||||
|
||||
* `Lay_U`
|
||||
* `Lay_D`
|
||||
* `Lay_L`
|
||||
* `Lay_R`
|
||||
|
||||
In following sample a person uses different systems, and group of persons which have no relations
|
||||
|
||||
```csharp
|
||||
@startuml
|
||||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/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")
|
||||
|
||||
Rel_U(x, s1, "uses")
|
||||
Rel_R(x, s2, "uses")
|
||||
Rel_D(x, s3, "uses")
|
||||
Rel_L(x, s4, "uses")
|
||||
@enduml
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Layout Options
|
||||
|
||||
|
||||
Reference in New Issue
Block a user