mirror of
https://github.com/plantuml-stdlib/C4-PlantUML.git
synced 2022-10-18 01:14:54 +00:00
added bidirectional relationships
This commit is contained in:
Vendored
+18
@@ -257,6 +257,24 @@
|
||||
],
|
||||
"description": "Add unidirectional Relationship with Technology to C4 diagram"
|
||||
},
|
||||
"C4_Relationship_Bi": {
|
||||
"scope": "diagram",
|
||||
"prefix": "Bidirectional Relationship",
|
||||
"body": [
|
||||
"BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\")",
|
||||
"$0"
|
||||
],
|
||||
"description": "Add bidirectional Relationship to C4 diagram"
|
||||
},
|
||||
"C4_Relationship_Bi_Techn": {
|
||||
"scope": "diagram",
|
||||
"prefix": "Bidirectional Relationship with Technology",
|
||||
"body": [
|
||||
"BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\", \"${4:technology}\")",
|
||||
"$0"
|
||||
],
|
||||
"description": "Add bidirectional Relationship with Technology to C4 diagram"
|
||||
},
|
||||
"C4_Relationship_Index": {
|
||||
"scope": "diagram",
|
||||
"prefix": "Relationship with Index",
|
||||
|
||||
@@ -95,6 +95,13 @@ Rel_($from, $to, $label, "-->>")
|
||||
Rel_($from, $to, $label, $techn, "-->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure BiRel($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Rel_Back($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<--")
|
||||
!endprocedure
|
||||
@@ -129,6 +136,19 @@ Rel_($from, $to, $label, "-DOWN->>")
|
||||
Rel_($from, $to, $label, $techn, "-DOWN->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure BiRel_D($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-DOWN->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_D($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-DOWN->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Down($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-DOWN->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Down($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-DOWN->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Rel_U($from, $to, $label)
|
||||
Rel_($from, $to, $label, "-UP->>")
|
||||
!endprocedure
|
||||
@@ -142,6 +162,19 @@ Rel_($from, $to, $label, "-UP->>")
|
||||
Rel_($from, $to, $label, $techn, "-UP->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure BiRel_U($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-UP->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_U($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-UP->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Up($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-UP->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Up($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-UP->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Rel_L($from, $to, $label)
|
||||
Rel_($from, $to, $label, "-LEFT->>")
|
||||
!endprocedure
|
||||
@@ -155,6 +188,19 @@ Rel_($from, $to, $label, "-LEFT->>")
|
||||
Rel_($from, $to, $label, $techn, "-LEFT->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure BiRel_L($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-LEFT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_L($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-LEFT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Left($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-LEFT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Left($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-LEFT->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure Rel_R($from, $to, $label)
|
||||
Rel_($from, $to, $label, "-RIGHT->>")
|
||||
!endprocedure
|
||||
@@ -168,6 +214,19 @@ Rel_($from, $to, $label, "-RIGHT->>")
|
||||
Rel_($from, $to, $label, $techn, "-RIGHT->>")
|
||||
!endprocedure
|
||||
|
||||
!unquoted procedure BiRel_R($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-RIGHT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_R($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-RIGHT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Right($from, $to, $label)
|
||||
Rel_($from, $to, $label, "<<-RIGHT->>")
|
||||
!endprocedure
|
||||
!unquoted procedure BiRel_Right($from, $to, $label, $techn)
|
||||
Rel_($from, $to, $label, $techn, "<<-RIGHT->>")
|
||||
!endprocedure
|
||||
|
||||
' Layout Helpers
|
||||
' ##################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user