From 43bbc2e725110d8771b1b0908097cbcb4950569f Mon Sep 17 00:00:00 2001 From: Adrian Lupu Date: Sun, 9 Jun 2019 17:52:47 +0300 Subject: [PATCH] samples broken again --- C4.puml | 8 ++++++-- C4_Component.puml | 10 +++++----- C4_Container.puml | 8 ++++---- samples/C4_Container Diagram Sample - bigbankplc.puml | 4 ++-- samples/C4_Container Diagram Sample - message bus.puml | 2 +- .../C4_Container Diagram Sample - techtribesjs.puml | 2 +- ..._Context Diagram Sample - bigbankplc-landscape.puml | 2 +- samples/C4_Context Diagram Sample - enterprise.puml | 2 +- 8 files changed, 21 insertions(+), 17 deletions(-) diff --git a/C4.puml b/C4.puml index 5c1210d..2fc0634 100644 --- a/C4.puml +++ b/C4.puml @@ -50,9 +50,13 @@ skinparam defaultFontName "Comic Sans MS" center footer Warning: Created for discussion, needs to be validated !endfunction -!function LAYOUT_TOP_DOWN() return top to bottom direction +!function LAYOUT_TOP_DOWN() +top to bottom direction +!endfunction -!function LAYOUT_LEFT_RIGHT() return left to right direction +!function LAYOUT_LEFT_RIGHT() +left to right direction +!endfunction ' Boundaries ' ################################## diff --git a/C4_Component.puml b/C4_Component.puml index f9164ba..d645f95 100644 --- a/C4_Component.puml +++ b/C4_Component.puml @@ -36,11 +36,11 @@ skinparam database<> { hide stereotype legend right |= |= Type | -| | person | -| | external person | -| | system | -| | external system | -| | container | +|<$PERSON_BG_COLOR> | person | +|<$EXTERNAL_PERSON_BG_COLOR> | external person | +|<$SYSTEM_BG_COLOR> | system | +|<$EXTERNAL_SYSTEM_BG_COLOR> | external system | +|<$CONTAINER_BG_COLOR> | container | |<$COMPONENT_BG_COLOR> | component | endlegend !endfunction diff --git a/C4_Container.puml b/C4_Container.puml index 4dff9d8..680c23e 100644 --- a/C4_Container.puml +++ b/C4_Container.puml @@ -36,10 +36,10 @@ skinparam database<> { hide stereotype legend right |= |= Type | -| | person | -| | external person | -| | system | -| | external system | +|<$PERSON_BG_COLOR> | person | +|<$EXTERNAL_PERSON_BG_COLOR> | external person | +|<$SYSTEM_BG_COLOR> | system | +|<$EXTERNAL_SYSTEM_BG_COLOR> | external system | |<$CONTAINER_BG_COLOR> | container | endlegend !endfunction diff --git a/samples/C4_Container Diagram Sample - bigbankplc.puml b/samples/C4_Container Diagram Sample - bigbankplc.puml index 64b15d5..5b68eea 100644 --- a/samples/C4_Container Diagram Sample - bigbankplc.puml +++ b/samples/C4_Container Diagram Sample - bigbankplc.puml @@ -3,8 +3,8 @@ ' uncomment the following line and comment the first to use locally ' !include C4_Container.puml -LAYOUT_TOP_DOWN -'LAYOUT_AS_SKETCH() +' LAYOUT_TOP_DOWN() +' LAYOUT_AS_SKETCH() LAYOUT_WITH_LEGEND() title Container diagram for Internet Banking System diff --git a/samples/C4_Container Diagram Sample - message bus.puml b/samples/C4_Container Diagram Sample - message bus.puml index 32aea14..5b4100c 100644 --- a/samples/C4_Container Diagram Sample - message bus.puml +++ b/samples/C4_Container Diagram Sample - message bus.puml @@ -6,7 +6,7 @@ skinparam wrapWidth 200 skinparam maxMessageSize 200 -LAYOUT_TOP_DOWN +LAYOUT_TOP_DOWN() 'LAYOUT_AS_SKETCH() LAYOUT_WITH_LEGEND() diff --git a/samples/C4_Container Diagram Sample - techtribesjs.puml b/samples/C4_Container Diagram Sample - techtribesjs.puml index afc0498..a2a8c80 100644 --- a/samples/C4_Container Diagram Sample - techtribesjs.puml +++ b/samples/C4_Container Diagram Sample - techtribesjs.puml @@ -3,7 +3,7 @@ ' uncomment the following line and comment the first to use locally ' !include C4_Container.puml -LAYOUT_TOP_DOWN +LAYOUT_TOP_DOWN() 'LAYOUT_AS_SKETCH() LAYOUT_WITH_LEGEND() diff --git a/samples/C4_Context Diagram Sample - bigbankplc-landscape.puml b/samples/C4_Context Diagram Sample - bigbankplc-landscape.puml index bde9f0f..e29f8f5 100644 --- a/samples/C4_Context Diagram Sample - bigbankplc-landscape.puml +++ b/samples/C4_Context Diagram Sample - bigbankplc-landscape.puml @@ -3,7 +3,7 @@ ' uncomment the following line and comment the first to use locally ' !include C4_Context.puml -'LAYOUT_TOP_DOWN +'LAYOUT_TOP_DOWN() 'LAYOUT_AS_SKETCH() LAYOUT_WITH_LEGEND() diff --git a/samples/C4_Context Diagram Sample - enterprise.puml b/samples/C4_Context Diagram Sample - enterprise.puml index d68162b..c11da10 100644 --- a/samples/C4_Context Diagram Sample - enterprise.puml +++ b/samples/C4_Context Diagram Sample - enterprise.puml @@ -3,7 +3,7 @@ ' uncomment the following line and comment the first to use locally ' !include C4_Context.puml -LAYOUT_TOP_DOWN +LAYOUT_TOP_DOWN() 'LAYOUT_AS_SKETCH() LAYOUT_WITH_LEGEND()