mirror of
https://github.com/plantuml-stdlib/C4-PlantUML.git
synced 2022-10-18 01:14:54 +00:00
#215 Lay_x calls supports long version Lay_xxxx too
This commit is contained in:
@@ -1117,15 +1117,30 @@ $getRel($right("<<-","->>"), $from, $to, $label, $techn, $descr, $sprite, $tags,
|
||||
!unquoted procedure Lay_D($from, $to)
|
||||
$from -[hidden]D- $to
|
||||
!endprocedure
|
||||
!unquoted procedure Lay_Down($from, $to)
|
||||
$from -[hidden]D- $to
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Lay_U($from, $to)
|
||||
$from -[hidden]U- $to
|
||||
!endprocedure
|
||||
!unquoted procedure Lay_Up($from, $to)
|
||||
$from -[hidden]U- $to
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Lay_R($from, $to)
|
||||
$from -[hidden]R- $to
|
||||
!endprocedure
|
||||
!unquoted procedure Lay_Right($from, $to)
|
||||
$from -[hidden]R- $to
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Lay_L($from, $to)
|
||||
$from -[hidden]L- $to
|
||||
!endprocedure
|
||||
!unquoted procedure Lay_Left($from, $to)
|
||||
$from -[hidden]L- $to
|
||||
!endprocedure
|
||||
|
||||
' PlantUML bug: lines which does "not match" with the orientation/direction of the diagram
|
||||
' uses the same length therefore the method offers no direction at all.
|
||||
|
||||
@@ -283,12 +283,12 @@ Rel_D(user, user1, "requests", "async message", "if sprite starts with &, it def
|
||||
|
||||

|
||||
|
||||
In rare cases, you can force the layout of objects which have no relationships by using:
|
||||
In rare cases, you can force the layout of elements which have no relationships by using:
|
||||
|
||||
* `Lay_U(from, to)`
|
||||
* `Lay_D(from, to)`
|
||||
* `Lay_L(from, to)`
|
||||
* `Lay_R(from, to)`
|
||||
* `Lay_U(from, to)`, `Lay_Up(from, to)`
|
||||
* `Lay_D(from, to)`, `Lay_Down(from, to)`
|
||||
* `Lay_L(from, to)`, `Lay_Left(from, to)`
|
||||
* `Lay_R(from, to)`, `Lay_Right(from, to)`
|
||||
|
||||
In following sample a person uses different systems, and group of persons which have no relations
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
@startuml
|
||||
' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally
|
||||
!if %variable_exists("RELATIVE_INCLUDE")
|
||||
!include ./../C4_Container.puml
|
||||
!else
|
||||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
|
||||
!endif
|
||||
|
||||
HIDE_STEREOTYPE()
|
||||
|
||||
Person(a, "A")
|
||||
Person(a1, "P1")
|
||||
Person(a2, "P2")
|
||||
Person(a3, "P3")
|
||||
Person(a4, "P4")
|
||||
|
||||
Lay_U(a, a1)
|
||||
Lay_R(a, a2)
|
||||
Lay_D(a, a3)
|
||||
Lay_L(a, a4)
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user