added bidirectional relationships

pull/84/head
Adrian Lupu 6 years ago
commit 12fcdd497c

@ -257,6 +257,24 @@
], ],
"description": "Add unidirectional Relationship with Technology to C4 diagram" "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": { "C4_Relationship_Index": {
"scope": "diagram", "scope": "diagram",
"prefix": "Relationship with Index", "prefix": "Relationship with Index",

@ -95,6 +95,13 @@ Rel_($from, $to, $label, "-->>")
Rel_($from, $to, $label, $techn, "-->>") Rel_($from, $to, $label, $techn, "-->>")
!endprocedure !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) !unquoted procedure Rel_Back($from, $to, $label)
Rel_($from, $to, $label, "<<--") Rel_($from, $to, $label, "<<--")
!endprocedure !endprocedure
@ -129,6 +136,19 @@ Rel_($from, $to, $label, "-DOWN->>")
Rel_($from, $to, $label, $techn, "-DOWN->>") Rel_($from, $to, $label, $techn, "-DOWN->>")
!endprocedure !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) !unquoted procedure Rel_U($from, $to, $label)
Rel_($from, $to, $label, "-UP->>") Rel_($from, $to, $label, "-UP->>")
!endprocedure !endprocedure
@ -142,6 +162,19 @@ Rel_($from, $to, $label, "-UP->>")
Rel_($from, $to, $label, $techn, "-UP->>") Rel_($from, $to, $label, $techn, "-UP->>")
!endprocedure !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) !unquoted procedure Rel_L($from, $to, $label)
Rel_($from, $to, $label, "-LEFT->>") Rel_($from, $to, $label, "-LEFT->>")
!endprocedure !endprocedure
@ -155,6 +188,19 @@ Rel_($from, $to, $label, "-LEFT->>")
Rel_($from, $to, $label, $techn, "-LEFT->>") Rel_($from, $to, $label, $techn, "-LEFT->>")
!endprocedure !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) !unquoted procedure Rel_R($from, $to, $label)
Rel_($from, $to, $label, "-RIGHT->>") Rel_($from, $to, $label, "-RIGHT->>")
!endprocedure !endprocedure
@ -168,6 +214,19 @@ Rel_($from, $to, $label, "-RIGHT->>")
Rel_($from, $to, $label, $techn, "-RIGHT->>") Rel_($from, $to, $label, $techn, "-RIGHT->>")
!endprocedure !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 ' Layout Helpers
' ################################## ' ##################################

Loading…
Cancel
Save