diff --git a/.vscode/C4.code-snippets b/.vscode/C4.code-snippets index 76c64c2..8766176 100644 --- a/.vscode/C4.code-snippets +++ b/.vscode/C4.code-snippets @@ -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", diff --git a/C4.puml b/C4.puml index 4ed5532..9f6a90b 100644 --- a/C4.puml +++ b/C4.puml @@ -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 ' ##################################