Merge branch 'feature/126' into extended
commit
ab198039a4
@ -0,0 +1,52 @@
|
||||
@startuml
|
||||
' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally
|
||||
!if %variable_exists("RELATIVE_INCLUDE")
|
||||
!include ./../C4_Component.puml
|
||||
!else
|
||||
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Component.puml
|
||||
!endif
|
||||
|
||||
SHOW_PERSON_SPRITE(person2)
|
||||
|
||||
UpdateElementStyle("system", $bgColor="chocolate", $fontColor="orange", $borderColor="orange")
|
||||
UpdateRelStyle(black, black)
|
||||
|
||||
AddTagSupport("role1", $bgColor="green", $fontColor="white", $borderColor="#d73027", $shadowing="false")
|
||||
AddTagSupport("role2", $fontColor="#d73027", $shadowing="true")
|
||||
AddTagSupport("role3", $bgColor="orange")
|
||||
AddTagSupport("role4", $borderColor="blue")
|
||||
AddTagSupport("unusedRole")
|
||||
|
||||
AddRelTagSupport("line1", $lineColor="green", $textColor="blue")
|
||||
AddRelTagSupport("line2", $lineColor="blue", $textColor="green")
|
||||
AddRelTagSupport("line3", $textColor="orange")
|
||||
AddRelTagSupport("line4", $lineColor="orange")
|
||||
' PlantUML cannot combine line styles, a combination has to be added as workaround as first additional tag
|
||||
AddRelTagSupport("line3&line4", $lineColor="orange", $textColor="orange")
|
||||
AddRelTagSupport("unusedLine", $lineColor="red", $textColor="red")
|
||||
|
||||
Person(person, "Person")
|
||||
Person(person1, "Person1", $tags="role1")
|
||||
Person(person2, "Person2", $tags="role2")
|
||||
Person(person21, "Person21", $tags="role2+role1")
|
||||
Person(person321, "Person321", $tags="role3+role2+role1")
|
||||
Person(person4321, "Person43", $tags="role4+role3")
|
||||
Person(person31, "Person31", $tags="role3+role1")
|
||||
Person(person13, "Person13", $tags="role1+role3")
|
||||
|
||||
Person(allInOne, "AllInOne", $tags="role4+role3+role2+role1")
|
||||
|
||||
Component(component, "Component 1", "PlantUML")
|
||||
System(system1A, "System 1A")
|
||||
System(system2, "System 2")
|
||||
|
||||
Rel(allInOne, component, "without a tag")
|
||||
Rel(allInOne, component, "uses line 1", $tags="line1")
|
||||
Rel(allInOne, component, "uses line 2", $tags="line2")
|
||||
Rel(allInOne, system1A, "uses line 3", $tags="line3")
|
||||
Rel(allInOne, system1A, "uses line 4", $tags="line4")
|
||||
Rel(allInOne, system2, "line 3+4 cannot be combined without workaround", $tags="line3+line4")
|
||||
Rel(allInOne, system2, "line 3+4 with workaround", $tags="line3&line4+line3+line4")
|
||||
|
||||
SHOW_LEGEND(false)
|
||||
@enduml
|
||||
@ -0,0 +1,72 @@
|
||||
@startuml
|
||||
' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally
|
||||
!if %variable_exists("RELATIVE_INCLUDE")
|
||||
!include ./../C4_Component.puml
|
||||
!else
|
||||
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Component.puml
|
||||
!endif
|
||||
|
||||
System(RelFrom, RelFrom)
|
||||
System(BiRelFrom, BiRelFrom)
|
||||
|
||||
System(RelShort, RelShort)
|
||||
System(BiRelShort, BiRelShort)
|
||||
|
||||
System(RelLong, RelLong)
|
||||
System(BiRelLong, BiRelLong)
|
||||
|
||||
Rel_(RelFrom, To_Rel_UP, "A label", "-UP->>")
|
||||
Rel_(RelFrom, To_Rel_DOWN, "A label", "A techn", "-DOWN->>")
|
||||
|
||||
Rel(RelFrom, "To_Rel", "A label")
|
||||
Rel(RelFrom, "To_Rel_Tech", "A label", "A techn")
|
||||
Rel_Back(RelFrom, "To_Rel_Back", "A label")
|
||||
Rel_Back(RelFrom, "To_Rel_Back_Tech", "A label", "A techn")
|
||||
Rel_Neighbor(RelFrom, "To_Rel_Neighbor", "A label")
|
||||
Rel_Neighbor(RelFrom, "To_Rel_Neighbor_Tech", "A label", "A techn")
|
||||
Rel_Back_Neighbor(RelFrom, "To_Rel_Back_Neighbor", "A label")
|
||||
Rel_Back_Neighbor(RelFrom, "To_Rel_Back_Neighbor_Tech", "A label", "A techn")
|
||||
|
||||
BiRel(BiRelFrom, "To_BiRel", "A label")
|
||||
BiRel(BiRelFrom, "To_BiRel_Tech", "A label", "A techn")
|
||||
|
||||
Rel_D(RelShort, "To_Rel_D", "A label")
|
||||
Rel_D(RelShort, "To_Rel_D_Tech", "A label", "A techn")
|
||||
Rel_Down(RelLong, "To_Rel_Down", "A label")
|
||||
Rel_Down(RelLong, "To_Rel_Down_Tech", "A label", "A techn")
|
||||
Rel_L(RelShort, "To_Rel_L", "A label")
|
||||
Rel_L(RelShort, "To_Rel_L_Tech", "A label", "A techn")
|
||||
Rel_Left(RelLong, "To_Rel_Left", "A label")
|
||||
Rel_Left(RelLong, "To_Rel_Left_Tech", "A label", "A techn")
|
||||
Rel_R(RelShort, "To_Rel_R", "A label")
|
||||
Rel_R(RelShort, "To_Rel_R_Tech", "A label", "A techn")
|
||||
Rel_Right(RelLong, "To_Rel_Right", "A label")
|
||||
Rel_Right(RelLong, "To_Rel_Right_Tech", "A label", "A techn")
|
||||
Rel_U(RelShort, "To_Rel_U", "A label")
|
||||
Rel_U(RelShort, "To_Rel_U_Tech", "A label", "A techn")
|
||||
Rel_Up(RelLong, "To_Rel_Up", "A label")
|
||||
Rel_Up(RelLong, "To_Rel_Up_Tech", "A label", "A techn")
|
||||
|
||||
BiRel_D(BiRelShort, "To_BiRel_D", "A label")
|
||||
BiRel_D(BiRelShort, "To_BiRel_D_Tech", "A label", "A techn")
|
||||
BiRel_Down(BiRelLong, "To_BiRel_Down", "A label")
|
||||
BiRel_Down(BiRelLong, "To_BiRel_Down_Tech", "A label", "A techn")
|
||||
BiRel_L(BiRelShort, "To_BiRel_L", "A label")
|
||||
BiRel_L(BiRelShort, "To_BiRel_L_Tech", "A label", "A techn")
|
||||
BiRel_Left(BiRelLong, "To_BiRel_Left", "A label")
|
||||
BiRel_Left(BiRelLong, "To_BiRel_Left_Tech", "A label", "A techn")
|
||||
BiRel_R(BiRelShort, "To_BiRel_R", "A label")
|
||||
BiRel_R(BiRelShort, "To_BiRel_R_Tech", "A label", "A techn")
|
||||
BiRel_Right(BiRelLong, "To_BiRel_Right", "A label")
|
||||
BiRel_Right(BiRelLong, "To_BiRel_Right_Tech", "A label", "A techn")
|
||||
BiRel_U(BiRelShort, "To_BiRel_U", "A label")
|
||||
BiRel_U(BiRelShort, "To_BiRel_U_Tech", "A label", "A techn")
|
||||
BiRel_Up(BiRelLong, "To_BiRel_Up", "A label")
|
||||
BiRel_Up(BiRelLong, "To_BiRel_Up_Tech", "A label", "A techn")
|
||||
|
||||
Lay_U(RelFrom, BiRelFrom)
|
||||
Lay_D(RelFrom, RelShort)
|
||||
Lay_D(RelShort, RelLong)
|
||||
Lay_R(RelLong, BiRelShort)
|
||||
Lay_L(RelLong, BiRelLong)
|
||||
@enduml
|
||||
@ -0,0 +1,71 @@
|
||||
@startuml
|
||||
' convert it with additional command line argument -DRELATIVE_INCLUDE="." to use locally
|
||||
!if %variable_exists("RELATIVE_INCLUDE")
|
||||
!include ./../C4_Dynamic.puml
|
||||
!else
|
||||
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Dynamic.puml
|
||||
!endif
|
||||
|
||||
System(RelFrom, RelFrom)
|
||||
System(RelShort, RelShort)
|
||||
System(RelLong, RelLong)
|
||||
|
||||
System(RelIndexFrom, RelIndexFrom)
|
||||
System(RelIndexShort, RelIndexShort)
|
||||
System(RelIndexLong, RelIndexLong)
|
||||
|
||||
Rel_(Index(), RelFrom, To_Rel_UP, "A label", "-UP->>")
|
||||
Rel_(Index(), RelFrom, To_Rel_DOWN, "A label", "A techn", "-DOWN->>")
|
||||
|
||||
Rel(RelFrom, "To_Rel", "A label")
|
||||
Rel(RelFrom, "To_Rel_Tech", "A label", "A techn")
|
||||
Rel_Back(RelFrom, "To_Rel_Back", "A label")
|
||||
Rel_Back(RelFrom, "To_Rel_Back_Tech", "A label", "A techn")
|
||||
Rel_Neighbor(RelFrom, "To_Rel_Neighbor", "A label")
|
||||
Rel_Neighbor(RelFrom, "To_Rel_Neighbor_Tech", "A label", "A techn")
|
||||
Rel_Back_Neighbor(RelFrom, "To_Rel_Back_Neighbor", "A label")
|
||||
Rel_Back_Neighbor(RelFrom, "To_Rel_Back_Neighbor_Tech", "A label", "A techn")
|
||||
|
||||
RelIndex(Index(), RelIndexFrom, "To_RelIndex", "A label")
|
||||
RelIndex(Index(), RelIndexFrom, "To_RelIndex_Tech", "A label", "A techn")
|
||||
|
||||
Rel_D(RelShort, "To_Rel_D", "A label")
|
||||
Rel_D(RelShort, "To_Rel_D_Tech", "A label", "A techn")
|
||||
Rel_Down(RelLong, "To_Rel_Down", "A label")
|
||||
Rel_Down(RelLong, "To_Rel_Down_Tech", "A label", "A techn")
|
||||
Rel_L(RelShort, "To_Rel_L", "A label")
|
||||
Rel_L(RelShort, "To_Rel_L_Tech", "A label", "A techn")
|
||||
Rel_Left(RelLong, "To_Rel_Left", "A label")
|
||||
Rel_Left(RelLong, "To_Rel_Left_Tech", "A label", "A techn")
|
||||
Rel_R(RelShort, "To_Rel_R", "A label")
|
||||
Rel_R(RelShort, "To_Rel_R_Tech", "A label", "A techn")
|
||||
Rel_Right(RelLong, "To_Rel_Right", "A label")
|
||||
Rel_Right(RelLong, "To_Rel_Right_Tech", "A label", "A techn")
|
||||
Rel_U(RelShort, "To_Rel_U", "A label")
|
||||
Rel_U(RelShort, "To_Rel_U_Tech", "A label", "A techn")
|
||||
Rel_Up(RelLong, "To_Rel_Up", "A label")
|
||||
Rel_Up(RelLong, "To_Rel_Up_Tech", "A label", "A techn")
|
||||
|
||||
RelIndex_D(Index(), RelIndexShort, "To_RelIndex_D", "A label")
|
||||
RelIndex_D(Index(), RelIndexShort, "To_RelIndex_D_Tech", "A label", "A techn")
|
||||
RelIndex_Down(Index(), RelIndexLong, "To_RelIndex_Down", "A label")
|
||||
RelIndex_Down(Index(), RelIndexLong, "To_RelIndex_Down_Tech", "A label", "A techn")
|
||||
RelIndex_L(Index(), RelIndexShort, "To_RelIndex_L", "A label")
|
||||
RelIndex_L(Index(), RelIndexShort, "To_RelIndex_L_Tech", "A label", "A techn")
|
||||
RelIndex_Left(Index(), RelIndexLong, "To_RelIndex_Left", "A label")
|
||||
RelIndex_Left(Index(), RelIndexLong, "To_RelIndex_Left_Tech", "A label", "A techn")
|
||||
RelIndex_R(Index(), RelIndexShort, "To_RelIndex_R", "A label")
|
||||
RelIndex_R(Index(), RelIndexShort, "To_RelIndex_R_Tech", "A label", "A techn")
|
||||
RelIndex_Right(Index(), RelIndexLong, "To_RelIndex_Right", "A label")
|
||||
RelIndex_Right(Index(), RelIndexLong, "To_RelIndex_Right_Tech", "A label", "A techn")
|
||||
RelIndex_U(Index(), RelIndexShort, "To_RelIndex_U", "A label")
|
||||
RelIndex_U(Index(), RelIndexShort, "To_RelIndex_U_Tech", "A label", "A techn")
|
||||
RelIndex_Up(Index(), RelIndexLong, "To_RelIndex_Up", "A label")
|
||||
RelIndex_Up(Index(), RelIndexLong, "To_RelIndex_Up_Tech", "A label", "A techn")
|
||||
|
||||
Lay_U(RelFrom, RelIndexFrom)
|
||||
Lay_D(RelFrom, RelShort)
|
||||
Lay_D(RelShort, RelLong)
|
||||
Lay_R(RelLong, RelIndexShort)
|
||||
Lay_L(RelLong, RelIndexLong)
|
||||
@enduml
|
||||
Loading…
Reference in New Issue