@matfsw/docusaurus-plantuml-plugin 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +99 -1
  2. package/README.md +150 -18
  3. package/assets/stdlib/LICENSES.md +21 -0
  4. package/assets/stdlib/archimate.min.js +22 -0
  5. package/assets/stdlib/azure.min.js +305 -0
  6. package/assets/stdlib/c4.min.js +47 -0
  7. package/assets/stdlib/cloudinsight.min.js +93 -0
  8. package/assets/stdlib/eip.min.js +14 -0
  9. package/assets/stdlib/k8s.min.js +52 -0
  10. package/assets/stdlib/kubernetes.min.js +17 -0
  11. package/assets/stdlib/manifest.json +112 -0
  12. package/assets/stdlib/office.min.js +557 -0
  13. package/dist/index.cjs +380 -7
  14. package/dist/index.d.cts +86 -3
  15. package/dist/index.d.ts +12 -2
  16. package/dist/index.js +20 -1
  17. package/dist/options.d.ts +52 -1
  18. package/dist/options.js +81 -0
  19. package/dist/runtime/assetLoader.d.ts +13 -1
  20. package/dist/runtime/assetLoader.js +36 -13
  21. package/dist/runtime/cache.d.ts +6 -1
  22. package/dist/runtime/cache.js +2 -2
  23. package/dist/runtime/errors.d.ts +3 -1
  24. package/dist/runtime/errors.js +27 -1
  25. package/dist/runtime/renderer.d.ts +3 -0
  26. package/dist/runtime/renderer.js +21 -7
  27. package/dist/runtime/stdlibLoader.d.ts +31 -0
  28. package/dist/runtime/stdlibLoader.js +99 -0
  29. package/dist/stdlib.d.ts +35 -0
  30. package/dist/stdlib.js +163 -0
  31. package/dist/stdlibBundle.d.ts +60 -0
  32. package/dist/stdlibBundle.js +218 -0
  33. package/dist/stdlibShared.d.ts +51 -0
  34. package/dist/stdlibShared.js +54 -0
  35. package/dist/theme/PlantUmlDiagram/icons.d.ts +38 -0
  36. package/dist/theme/PlantUmlDiagram/icons.js +44 -0
  37. package/dist/theme/PlantUmlDiagram/index.js +5 -3
  38. package/dist/theme/usePlantUmlConfig.d.ts +8 -0
  39. package/dist/theme/usePlantUmlConfig.js +14 -8
  40. package/package.json +3 -1
@@ -0,0 +1,47 @@
1
+ // c4.min.js - generated from plantuml-stdlib by @matfsw/docusaurus-plantuml-plugin.
2
+ (function () {
3
+ var w = window;
4
+ w.PLANTUML_STDLIB = w.PLANTUML_STDLIB || {};
5
+ w.PLANTUML_STDLIB_JSON = w.PLANTUML_STDLIB_JSON || {};
6
+ w.PLANTUML_STDLIB_INFO = w.PLANTUML_STDLIB_INFO || {};
7
+ w.PLANTUML_STDLIB_INFO["c4"] = {"name":"C4","display_name":"C4 (C4-PlantUML)","description":"The C4 library enables a simple way of describing and communicate software architectures with an intuitive language.","author":"Ricardo Niepel, kirchsth and contributors","version":"2.13.0","release":"https://github.com/plantuml-stdlib/C4-PlantUML/tree/release/v2.13.0","license":"MIT","source":"https://github.com/plantuml-stdlib/C4-PlantUML","origin":"https://c4model.com","uid":"83d51bf734c1017521dd113862f71b8e686db43e"};
8
+ var P = (w.PLANTUML_STDLIB["c4"] = w.PLANTUML_STDLIB["c4"] || {});
9
+ var J = (w.PLANTUML_STDLIB_JSON["c4"] = w.PLANTUML_STDLIB_JSON["c4"] || {});
10
+ P["c4"] = P["c4.puml"] = ["' C4-PlantUML","","' Global pre-settings","' ##################################","' NEW_C4_STYLE","' If NEW_C4_STYLE is set BEFORE the first C4_* file is loaded, new C4 layout style is used","' NEW_C4_STYLE can be set via","' !NEW_C4_STYLE = 1","' or with additional command line argument -DNEW_C4_STYLE=1","!global NEW_C4_STYLE ?= 0","","' ROUNDED_STYLE","' If ROUNDED_STYLE is set BEFORE the first C4_* file is loaded, rectangles with rounded corners are used as default shape","' ROUNDED_STYLE can be set via","' !ROUNDED_STYLE = 1","' or with additional command line argument -DROUNDED_STYLE=1","!if (NEW_C4_STYLE == 1)"," !global ROUNDED_STYLE ?= 1","!else"," !global ROUNDED_STYLE ?= 0","!endif","","' ENABLE_ALL_PLANT_ELEMENTS","' If ENABLE_ALL_PLANT_ELEMENTS is set BEFORE the first C4_* file is loaded, nearly \"all\" PlantUML elements can be used like","' Component(StorageA, \"Storage A \", $baseShape=\"storage\")","' ENABLE_ALL_PLANT_ELEMENTS can be set via","' !ENABLE_ALL_PLANT_ELEMENTS = 1","' or with additional command line argument -DENABLE_ALL_PLANT_ELEMENTS=1","","' NO_LAY_ROTATE","' C4-PlantUML v2.12 fixed a missing rotation bug in Lay_* calls in combination with LAYOUT_LANDSCAPE() call","' (details see https://github.com/plantuml-stdlib/C4-PlantUML/issues/376)","' If older diagrams should remain unchanged the bugfix can be deactivated with following statement","' !NO_LAY_ROTATE = 1","' or with follwing additional command line argument","' -DNO_LAY_ROTATE=1","' like","' java -jar plantuml.jar -DNO_LAY_ROTATE=1 ...","!global NO_LAY_ROTATE ?= 0","","'Version","' ##################################","!function C4Version()"," ' 2 spaces and ' are used as unique marker, that the release scripts makes the correct version update"," !$c4Version = \"2.13.0\""," !return $c4Version","!end function","","!procedure C4VersionDetails()","rectangle C4VersionDetailsArea <<legendArea>> [","| PlantUML | **%version()** |","| C4-PlantUML | **C4Version()** |","]","!end procedure","","' Colors","' ##################################","!$ELEMENT_FONT_COLOR ?= \"#FFFFFF\"","","!$ARROW_COLOR ?= \"#666666\"","!$ARROW_FONT_COLOR ?= $ARROW_COLOR","","!$BOUNDARY_COLOR ?= \"#444444\"","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_BORDER_STYLE ?= \"dashed\"","' boundary symbols written in the same line, typically only 50% of the size in element","!$BOUNDARY_IMAGE_SIZE_FACTOR ?= 0.5","!$BOUNDARY_DESCR_MAX_CHAR_WIDTH ?= 35","","!$LEGEND_TITLE_COLOR ?= \"#000000\"","!$LEGEND_FONT_COLOR ?= \"#FFFFFF\"","!$LEGEND_BG_COLOR ?= \"transparent\"","!$LEGEND_BORDER_COLOR ?= \"transparent\"","' %darken(darkkhaki,50), #khaki","!$LEGEND_DARK_COLOR ?= \"#66622E\"","!$LEGEND_LIGHT_COLOR ?= \"#khaki\"","","!$SKETCH_BG_COLOR ?= \"#EEEBDC\"","!$SKETCH_FONT_COLOR ?= \"\"","!$SKETCH_WARNING_COLOR ?= \"red\"","!$SKETCH_FONT_NAME ?= \"Comic Sans MS\"","","' Labels","' ##################################","","!$BOUNDARY_LEGEND_TEXT ?= \"boundary\"","","!$LEGEND_TITLE_TEXT ?= \"Legend\"","!$LEGEND_SHADOW_TEXT ?= \"shadow\"","!$LEGEND_NO_SHADOW_TEXT ?= \"no shadow\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"last text and back color\"","!$LEGEND_NO_FONT_TEXT ?= \"last text color\"","!$LEGEND_NO_BG_TEXT ?= \"last back color\"","!$LEGEND_NO_LINE_TEXT ?= \"last line color\"","!$LEGEND_SHARP_CORNER ?= \"box\"","!$LEGEND_ROUNDED_BOX ?= \"rounded box\"","!$LEGEND_EIGHT_SIDED ?= \"eight sided\"","!$LEGEND_DOTTED_LINE ?= \"dotted\"","!$LEGEND_DASHED_LINE ?= \"dashed\"","!$LEGEND_BOLD_LINE ?= \"bold\"","!$LEGEND_SOLID_LINE ?= \"solid\"","","!$LEGEND_BOUNDARY ?= \"boundary\"","!$LEGEND_BOUNDARY_PRE_PART ?= \"\"","!$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","","' ignore (boundary) transparent atm, that the legend is smaller","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","' (boundary) dashed should not be ignored atm","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"dashed, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","","!$LEGEND_THICKNESS ?= \"thickness\"","","!$SKETCH_FOOTER_WARNING ?= \"Warning:\"","!$SKETCH_FOOTER_TEXT ?= \"Created for discussion, needs to be validated\"","","' Styling","' ##################################","","!$STEREOTYPE_FONT_SIZE ?= 12","!global $TRANSPARENT_STEREOTYPE_FONT_SIZE = $STEREOTYPE_FONT_SIZE/2","!$TECHN_FONT_SIZE ?= 12","","!$ARROW_FONT_SIZE ?= 12","","!$LEGEND_DETAILS_SMALL_SIZE ?= 10","!$LEGEND_DETAILS_NORMAL_SIZE ?= 14","!global $LEGEND_DETAILS_SIZE = $LEGEND_DETAILS_SMALL_SIZE","","' element symbols typically 4 times too big in legend","!$LEGEND_IMAGE_SIZE_FACTOR ?= 0.25","","!$ROUNDED_BOX_SIZE ?= 25","!$EIGHT_SIDED_SIZE ?= 18","","' Default element wrap width (of an element)","!$DEFAULT_WRAP_WIDTH ?= 200","' Maximum size in pixels, of a message (in a sequence diagram?)","!$MAX_MESSAGE_SIZE ?= 150","' PlantUML supports no DETERMINISTIC/automatic line breaks of \"PlantUML line\" (C4 Relationships)","' therefore Rel...() implements an automatic line break based on spaces (like in all other objects).","' If a $type contains \\n then these are used (and no automatic space based line breaks are done)","' $REL_TECHN_MAX_CHAR_WIDTH defines the automatic line break position","!$REL_TECHN_MAX_CHAR_WIDTH ?= 35","!$REL_DESCR_MAX_CHAR_WIDTH ?= 32","","' internal","' ##################################","","!global $SHARP_CORNER = \"sharpCorner\"","!global $ROUNDED_BOX = \"roundedBox\"","!global $EIGHT_SIDED = \"eightSided\"","!if (ROUNDED_STYLE == 1)"," !$DEFAULT_SHAPE ?= $ROUNDED_BOX","!else"," !$DEFAULT_SHAPE ?= $SHARP_CORNER","!endif","","!global $DOTTED_LINE = \"dotted\"","!global $DASHED_LINE = \"dashed\"","!global $BOLD_LINE = \"bold\"","' solid is not defined in plantUML, but works as reset of all other styles too","!global $SOLID_LINE = \"solid\"","","!global $LEGEND_DETAILS_NONE = \"none\"","!global $LEGEND_DETAILS_NORMAL = \"normal\"","!global $LEGEND_DETAILS_SMALL = \"small\"","","skinparam defaultTextAlignment center","","skinparam wrapWidth $DEFAULT_WRAP_WIDTH","skinparam maxMessageSize $MAX_MESSAGE_SIZE","","skinparam LegendFontColor $LEGEND_FONT_COLOR","skinparam LegendBackgroundColor $LEGEND_BG_COLOR","skinparam LegendBorderColor $LEGEND_BORDER_COLOR","","skinparam rectangle<<legendArea>> {"," backgroundcolor $LEGEND_BG_COLOR"," bordercolor $LEGEND_BORDER_COLOR","}","","skinparam rectangle {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","","skinparam database {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","","skinparam queue {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","","skinparam participant {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","","skinparam arrow {"," Color $ARROW_COLOR"," FontColor $ARROW_FONT_COLOR"," FontSize $ARROW_FONT_SIZE","}","","skinparam person {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","","skinparam actor {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE"," style awesome","}","","!if %variable_exists(\"ENABLE_ALL_PLANT_ELEMENTS\")","skinparam agent {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam artifact {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam boundary {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam card {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam circle {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam cloud {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam collections {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam control {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam entity {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam file {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam folder {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam frame {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam hexagon {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam interface {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam label {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam stack {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam storage {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam usecase {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","skinparam person {"," StereotypeFontSize $STEREOTYPE_FONT_SIZE","}","!endif","","' Some boundary skinparams have to be set as package skinparams too (PlantUML uses internal packages)","' UpdateBoundaryStyle() called in boundary section below","skinparam rectangle<<boundary>> {"," StereotypeFontSize $TRANSPARENT_STEREOTYPE_FONT_SIZE"," StereotypeFontColor $BOUNDARY_BG_COLOR"," BorderStyle $BOUNDARY_BORDER_STYLE","}","","skinparam package {"," StereotypeFontSize $TRANSPARENT_STEREOTYPE_FONT_SIZE"," StereotypeFontColor $BOUNDARY_BG_COLOR"," FontStyle plain"," BackgroundColor $BOUNDARY_BG_COLOR","}","","' PlantUML compatibility utilities","' ##################################","","' PlantUML v1.2025.1beta6 introduced a new %breakline() function.","' This should be used instead of the old %newline(), if a command ends.","' (%newline() should be only used in multiline labels,...)","!function $bl()"," !if (%function_exists(\"%breakline\"))"," !return %breakline()"," !endif"," !return %newline()","!endfunction","","' Legend and Tags","' ##################################","!global $tagDefaultLegend = \"\"","!global $tagCustomLegend = \"\"","","' rel specific","!unquoted function $toStereos($tags)"," !if (%strlen($tags) == 0)"," !return ''"," !endif"," !$stereos = ''"," !$brPos = %strpos($tags, \"+\")"," !while ($brPos >= 0)"," !$tag = %substr($tags, 0, $brPos)"," !$stereos = $stereos + '<<' + $tag + '>>'","%set_variable_value(\"$\" + $tag + \"_LineLegend\", %true())"," !$tags = %substr($tags, $brPos+1)"," !$brPos = %strpos($tags, \"+\")"," !endwhile"," !if (%strlen($tags) > 0)"," !$stereos = $stereos + '<<' + $tags + '>>'","%set_variable_value(\"$\" + $tags + \"_LineLegend\", %true())"," !endif"," !return $stereos","!endfunction","","' if $sprite/$techn is an empty argument, try to calculate it via the defined $tag","!unquoted function $toRelArg($arg, $tags, $varPostfix)"," !if ($arg > \"\")"," !return $arg"," !endif",""," !if (%strlen($tags) == 0)"," !return $arg"," !endif"," !$brPos = %strpos($tags, \"+\")"," !while ($brPos >= 0)"," !$tag = %substr($tags, 0, $brPos)"," !$newArg = %get_variable_value(\"$\" + $tag + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !endif"," !$tags = %substr($tags, $brPos+1)"," !$brPos = %strpos($tags, \"+\")"," !endwhile"," !if (%strlen($tags) > 0)"," !$newArg = %get_variable_value(\"$\" + $tags + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !endif"," !endif"," !return $arg","!endfunction","","' element specific (unused are hidden based on mask)","!unquoted function $toStereos($elementType, $tags)"," !if (%strlen($tags) == 0)"," !$stereos = '<<' + $elementType + '>>'","%set_variable_value(\"$\" + $elementType + \"Legend\", %true())"," !return $stereos"," !endif"," !$stereos = ''"," !$mask = $resetMask()"," !$brPos = %strpos($tags, \"+\")"," !while ($brPos >= 0)"," !$tag = %substr($tags, 0, $brPos)"," !$stereos = $stereos + '<<' + $tag + '>>'"," !$mergedMask = $combineMaskWithTag($mask, $tag)"," !if ($mergedMask != $mask)","%set_variable_value(\"$\" + $tag + \"Legend\", %true())"," !$mask = $mergedMask"," !endif"," !$tags = %substr($tags, $brPos+1)"," !$brPos = %strpos($tags, \"+\")"," !endwhile"," !if (%strlen($tags) > 0)"," !$stereos = $stereos + '<<' + $tags + '>>'"," !$mergedMask = $combineMaskWithTag($mask, $tags)"," !if ($mergedMask != $mask)","%set_variable_value(\"$\" + $tags + \"Legend\", %true())"," !$mask = $mergedMask"," !endif"," !endif"," ' has to be last, otherwise PlantUML overwrites all tag specific skinparams"," !$stereos = $stereos + '<<' + $elementType + '>>'"," !$mergedMask = $combineMaskWithTag($mask, $elementType)"," !if ($mergedMask != $mask)","%set_variable_value(\"$\" + $elementType + \"Legend\", %true())"," !$mask = $mergedMask"," !endif"," !return $stereos","!endfunction","","' if $sprite/$techn is an empty argument, try to calculate it via the defined $tag","!unquoted function $toElementArg($arg, $tags, $varPostfix, $elementType)"," !if ($arg > \"\")"," !return $arg"," !endif",""," !if (%strlen($tags) == 0)"," !$newArg = %get_variable_value(\"$\" + $elementType + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !else"," !return $arg"," !endif"," !endif"," !$brPos = %strpos($tags, \"+\")"," !while ($brPos >= 0)"," !$tag = %substr($tags, 0, $brPos)"," !$newArg = %get_variable_value(\"$\" + $tag + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !endif"," !$tags = %substr($tags, $brPos+1)"," !$brPos = %strpos($tags, \"+\")"," !endwhile"," !if (%strlen($tags) > 0)"," !$newArg = %get_variable_value(\"$\" + $tags + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !endif"," !$newArg = %get_variable_value(\"$\" + $elementType + $varPostfix)"," !if ($newArg > \"\")"," !return $newArg"," !endif"," !endif"," !return $arg","!endfunction","","' if $value is empty try to load it via variable, optional can it store the calculated value","!function $restoreEmpty($elementType, $property, $value, $store)"," !$var = \"$\" + $elementType + \"Restore\" + $property"," !if ($value == \"\")"," !$value = %get_variable_value($var)"," !elseif ($store)"," %set_variable_value($var, $value)"," !endif"," !return $value","!endfunction","","' clear the restore property","!function $clearRestore($elementType, $property)"," !$var = \"$\" + $elementType + \"Restore\" + $property"," %set_variable_value($var, \"\")"," !return \"\"","!endfunction","","!function $elementTagSkinparams($element, $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $borderStyle, $borderThickness)"," !$elementSkin = \"skinparam \" + $element + \"<<\" + $tagStereo + \">> {\" + $bl()"," !if ($fontColor != \"\")"," !if (%strpos($tagStereo, \"boundary\") < 0)"," !$elementSkin = $elementSkin + \" StereotypeFontColor \" + $fontColor + $bl()"," !endif"," !$elementSkin = $elementSkin + \" FontColor \" + $fontColor + $bl()"," !endif"," !if ($bgColor != \"\")"," !$elementSkin = $elementSkin + \" BackgroundColor \" + $bgColor + $bl()"," !endif"," !if ($borderColor != \"\")"," !$elementSkin = $elementSkin + \" BorderColor \" + $borderColor+ $bl()"," !endif"," !if ($shadowing == \"true\")"," !$elementSkin = $elementSkin + \" Shadowing<<\" + $tagStereo + \">> \" + \"true\" + $bl()"," !endif"," !if ($shadowing == \"false\")"," !$elementSkin = $elementSkin + \" Shadowing<<\" + $tagStereo + \">> \" + \"false\" + $bl()"," !endif"," ' only rectangle supports shape(d corners), define both skinparam that overlays are working"," !if ($shape != \"\" && $element == \"rectangle\")"," !if ($shape == $SHARP_CORNER)"," !$elementSkin = $elementSkin + \" RoundCorner \" + \"0\" + $bl()"," !$elementSkin = $elementSkin + \" DiagonalCorner \" + \"0\" + $bl()"," !elseif ($shape == $ROUNDED_BOX)"," !$elementSkin = $elementSkin + \" RoundCorner \" + $ROUNDED_BOX_SIZE+ $bl()"," !$elementSkin = $elementSkin + \" DiagonalCorner \" + \"0\" + $bl()"," !elseif ($shape == $EIGHT_SIDED)"," !$elementSkin = $elementSkin + \" RoundCorner \" + \"0\" + $bl()"," !$elementSkin = $elementSkin + \" DiagonalCorner \" + $EIGHT_SIDED_SIZE+ $bl()"," !endif"," !endif"," !if ($borderStyle != \"\")"," !$elementSkin = $elementSkin + \" BorderStyle \" + $borderStyle + $bl()"," !endif"," !if ($borderThickness != \"\")"," !$elementSkin = $elementSkin + \" BorderThickness \" + $borderThickness + $bl()"," !endif"," !$elementSkin = $elementSkin + \"}\" + $bl()"," !return $elementSkin","!endfunction","","!unquoted procedure $defineSkinparams($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $borderStyle, $borderThickness)"," ' only rectangle supports shape(d corners)"," !$tagSkin = $elementTagSkinparams(\"rectangle\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"database\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"queue\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," ' plantuml.jar bug - actor have to be after person"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"person\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," ' actor has style awesome, therefore $fontColor is ignored and text uses $bgColor too"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"actor\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," ' sequence requires participant"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"participant\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"sequencebox\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !if (%strpos($tagStereo, \"boundary\") >= 0 && $bgColor != \"\")"," !$tagSkin = $tagSkin + \"skinparam package<<\" + $tagStereo + \">>StereotypeFontColor \" + $bgColor + $bl()"," !$tagSkin = $tagSkin + \"skinparam rectangle<<\" + $tagStereo + \">>StereotypeFontColor \" + $bgColor + $bl()"," !endif"," !if %variable_exists(\"ENABLE_ALL_PLANT_ELEMENTS\")"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"agent\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"artifact\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"card\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"cloud\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"collections\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"file\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"folder\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"frame\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"hexagon\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"package\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"stack\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"storage\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"usecase\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," ' elements without background: font uses $bgColor"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"boundary\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"circle\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"control\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"entity\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"interface\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)"," ' label uses wrong font color? (should be $bgColor too)"," !$tagSkin = $tagSkin + $elementTagSkinparams(\"label\", $tagStereo, $bgColor, $bgColor, $borderColor, $shadowing, \"\", $borderStyle, $borderThickness)","' label colors cannot be set via skinparam use additional style"," !$tagSkin = $tagSkin + \"<style>\" + $bl()"," ' componentDiagram {"," !$tagSkin = $tagSkin + \" label {\" + $bl()"," !$tagSkin = $tagSkin + \" .\" + $tagStereo + \" {\" + $bl()"," !$tagSkin = $tagSkin + \" StereotypeFontColor \" + $bgColor + $bl()"," !$tagSkin = $tagSkin + \" Fontcolor \" + $bgColor + $bl()"," !$tagSkin = $tagSkin + \" BackgroundColor \" + $bgColor + $bl()"," !$tagSkin = $tagSkin + \" BorderColor \" + $borderColor + $bl()"," !$tagSkin = $tagSkin + \" }\" + $bl()"," !$tagSkin = $tagSkin + \" }\" + $bl()"," ' }"," !$tagSkin = $tagSkin + \"</style>\" + $bl()"," !endif","$tagSkin","!endprocedure","","' arrow colors cannot start with # (legend background has to start with #)","!function $colorWithoutHash($c)"," !if (%substr($c, 0, 1) == \"#\")"," !$c = %substr($c,1)"," !endif"," !return $c","!endfunction","","!unquoted procedure $defineRelSkinparams($tagStereo, $textColor, $lineColor, $lineStyle, $lineThickness)"," !$elementSkin = \"skinparam arrow<<\" + $tagStereo + \">> {\" + $bl()"," !if ($lineColor != \"\") || ($textColor != \"\") || ($lineStyle != \"\")"," !$elementSkin = $elementSkin + \" Color \""," !if ($lineColor != \"\")"," !$elementSkin = $elementSkin + $colorWithoutHash($lineColor)"," !endif"," !if ($textColor != \"\")"," !$elementSkin = $elementSkin + \";text:\" + $colorWithoutHash($textColor)"," !endif"," !if ($lineStyle != \"\")"," !$elementSkin = $elementSkin + \";line.\" + $lineStyle"," !endif"," !$elementSkin = $elementSkin + $bl()"," !endif"," !if ($lineThickness != \"\")"," !$elementSkin = $elementSkin + \" thickness \" + $lineThickness + $bl()"," !endif"," !$elementSkin = $elementSkin + \"}\" + $bl()","$elementSkin","!endprocedure","","' %is_dark() requires PlantUML version >= 1.2021.6","!if (%function_exists(\"%is_dark\"))"," !$PlantUMLSupportsDynamicLegendColor = %true()","!else"," !$PlantUMLSupportsDynamicLegendColor = %false()"," !log \"dynamic undefined legend colors\" requires PlantUML version >= 1.2021.6, therefore only static assigned colors are used","!endif","","!unquoted function $contrastLegend($color)"," !if (%is_dark($color))"," !$value = $LEGEND_LIGHT_COLOR"," !else"," !$value = $LEGEND_DARK_COLOR"," !endif"," !return $value","!endfunction","","!unquoted function $flatLegend($color)"," !if (%is_dark($color))"," !$value = $LEGEND_DARK_COLOR"," !else"," !$value = $LEGEND_LIGHT_COLOR"," !endif"," !return $value","!endfunction","","' legend background has to start with #","!function $colorWithHash($c)"," !if (%substr($c, 0, 1) != \"#\")"," !$c = \"#\" + $c"," !endif"," !return $c","!endfunction","","!function $addMaskFlag($mask, $attr)"," !if ($attr == \"\")"," !$mask = $mask + \"0\""," !else"," !$mask = $mask + \"1\""," !endif"," !return $mask","!endfunction","","!function $orFlags($flag1, $flag2)"," !if ($flag1 == \"0\" && $flag2 == \"0\")"," !return \"0\""," !endif"," !return \"1\"","!endfunction","","!function $tagLegendMask($bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $borderStyle, $borderThickness)"," !$mask = \"\""," !$mask = $addMaskFlag($mask, $bgColor)"," !$mask = $addMaskFlag($mask, $fontColor)"," !$mask = $addMaskFlag($mask, $borderColor)"," !$mask = $addMaskFlag($mask, $shadowing)"," !$mask = $addMaskFlag($mask, $shape)"," !$mask = $addMaskFlag($mask, $sprite)"," !$mask = $addMaskFlag($mask, $borderStyle)"," !$mask = $addMaskFlag($mask, $borderThickness)"," !return $mask","!endfunction","","!function $resetMask()"," !return \"00000000\"","!endfunction","","!function $combineMasks($mask1, $mask2)"," !$mask = \"\""," !$mask = $mask + $orFlags(%substr($mask1, 0, 1), %substr($mask2, 0, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 1, 1), %substr($mask2, 1, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 2, 1), %substr($mask2, 2, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 3, 1), %substr($mask2, 3, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 4, 1), %substr($mask2, 4, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 5, 1), %substr($mask2, 5, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 6, 1), %substr($mask2, 6, 1))"," !$mask = $mask + $orFlags(%substr($mask1, 7, 1), %substr($mask2, 7, 1))"," !return $mask","!endfunction","","!function $combineMaskWithTag($mask1, $tag)"," !$mask2 = %get_variable_value(\"$\" + $tag+ \"LegendMask\")"," !if ($mask2 == \"\")"," ' !log combineMaskWithTag $mask1, $tag, ... only $mask1"," !return $mask1"," !endif",""," ' !log combineMaskWithTag $mask1, $tag, $mask2 ... $combineMasks($mask1, $mask2)"," !return $combineMasks($mask1, $mask2)","!endfunction","","' element symbols typically 4 times too big in legend","!function $smallVersionSprite($sprite, $imageScale = $LEGEND_IMAGE_SIZE_FACTOR)"," ' ,scale= ... has to be first (...,color=black,scale=0.25... is invalid too)"," !if (%strpos($sprite, \"=\") < 0)"," !if (%substr($sprite, 0, 4) == \"img:\")"," !$smallSprite = $sprite + \"{scale=\" + $imageScale + \"}\""," !else"," !$smallSprite = $sprite + \",scale=\" + $imageScale"," !endif"," !else"," !$smallSprite = $sprite"," !endif"," !return $smallSprite","!endfunction","","' format sprite that it can be used in diagram","!function $getSprite($sprite)"," ' if it starts with & it's a OpenIconic, details see https://useiconic.com/open/"," ' if it starts with img: it's an image, details see https://plantuml.com/creole"," !if (%substr($sprite, 0, 1) != \"&\" && %substr($sprite, 0, 4) != \"img:\")"," !$formatted = \"<$\" + $sprite + \">\""," !else"," !$formatted = \"<\" + $sprite + \">\""," !endif"," !return $formatted","!endfunction","","!function $setTagLegendVariables($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $legendText, $legendSprite, $borderStyle, $borderThickness)"," !$bg = $bgColor"," !$fo = $fontColor"," !$bo = $borderColor",""," !if ($fo == \"\")"," !if ($bg != \"\")","!if ($PlantUMLSupportsDynamicLegendColor)"," !$fo = $contrastLegend($bg)","!else"," !$fo = $LEGEND_DARK_COLOR","!endif"," !else"," !if ($bo == \"\")"," !$fo = $LEGEND_DARK_COLOR"," !$bg = $LEGEND_LIGHT_COLOR"," !else","!if ($PlantUMLSupportsDynamicLegendColor)"," !$fo = $flatLegend($bo)"," !$bg = $contrastLegend($bo)","!else"," !$fo = $LEGEND_DARK_COLOR"," !$bg = $LEGEND_LIGHT_COLOR","!endif"," !endif"," !endif"," !else"," !if ($bg == \"\")","!if ($PlantUMLSupportsDynamicLegendColor)"," !$bg = $contrastLegend($fo)","!else"," !$bg = $LEGEND_LIGHT_COLOR","!endif"," !endif"," !endif",""," !if ($bo == \"\")"," !$bo = $bg"," !endif",""," !$tagEntry = \"|\""," !$tagDetails = \"(\""," !$tagEntry = $tagEntry + \"<\" + $colorWithHash($bg) +\">\""," ' <U+25AF> ..white rectangle"," !$tagEntry = $tagEntry + \"<color:\"+$bo+\"> <U+25AF></color> \""," !$tagEntry = $tagEntry + \"<color:\"+$fo+\">\""," !if ($legendSprite != \"\")"," !$tagEntry = $tagEntry + $getSprite($legendSprite) + \" \""," !endif",""," !$isBoundary = 0"," !if ($legendText == \"\")"," !if (%strpos($tagStereo, \"boundary\") >= 0)"," !if ($tagStereo == \"boundary\")"," !$isBoundary = 1"," !$tagEntry = $LEGEND_BOUNDARY_PRE_PART + $tagEntry + $LEGEND_BOUNDARY_POST_PART + \" \""," !else"," ' if contains/ends with _boundary remove _boundary and add \"boundary (dashed)\""," !$pos = %strpos($tagStereo, \"_boundary\")"," !if ($pos > 0)"," !$isBoundary = 1"," !$tagEntry = $tagEntry + \" \" + $LEGEND_BOUNDARY_PRE_PART + %substr($tagStereo, 0 ,$pos) + $LEGEND_BOUNDARY_POST_PART + \" \""," !endif"," !endif"," !endif"," !if ($isBoundary == 0)"," !$tagEntry = $tagEntry + \" \" + $tagStereo + \" \""," !endif",""," !if ($isBoundary == 1 && ($bgColor == \"#00000000\" || %lower($bgColor) == \"transparent\"))"," !$tagDetails = $tagDetails + $LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA"," !endif"," !if ($shadowing == \"true\")"," !$tagDetails = $tagDetails + $LEGEND_SHADOW_TEXT + \", \""," !endif"," !if ($shadowing == \"false\")"," !$tagDetails = $tagDetails + $LEGEND_NO_SHADOW_TEXT + \", \""," !endif"," !if ($shape == $SHARP_CORNER && $shape != $DEFAULT_SHAPE)"," !$tagDetails = $tagDetails + $LEGEND_SHARP_CORNER + \", \""," !endif"," !if ($shape == $ROUNDED_BOX && $shape != $DEFAULT_SHAPE)"," !$tagDetails = $tagDetails + $LEGEND_ROUNDED_BOX + \", \""," !endif"," !if ($shape == $EIGHT_SIDED && $shape != $DEFAULT_SHAPE)"," !$tagDetails = $tagDetails + $LEGEND_EIGHT_SIDED + \", \""," !endif"," !if ($fontColor == \"\" && $bgColor == \"\")"," !$tagDetails = $tagDetails + $LEGEND_NO_FONT_BG_TEXT + \", \""," !else"," !if ($fontColor == \"\")"," !$tagDetails = $tagDetails + $LEGEND_NO_FONT_TEXT + \", \""," !endif"," !if ($bgColor == \"\")"," !$tagDetails = $tagDetails + $LEGEND_NO_BG_TEXT + \", \""," !endif"," !endif"," !if ($borderStyle != \"\")"," !if ($borderStyle == $DOTTED_LINE)"," !$tagDetails = $tagDetails + $LEGEND_DOTTED_LINE + \", \""," !elseif ($borderStyle == $DASHED_LINE)"," !if ($isBoundary == 1)"," !$tagDetails = $tagDetails + $LEGEND_BOUNDARY_DASHED_INCL_COMA"," !else"," !$tagDetails = $tagDetails + $LEGEND_DASHED_LINE + \", \""," !endif"," !elseif ($borderStyle == $BOLD_LINE)"," !$tagDetails = $tagDetails + $LEGEND_BOLD_LINE + \", \""," !elseif ($borderStyle == $SOLID_LINE)"," !$tagDetails = $tagDetails + $LEGEND_SOLID_LINE + \", \""," !else"," !$tagDetails = $tagDetails + $borderStyle + \", \""," !endif"," !endif"," !if ($borderThickness != \"\")"," !$tagDetails = $tagDetails + $LEGEND_THICKNESS + \" \" + $borderThickness + \", \""," !endif"," !if ($tagDetails==\"(\" || $tagDetails==\"(, \")"," !$tagDetails = \"</size>\""," !else"," !$tagDetails = %substr($tagDetails, 0, %strlen($tagDetails)-2)"," !$tagDetails = $tagDetails + \")</size>\""," !endif"," !else"," !$brPos = %strpos($legendText, \"\\n\")"," !if ($brPos > 0)"," !$tagEntry = $tagEntry + %substr($legendText, 0, $brPos) + \" \""," !$details = %substr($legendText, $brPos + 2)"," !if ($details==\"\")"," !$tagDetails = \"</size>\""," !else"," !$tagDetails = $tagDetails + $details + \")</size>\""," !endif"," !else"," !$tagEntry = $tagEntry + \" \" + $legendText + \" \""," !$tagDetails = \"</size>\""," !endif"," !endif",""," !$tagDetails = $tagDetails + \"</color> \""," !$tagDetails = $tagDetails + \"|\"","%set_variable_value(\"$\" + $tagStereo + \"LegendEntry\", $tagEntry)","%set_variable_value(\"$\" + $tagStereo + \"LegendDetails\", $tagDetails)"," !return $tagEntry","!endfunction","","!function $setTagRelLegendVariables($tagStereo, $textColor, $lineColor, $lineStyle, $legendText, $legendSprite, $lineThickness)"," !$tc = $textColor"," !$lc = $lineColor",""," !if ($tc == \"\")"," !if ($PlantUMLSupportsDynamicLegendColor)"," !$tc = $flatLegend($ARROW_FONT_COLOR)"," !else"," !$tc = $LEGEND_DARK_COLOR"," !endif"," !endif"," !if ($lc == \"\")"," !if ($PlantUMLSupportsDynamicLegendColor)"," !$lc = $flatLegend($ARROW_COLOR)"," !else"," !$lc = $LEGEND_DARK_COLOR"," !endif"," !endif",""," !$tagEntry = \"|\""," !$tagDetails = \"(\""," ' <U+2500> ..white line"," !$tagEntry = $tagEntry + \"<color:\"+$lc+\"> <U+2500></color> \""," !$tagEntry = $tagEntry + \"<color:\"+$tc+\">\""," !if ($legendSprite != \"\")"," !$tagEntry = $tagEntry + $getSprite($legendSprite) + \" \""," !endif"," !if ($legendText == \"\")"," !$tagEntry = $tagEntry + \" \" + $tagStereo + \" \""," !if ($textColor == \"\")"," !$tagDetails = $tagDetails + $LEGEND_NO_FONT_TEXT + \", \""," !endif"," !if ($lineColor == \"\")"," !$tagDetails = $tagDetails + $LEGEND_NO_LINE_TEXT + \", \""," !endif"," !if ($lineStyle != \"\")"," !if ($lineStyle == $DOTTED_LINE)"," !$tagDetails = $tagDetails + $LEGEND_DOTTED_LINE + \", \""," !elseif ($lineStyle == $DASHED_LINE)"," !$tagDetails = $tagDetails + $LEGEND_DASHED_LINE + \", \""," !elseif ($lineStyle == $BOLD_LINE)"," !$tagDetails = $tagDetails + $LEGEND_BOLD_LINE + \", \""," !else"," !$tagDetails = $tagDetails + $lineStyle + \", \""," !endif"," !endif"," !if ($lineThickness != \"\")"," !$tagDetails = $tagDetails + $LEGEND_THICKNESS + \" \" + $lineThickness + \", \""," !endif"," !if ($tagDetails==\"(\")"," !$tagDetails = \"</size>\""," !else"," !$tagDetails = %substr($tagDetails, 0, %strlen($tagDetails)-2)"," !$tagDetails = $tagDetails + \")</size>\""," !endif"," !else"," !$brPos = %strpos($legendText, \"\\n\")"," !if ($brPos > 0)"," !$tagEntry = $tagEntry + \" \" + %substr($legendText, 0, $brPos) + \" \""," !$details = %substr($legendText, $brPos + 2)"," !if ($details==\"\")"," !$tagDetails = \"</size>\""," !else"," !$tagDetails = $tagDetails + $details + \")</size>\""," !endif"," !else"," !$tagEntry = $tagEntry + \" \" + $legendText + \" \""," !$tagDetails = \"</size>\""," !endif"," !endif",""," !$tagDetails = $tagDetails + \"</color> \""," !$tagDetails = $tagDetails + \"|\"","%set_variable_value(\"$\" + $tagStereo + \"_LineLegendEntry\", $tagEntry)","%set_variable_value(\"$\" + $tagStereo + \"_LineLegendDetails\", $tagDetails)"," !return $tagEntry","!endfunction","","!unquoted procedure $addTagToLegend($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")","'' if a combined element tag is defined (e.g. \"v1.0&v1.1\") then it is typically a merged color,","'' like a new $fontColor=\"#fdae61\" therefore it should be added to the legend","'' and the & combined tags will be not removed","' !if (%strpos($tagStereo, \"&\") < 0)"," !$dummyAlreadyVariables = $setTagLegendVariables($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $legendText, $legendSprite, $borderStyle, $borderThickness)"," !$tagCustomLegend = $tagCustomLegend + $tagStereo + \"\\n\""," !$tagMask = $tagLegendMask( $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $borderStyle, $borderThickness)","%set_variable_value(\"$\" + $tagStereo + \"LegendMask\", $tagMask)","' !endif","!endprocedure","","!unquoted procedure $addRelTagToLegend($tagStereo, $textColor=\"\", $lineColor=\"\", $lineStyle=\"\", $legendText=\"\", $legendSprite=\"\", $lineThickness=\"\")","'' Arrows have a bug with stereotype/skinparams and cannot combine text colors of one stereotype","'' and the line color of another stereotype. Therefore the text color of one tag and the line color","'' of another tag have to be combined via a \"workaround\" tag (\"v1.0&v1.1\").","'' This workaround tag could be theoretically removed in the legend but after that there would","'' be an inconsistency between the element tags and the rel tags and therefore","'' & combined workaround tags are not removed too (and in unlikely cases the color itself could be changed)","' !if (%strpos($tagStereo, \"&\") < 0)"," !$dummyAlreadyVariables = $setTagRelLegendVariables($tagStereo, $textColor, $lineColor, $lineStyle, $legendText, $legendSprite, $lineThickness)"," !$tagCustomLegend = $tagCustomLegend + $tagStereo + \"_Line\\n\"","' !endif","!endprocedure","","!procedure $showActiveLegendEntries($allDefined)"," !$brPos = %strpos($allDefined, \"\\n\")"," !while ($brPos >= 0)"," !$tagStereo = %substr($allDefined, 0, $brPos)"," !$allDefined = %substr($allDefined, $brPos+2)"," !$brPos = %strpos($allDefined, \"\\n\")"," !if (%variable_exists(\"$\" + $tagStereo + \"Legend\"))"," ' </size> is part of legendDetails"," !$part1 = %get_variable_value(\"$\" + $tagStereo + \"LegendEntry\")"," !$partSize = \"<size:\" + $LEGEND_DETAILS_SIZE + \">\""," !$part2 = %get_variable_value(\"$\" + $tagStereo + \"LegendDetails\")"," !$line = $part1 + $partSize + $part2","$line"," !endif"," !endwhile"," !if (%strlen($allDefined) > 0)"," !$tagStereo = $allDefined"," !if (%variable_exists(\"$\" + $tagStereo + \"Legend\"))"," ' </size> is part of legendDetails"," !$part1 = %get_variable_value(\"$\" + $tagStereo + \"LegendEntry\")"," !$partSize = \"<size:\" + $LEGEND_DETAILS_SIZE + \">\""," !$part2 = %get_variable_value(\"$\" + $tagStereo + \"LegendDetails\")"," !$line = $part1 + $partSize + $part2","$line"," !endif"," !endif","!endprocedure","","' normal rectangle","!function SharpCornerShape()","!return $SHARP_CORNER","!endfunction","","!function RoundedBoxShape()","!return $ROUNDED_BOX","!endfunction","","!function EightSidedShape()","!return $EIGHT_SIDED","!endfunction","","!function DottedLine()","!return $DOTTED_LINE","!endfunction","","!function DashedLine()","!return $DASHED_LINE","!endfunction","","!function BoldLine()","!return $BOLD_LINE","!endfunction","","!function SolidLine()","!return $SOLID_LINE","!endfunction","","' used by new defined tags","!unquoted procedure AddElementTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")","","!if (NEW_C4_STYLE == 1)"," !$swap=$bgColor"," !$bgColor=$fontColor"," !$fontColor=$swap","!endif","","$defineSkinparams($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $borderStyle, $borderThickness)"," !if ($sprite!=\"\")","%set_variable_value(\"$\" + $tagStereo + \"ElementTagSprite\", $sprite)"," !if ($legendSprite == \"\")"," !$legendSprite = $smallVersionSprite($sprite)"," !endif"," !endif"," !if ($techn != \"\")","%set_variable_value(\"$\" + $tagStereo + \"ElementTagTechn\", $techn)"," !endif","$addTagToLegend($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","!unquoted procedure $addElementTagInclReuse($elementName, $tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")","","'stored tags are already swapped (swap before comparing)","!if (NEW_C4_STYLE == 1)"," !$swap=$bgColor"," !$bgColor=$fontColor"," !$fontColor=$swap","!endif",""," !$bgColor=$restoreEmpty($elementName, \"bgColor\", $bgColor, %false())"," !$fontColor=$restoreEmpty($elementName, \"fontColor\", $fontColor, %false())"," !$borderColor=$restoreEmpty($elementName, \"borderColor\", $borderColor, %false())"," !$shadowing=$restoreEmpty($elementName, \"shadowing\", $shadowing, %false())"," !$shape=$restoreEmpty($elementName, \"shape\", $shape, %false())"," !$sprite=$restoreEmpty($elementName, \"sprite\", $sprite, %false())"," !$techn=$restoreEmpty($elementName, \"techn\", $techn, %false())"," ' new style should has its own legend text"," ' !$legendText=$restoreEmpty($elementName, \"legendText\", $legendText, %false())"," !$legendSprite=$restoreEmpty($elementName, \"legendSprite\", $legendSprite, %false())"," !$borderStyle=$restoreEmpty($elementName, \"borderStyle\", $borderStyle, %false())"," !$borderThickness=$restoreEmpty($elementName, \"borderThickness\", $borderThickness, %false())","","' swap back","!if (NEW_C4_STYLE == 1)"," !$swap=$bgColor"," !$bgColor=$fontColor"," !$fontColor=$swap","!endif",""," AddElementTag($tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $techn, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","' used by new defined rel tags","!unquoted procedure AddRelTag($tagStereo, $textColor=\"\", $lineColor=\"\", $lineStyle=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $lineThickness=\"\")","$defineRelSkinparams($tagStereo, $textColor, $lineColor, $lineStyle, $lineThickness)"," !if ($sprite != \"\")","%set_variable_value(\"$\" + $tagStereo + \"RelTagSprite\", $sprite)"," !if ($legendSprite == \"\")"," ' relation symbols typically 1:1 no additional scale required"," !$legendSprite = $sprite"," !endif"," !endif"," !if ($techn != \"\")","%set_variable_value(\"$\" + $tagStereo + \"RelTagTechn\", $techn)"," !endif","$addRelTagToLegend($tagStereo, $textColor, $lineColor, $lineStyle, $legendText, $legendSprite, $lineThickness)","!endprocedure","","' update the style of existing elements like person, ...","!unquoted procedure UpdateElementStyle($elementName, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")","","!if (NEW_C4_STYLE == 1)"," !$swap=$bgColor"," !$bgColor=$fontColor"," !$fontColor=$swap","!endif","","!$bgColor=$restoreEmpty($elementName, \"bgColor\", $bgColor, %true())","!$fontColor=$restoreEmpty($elementName, \"fontColor\", $fontColor, %true())","!$borderColor=$restoreEmpty($elementName, \"borderColor\", $borderColor, %true())","!$shadowing=$restoreEmpty($elementName, \"shadowing\", $shadowing, %true())","!$shape=$restoreEmpty($elementName, \"shape\", $shape, %true())","!$sprite=$restoreEmpty($elementName, \"sprite\", $sprite, %true())","!$techn=$restoreEmpty($elementName, \"techn\", $techn, %true())","!$legendText=$restoreEmpty($elementName, \"legendText\", $legendText, %true())","!$legendSprite=$restoreEmpty($elementName, \"legendSprite\", $legendSprite, %true())","!$borderStyle=$restoreEmpty($elementName, \"borderStyle\", $borderStyle, %true())","!$borderThickness=$restoreEmpty($elementName, \"borderThickness\", $borderThickness, %true())","","$defineSkinparams($elementName, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $borderStyle, $borderThickness)"," !if ($sprite != \"\")","%set_variable_value(\"$\" + $elementName + \"ElementTagSprite\", $sprite)"," !if ($legendSprite == \"\")"," !$legendSprite = $smallVersionSprite($sprite)"," !endif"," !endif"," !if ($techn != \"\")","%set_variable_value(\"$\" + $elementName + \"ElementTagTechn\", $techn)"," !endif"," !$dummyAlreadyVariables = $setTagLegendVariables($elementName, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $legendText, $legendSprite, $borderStyle, $borderThickness)"," ' default tags sets at least bgColor and fontColor"," !$tagMask = $tagLegendMask(\"CHANGED\", \"CHANGED\", $borderColor, $shadowing, $shape, $sprite, $borderStyle, $borderThickness)","%set_variable_value(\"$\" + $elementName + \"LegendMask\", $tagMask)","!endprocedure","","/' @deprecated in favor of UpdateElementStyle '/","!unquoted procedure UpdateSkinparamsAndLegendEntry($elementName, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\")","UpdateElementStyle($elementName, $bgColor, $fontColor, $borderColor, $shadowing)","!endprocedure","","' update the style of default relation, it has to set both properties (combined statement not working)","!unquoted procedure UpdateRelStyle($textColor, $lineColor)"," !$elementSkin = \"skinparam arrow {\" + $bl()"," !$elementSkin = $elementSkin + \" Color \" + $lineColor + $bl()"," !$elementSkin = $elementSkin + \" FontColor \" + $textColor + $bl()"," !$elementSkin = $elementSkin + \"}\" + $bl()","$elementSkin","!endprocedure","","!unquoted procedure UpdateLegendTitle($newTitle)"," !$LEGEND_TITLE_TEXT = $newTitle","!endprocedure","","' tags/stereotypes have to be delimited with \\n","!unquoted procedure SetDefaultLegendEntries($tagStereoEntries)"," !$tagDefaultLegend = $tagStereoEntries","!endprocedure","","' Links","' ##################################","","!function $getLink($link)"," !if ($link != \"\")"," !return \"[[\" + $link + \"]]\""," !else"," !return \"\""," !endif","!endfunction","","' Line breaks","' ##################################","","!unquoted function $breakText($text, $usedNewLine, $widthStr=\"-1\")","!$width = %intval($widthStr)","!$multiLine = \"\"","!if (%strpos($text, \"\\n\") >= 0)"," !while (%strpos($text, \"\\n\") >= 0)"," !$brPos = %strpos($text, \"\\n\")"," !if ($brPos > 0)"," !$multiLine = $multiLine + %substr($text, 0, $brPos) + $usedNewLine"," !else"," ' <U+00A0> non breaking change that newLine breaks with formats can be used with \\n\\n"," !$multiLine = $multiLine + \"<U+00A0>\" + $usedNewLine"," !endif"," !$text = %substr($text, $brPos+2)"," !if (%strlen($text) == 0)"," !$text = \"<U+00A0>\""," !endif"," !endwhile","!else"," !while ($width>0 && %strlen($text) > $width)"," !$brPos = $width"," !while ($brPos > 0 && %substr($text, $brPos, 1) != ' ')"," !$brPos = $brPos - 1"," !endwhile",""," !if ($brPos < 1)"," !$brPos = %strpos($text, \" \")"," !else"," !endif",""," !if ($brPos > 0)"," !$multiLine = $multiLine + %substr($text, 0, $brPos) + $usedNewLine"," !$text = %substr($text, $brPos + 1)"," !else"," !$multiLine = $multiLine+ $text"," !$text = \"\""," !endif"," !endwhile","!endif","!if (%strlen($text) > 0)"," !$multiLine = $multiLine + $text","!endif","!return $multiLine","!endfunction","","!unquoted function $breakLabel($text)","!$usedNewLine = \"\\n== \"","!$multiLine = $breakText($text, $usedNewLine)","!return $multiLine","!endfunction","","!unquoted function $breakDescr($text, $widthStr)"," !$usedNewLine = \"\\n\""," !return $breakText($text, $usedNewLine, $widthStr)","!endfunction","","' $breakTechn() supports //...//; $breakNode() in C4_Deployment supports no //....//","!unquoted function $breakTechn($text, $widthStr)"," !$usedNewLine = '</size>//\\n//<size:'+$TECHN_FONT_SIZE+'>'"," !return $breakText($text, $usedNewLine, $widthStr)","!endfunction","","' Element base layout","' ##################################","","!function $getElementBase($label, $techn, $descr, $sprite)"," !$element = \"\""," !if ($sprite != \"\")"," !$element = $element + $getSprite($sprite)"," !if ($label != \"\")"," !$element = $element + '\\n'"," !endif"," !endif"," !if ($label != \"\")"," !$element = $element + '== ' + $breakLabel($label)"," !else"," !$element = $element + '<size:0>.</size>'"," !endif"," !if ($techn != \"\")"," !$element = $element + '\\n//<size:' + $TECHN_FONT_SIZE + '>[' + $breakTechn($techn, '-1') + ']</size>//'"," !endif"," !if ($descr != \"\")"," !$element = $element + '\\n\\n' + $descr"," !endif"," !return $element","!endfunction","","!function $getElementLine($umlShape, $elementType, $alias, $label, $techn, $descr, $sprite, $tags, $link)"," !$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", $elementType)"," !$techn=$toElementArg($techn, $tags, \"ElementTagTechn\", $elementType)"," !$baseProp = $getElementBase($label, $techn, $descr, $sprite) + $getProps()"," !$stereo = $toStereos($elementType,$tags)"," !$calcLink = $getLink($link)",""," !$line = $umlShape + \" \" + %chr(34) + $baseProp + %chr(34) +\" \" + $stereo + \" as \" + $alias + \" \" + $calcLink"," !return $line","!endfunction","","' Element properties","' ##################################","","' collect all defined properties as table rows","!global $propTable = \"\"","!global $propTableCaption = \"\"","!global $propColCaption = \"=\"","","!global $isFirstProp = 1","!global $firstPropCol = 1","!global $lastPropCol = 1","","!function $fillMissing($col, $colNext)"," !if ($col == \"\" && $colNext != \"\")"," !return \" \""," !endif"," !return $col","!endfunction","","!function $updatePropColumns($colIdx)"," !if ($isFirstProp == 1 && $colIdx > $firstPropCol)"," !$firstPropCol = $colIdx"," !endif"," !if ($isFirstProp == 0 && $colIdx > $lastPropCol)"," !$lastPropCol = $colIdx"," !endif"," !return \"\"","!endfunction","","' add missing header columns, if a following row has more columns","' (fixed in PlantUML v1.2025.1beta9; only required in older versions)","!function $fixHeaderColumns()"," ' the number of displayed columns considers only the first row"," ' if another row has more columns the first has to be filled with missing columns"," !if ($lastPropCol > $firstPropCol)"," !$delta = $lastPropCol - $firstPropCol"," !$delta = $delta * 2"," !$fix = %substr(\" | | | |\", 0, $delta)",""," ' basically the line break \\n should be the split"," ' but \\n is not encoded (anymore?) therefore split only via"," ' \\ and remove the last obsolete \\ (changed order with add"," ' \\ at the beginning is not working)."," ' \"\\n\" would split \\ and n ==> n would be an unwanted line break"," !$lines = %splitstr($propTable, \"\\\")"," ' !$lines = %splitstr_regex($propTable, \"(?=[\\x000A])\")"," !$first = 1"," !$newTab = \"\""," !foreach $item in $lines"," !if ($first == 1)"," !$item = $item + $fix"," !$first = 0"," !endif"," !$newTab = $newTab + $item + \"\\\""," !endfor",""," !$fixLen = %strlen($newTab) - 1"," !$newTab = %substr($newTab, 0, $fixLen)",""," !$propTable = $newTab"," !endif",""," !$isFirstProp = 1"," !$firstPropCol = 1"," !$lastPropCol = 1",""," !return \"\"","!endfunction","","!unquoted function SetPropertyHeader($col1Name, $col2Name = \"\", $col3Name = \"\", $col4Name = \"\")"," !$col3Name = $fillMissing($col3Name, $col4Name)"," !$col2Name = $fillMissing($col2Name, $col3Name)"," !$col1Name = $fillMissing($col1Name, $col2Name)",""," !$propColCaption = \"\""," !$propTableCaption = \"|= \" + $col1Name + \" |\""," !if ($col2Name != \"\")"," !$propTableCaption = $propTableCaption + \"= \" + $col2Name + \" |\""," $updatePropColumns(2)"," !endif"," !if ($col3Name != \"\")"," !$propTableCaption = $propTableCaption + \"= \" + $col3Name + \" |\""," $updatePropColumns(3)"," !endif"," !if ($col4Name != \"\")"," !$propTableCaption = $propTableCaption + \"= \" + $col4Name + \" |\""," $updatePropColumns(4)"," !endif",""," !$isFirstProp = 0"," !return \"\"","!endfunction","","!unquoted function WithoutPropertyHeader()"," !$propTableCaption = \"\""," !$propColCaption = \"=\"",""," !$isFirstProp = 1"," !$firstPropCol = 1"," !$lastPropCol = 1",""," !return \"\"","!endfunction","","!unquoted function AddProperty($col1, $col2 = \"\", $col3 = \"\", $col4 = \"\")"," !$col3 = $fillMissing($col3, $col4)"," !$col2 = $fillMissing($col2, $col3)"," !$col1 = $fillMissing($col1, $col2)",""," !if ($propTable == \"\")"," !if ($propTableCaption != \"\")"," !$propTable = $propTableCaption + \"\\n\""," !endif"," !else"," !$propTable = $propTable + \"\\n\""," !endif",""," !$propTable = $propTable + \"| \" + $col1 + \" |\""," !if ($col2 != \"\")"," !$propTable = $propTable + $propColCaption + \" \" + $col2 + \" |\""," $updatePropColumns(2)"," !endif"," !if ($col3 != \"\")"," !$propTable = $propTable + \" \" + $col3 + \" |\""," $updatePropColumns(3)"," !endif"," !if ($col4 != \"\")"," !$propTable = $propTable + \" \" + $col4 + \" |\""," $updatePropColumns(4)"," !endif",""," !$isFirstProp = 0"," !return \"\"","!endfunction","","!unquoted function $getProps($alignedNL = \"\\n\")"," $fixHeaderColumns()",""," !if ($propTable != \"\")"," !$retTable = $alignedNL + $propTable"," !$propTable = \"\""," !return $retTable"," !endif"," !return \"\"","!endfunction","","!unquoted function $getProps_L()"," !return $getProps(\"\\l\")","!endfunction","","!unquoted function $getProps_R()"," !return $getProps(\"\\r\")","!endfunction","","SetPropertyHeader(\"Property\",\"Value\")","","' Layout","' ##################################","","!function $getLegendDetailsSize($detailsFormat)"," !if $detailsFormat == $LEGEND_DETAILS_NONE"," !$size = 0"," !elseif $detailsFormat == $LEGEND_DETAILS_SMALL"," !$size = $LEGEND_DETAILS_SMALL_SIZE"," !else"," !$size = $LEGEND_DETAILS_NORMAL_SIZE"," !endif"," !return $size","!endfunction","","!procedure $getHideStereotype($hideStereotype)","!if ($hideStereotype == \"true\")","hide stereotype","!endif","!endprocedure","","!procedure $getLegendTable($detailsFormat)","!global $LEGEND_DETAILS_SIZE = $getLegendDetailsSize($detailsFormat)","<$colorWithHash(transparent),$colorWithHash(transparent)>|<color:$LEGEND_TITLE_COLOR>**$LEGEND_TITLE_TEXT **</color> |","$showActiveLegendEntries($tagDefaultLegend)","$showActiveLegendEntries($tagCustomLegend)","!endprocedure","","!procedure $getLegendArea($areaAlias, $hideStereotype, $details)","$getHideStereotype($hideStereotype)","rectangle $areaAlias<<legendArea>> [","$getLegendTable($details)","]","!endprocedure","","!procedure HIDE_STEREOTYPE()","hide stereotype","!endprocedure","","!unquoted procedure SET_SKETCH_STYLE($bgColor=\"_dont_change_\", $fontColor=\"_dont_change_\", $warningColor=\"_dont_change_\", $fontName=\"_dont_change_\", $footerWarning=\"_dont_change_\", $footerText=\"_dont_change_\")","!if $bgColor != \"_dont_change_\""," !global $SKETCH_BG_COLOR = $bgColor","!endif","!if $fontColor != \"_dont_change_\""," !global $SKETCH_FONT_COLOR = $fontColor","!endif","!if $warningColor != \"_dont_change_\""," !global $SKETCH_WARNING_COLOR = $warningColor","!endif","!if $fontName != \"_dont_change_\""," !global $SKETCH_FONT_NAME = $fontName","!endif","!if $footerWarning != \"_dont_change_\""," !global $SKETCH_FOOTER_WARNING = $footerWarning","!endif","!if $footerText != \"_dont_change_\""," !global $SKETCH_FOOTER_TEXT = $footerText","!endif","!endprocedure","","!procedure LAYOUT_AS_SKETCH()","!$counter=0","!foreach $versionPart in %splitstr(%version(), \".\")"," !$counter=$counter+1",""," !if ($counter == 2)"," !$year=$versionPart"," !endif",""," !if ($counter == 3)"," !$minor=$versionPart"," !endif","!endfor","","!if ($year < 2025) || ($year == 2025 && $minor == 0)"," skinparam handwritten true","!else"," !option handwritten true","!endif","","!if $SKETCH_BG_COLOR > \"\""," skinparam backgroundColor $SKETCH_BG_COLOR","!endif","!if $SKETCH_FONT_COLOR > \"\""," skinparam footer {"," FontColor $SKETCH_FONT_COLOR"," }"," !if $ARROW_COLOR == \"#666666\""," !global $ARROW_COLOR = $SKETCH_FONT_COLOR"," !global $ARROW_FONT_COLOR = $SKETCH_FONT_COLOR"," skinparam arrow {"," Color $ARROW_COLOR"," FontColor $ARROW_FONT_COLOR"," }"," !endif"," !if $BOUNDARY_COLOR == \"#444444\""," !global $BOUNDARY_COLOR = $SKETCH_FONT_COLOR"," skinparam rectangle<<boundary>> {"," FontColor $BOUNDARY_COLOR"," BorderColor $BOUNDARY_COLOR"," }"," !endif","!endif","!if $SKETCH_FONT_NAMES > \"\""," skinparam defaultFontName $SKETCH_FONT_NAME","!endif","!if $SKETCH_FOOTER_WARNING > \"\" || $SKETCH_FOOTER_TEXT > \"\""," !$line = \"footer <font color=\" + $SKETCH_WARNING_COLOR + \">\"+ $SKETCH_FOOTER_WARNING + \"</font> \" + $SKETCH_FOOTER_TEXT"," $line","!endif","!endprocedure","","!global $fix_direction=%false()","","!function $down($start,$end)","!if ($fix_direction)","!return $start+\"RIGHT\"+$end","!else","!return $start+\"DOWN\"+$end","!endif","!endfunction","","!function $up($start,$end)","!if ($fix_direction)","!return $start+\"LEFT\"+$end","!else","!return $start+\"UP\"+$end","!endif","!endfunction","","!function $left($start,$end)","!if ($fix_direction)","!return $start+\"UP\"+$end","!else","!return $start+\"LEFT\"+$end","!endif","!endfunction","","!function $right($start,$end)","!if ($fix_direction)","!return $start+\"DOWN\"+$end","!else","!return $start+\"RIGHT\"+$end","!endif","!endfunction","","!procedure LAYOUT_TOP_DOWN()","!global $fix_direction=%false()","top to bottom direction","!endprocedure","","!procedure LAYOUT_LEFT_RIGHT()","!global $fix_direction = %false()","left to right direction","!endprocedure","","!procedure LAYOUT_LANDSCAPE()","!global $fix_direction = %true()","left to right direction","!endprocedure","","' legend details can displayed as Normal(), Small(), None()","!function None()","!return $LEGEND_DETAILS_NONE","!endfunction","","!function Normal()","!return $LEGEND_DETAILS_NORMAL","!endfunction","","!function Small()","!return $LEGEND_DETAILS_SMALL","!endfunction","","' has to be last call in diagram","!unquoted procedure SHOW_LEGEND($hideStereotype=\"true\", $details=Small())","$getHideStereotype($hideStereotype)","legend right","$getLegendTable($details)","endlegend","!endprocedure","","/' @deprecated in favor of SHOW_LEGEND '/","!unquoted procedure SHOW_DYNAMIC_LEGEND($hideStereotype=\"true\")","SHOW_LEGEND($hideStereotype)","!endprocedure","","' legend is reserved and cannot be uses as alias of SHOW_FLOATING_LEGEND() therefore","' LEGEND() is introduced. It returns the default name of the floating alias \"floating_legend_alias\"","' and can be used in the Lay_Distance() calls","!function LEGEND()","!return \"floating_legend_alias\"","!endfunction","","' enables that legend can be located in drawing area of the diagram. It has to be last call in diagram followed by Lay_Distance()","!unquoted procedure SHOW_FLOATING_LEGEND($alias=LEGEND(), $hideStereotype=\"true\", $details=Small())","$getLegendArea($alias, $hideStereotype, $details)","!endprocedure","","' Boundaries","' ##################################","","!unquoted procedure UpdateBoundaryStyle($elementName=\"\", $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $type=\"\", $legendText=\"\", $borderStyle=\"\", $borderThickness=\"\", $sprite=\"\", $legendSprite=\"\")","","!if (NEW_C4_STYLE == 1)"," !$swap=$bgColor"," !$bgColor=$fontColor"," !$fontColor=$swap","!endif",""," !if ($elementName != \"\")"," !$elementBoundary = $elementName + '_boundary'"," UpdateElementStyle($elementBoundary, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)"," !else"," UpdateElementStyle(\"boundary\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)"," ' simulate color inheritance"," UpdateBoundaryStyle(\"enterprise\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, \"Enterprise\", \"\", $borderStyle, $borderThickness, $sprite, $legendSprite)"," UpdateBoundaryStyle(\"system\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, \"System\", \"\", $borderStyle, $borderThickness, $sprite, $legendSprite)"," UpdateBoundaryStyle(\"container\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, \"Container\", \"\", $borderStyle, $borderThickness, $sprite, $legendSprite)"," !endif","!endprocedure","","!unquoted procedure AddBoundaryTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $type=\"\", $legendText=\"\", $borderStyle=\"\", $borderThickness=\"\", $sprite=\"\", $legendSprite=\"\")"," !$tagBoundary = $tagStereo + '_boundary'"," AddElementTag($tagBoundary, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","' add _boundary to all tags that short tag version can be used","!unquoted function $addBoundaryPostfix($tags)"," !if (%strlen($tags) == 0)"," !return ''"," !endif"," !$boundaryTags = ''"," !$brPos = %strpos($tags, \"+\")"," !while ($brPos >= 0)"," !$tag = %substr($tags, 0, $brPos)"," !$boundaryTags = $boundaryTags + $tag + '_boundary+'"," !$tags = %substr($tags, $brPos+1)"," !$brPos = %strpos($tags, \"+\")"," !endwhile"," !if (%strlen($tags) > 0)"," !$boundaryTags = $boundaryTags + $tags + '_boundary'"," !endif"," !return $boundaryTags","!endfunction","","!function $getBoundary($label, $type, $descr, $sprite)"," !$line = '== '"," !if ($sprite != \"\")"," ' add sprite in label line that it is more compact"," !$line = $line + $getSprite($smallVersionSprite($sprite, $BOUNDARY_IMAGE_SIZE_FACTOR)) + ' '"," !endif"," !$line = $line + $breakLabel($label)"," !if ($type != \"\")"," !$line = $line + '\\n<size:' + $TECHN_FONT_SIZE + '>[' + $type + ']</size>'"," !endif"," !if ($descr != \"\")"," !$line = $line + '\\n\\n' + $breakDescr($descr, $BOUNDARY_DESCR_MAX_CHAR_WIDTH)"," !endif"," !return $line","!endfunction","","!unquoted procedure Boundary($alias, $label, $type=\"\", $tags=\"\", $link=\"\", $descr = \"\")","!$boundaryTags = $addBoundaryPostfix($tags)","' boundary $type reuses $techn definition of $boundaryTags","!$type=$toElementArg($type, $boundaryTags, \"ElementTagTechn\", \"boundary\")","!$sprite=$toElementArg(\"\", $boundaryTags, \"ElementTagSprite\", \"boundary\")","rectangle \"$getBoundary($label, $type, $descr, $sprite)\" $toStereos(\"boundary\", $boundaryTags) as $alias $getLink($link)","!endprocedure","","' Boundary Styling","UpdateBoundaryStyle(\"\", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR, $borderStyle=DashedLine(), $legendText=\"$BOUNDARY_LEGEND_TEXT\")","","' Index","' ##################################","","' Dynamic/Sequence diagram supports (automatically) numbered interactions:","' preferred function calls","' (Uppercase) LastIndex(): return the last used index (function which can be used as argument)","' (Uppercase) Index($offset=1): returns current index and calculates next index (function which can be used as argument)","' (Uppercase) SetIndex($new_index): returns new set index and calculates next index (function which can be used as argument)","","' old procedures calls","' (lowercase) increment($offset=1): increase current index (procedure which has no direct output)","' (lowercase) setIndex($new_index): set the new index (procedure which has no direct output)","","!$lastIndex = 0","!$index = 1","","!procedure increment($offset=1)"," !$lastIndex = $index"," !$index = $index + $offset","!endprocedure","","!procedure setIndex($new_index)"," !$lastIndex = $index"," !$index = $new_index","!endprocedure","","!function Index($offset=1)"," !$lastIndex = $index"," !$index = $lastIndex + $offset"," !return $lastIndex","!endfunction","","!function LastIndex()"," !return $lastIndex","!endfunction","","!function SetIndex($new_index, $offset=1)"," !$lastIndex = $new_index"," !$index = $new_index + $offset"," !return $lastIndex","!endfunction","","!unquoted function $getPrefix($index)"," !if ($index == \"\")"," !$pre = Index() + \": \""," !else"," !$pre = $index + \": \""," !endif"," !return $pre","!endfunction","","' Relationship","' ##################################","","!function $getRel($direction, $alias1, $alias2, $label, $techn, $descr, $sprite, $tags, $link)"," !$sprite = $toRelArg($sprite, $tags, \"RelTagSprite\")"," !$techn = $toRelArg($techn, $tags, \"RelTagTechn\")"," !$rel = $alias1 + ' ' + $direction + ' ' + $alias2"," !if ($tags != \"\")"," !$rel = $rel + ' ' + $toStereos($tags)"," !endif"," !$rel = $rel + ' : '"," !if ($link != \"\")"," !$rel = $rel + '**[[' + $link + ' '"," !endif"," !if ($sprite != \"\")"," !$rel = $rel + $getSprite($sprite)"," !if ($label != \"\")"," !$rel = $rel + ' '"," !endif"," !endif"," !if ($link != \"\")"," !$usedNewLine = ']]**\\n**[[' + $link + ' '"," ' if sprite and label is empty than the link url is shown (otherwise link cannot be activated at all)"," !$rel = $rel + $breakText($label, $usedNewLine) + ']]**'"," !else"," !if ($label != \"\")"," !$usedNewLine = '**\\n**'"," !$rel = $rel + '**' + $breakText($label, $usedNewLine) + '**'"," !else"," !$rel = $rel + '<size:0>.</size>'"," !endif"," !endif"," !if ($techn != \"\")"," ' line break is not deterministic, calculate it"," !$rel = $rel + '\\n//<size:' + $TECHN_FONT_SIZE + '>[' + $breakTechn($techn, $REL_TECHN_MAX_CHAR_WIDTH) + ']</size>//'"," !endif"," !if ($descr != \"\")"," ' line break is not deterministic, calculate it"," !$rel = $rel + '\\n\\n' + $breakDescr($descr, $REL_DESCR_MAX_CHAR_WIDTH)"," !endif"," !$prop = $getProps()"," !if ($prop != \"\")"," ' reuse table"," !$rel = $rel + $prop"," !endif"," !return $rel","!endfunction","","!unquoted procedure Rel_($alias1, $alias2, $label, $direction)","$getRel($direction, $alias1, $alias2, $label, \"\", \"\", \"\", \"\", \"\")","!endprocedure","!unquoted procedure Rel_($alias1, $alias2, $label, $techn, $direction)","$getRel($direction, $alias1, $alias2, $label, $techn, \"\", \"\", \"\", \"\")","!endprocedure","","!unquoted procedure Rel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"-->>\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<-->>\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Back($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<--\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"->>\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<->>\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Back_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<-\", $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_D($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Down($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel_D($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure BiRel_Down($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_U($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Up($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel_U($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure BiRel_Up($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_L($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Left($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel_L($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure BiRel_Left($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_R($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Right($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure BiRel_R($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure BiRel_Right($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"<<-\",\"->>\"), $from, $to, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","' Layout Helpers","' ##################################","","!function $getHiddenLine($distance)"," !return '-[hidden]' + %substr('------------', 0, %intval($distance) + 1)","!endfunction","","!function $l_down($start,$end)"," !if (NO_LAY_ROTATE == 0)"," !return $down($start,$end)"," !else"," !return $start+\"DOWN\"+$end"," !endif","!endfunction","","!function $l_up($start,$end)"," !if (NO_LAY_ROTATE == 0)"," !return $up($start,$end)"," !else"," !return $start+\"UP\"+$end"," !endif","!endfunction","","!function $l_left($start,$end)"," !if (NO_LAY_ROTATE == 0)"," !return $left($start,$end)"," !else"," !return $start+\"LEFT\"+$end"," !endif","!endfunction","","!function $l_right($start,$end)"," !if (NO_LAY_ROTATE == 0)"," !return $right($start,$end)"," !else"," !return $start+\"RIGHT\"+$end"," !endif","!endfunction","","!unquoted procedure Lay_D($from, $to)","$from $l_down(\"-[hidden]\",\"-\") $to","!endprocedure","!unquoted procedure Lay_Down($from, $to)","$from $l_down(\"-[hidden]\",\"-\") $to","!endprocedure","","!unquoted procedure Lay_U($from, $to)","$from $l_up(\"-[hidden]\",\"-\") $to","!endprocedure","!unquoted procedure Lay_Up($from, $to)","$from $l_up(\"-[hidden]\",\"-\") $to","!endprocedure","","!unquoted procedure Lay_R($from, $to)","$from $l_right(\"-[hidden]\",\"-\") $to","!endprocedure","!unquoted procedure Lay_Right($from, $to)","$from $l_right(\"-[hidden]\",\"-\") $to","!endprocedure","","!unquoted procedure Lay_L($from, $to)","$from $l_left(\"-[hidden]\",\"-\") $to","!endprocedure","!unquoted procedure Lay_Left($from, $to)","$from $l_left(\"-[hidden]\",\"-\") $to","!endprocedure","","' PlantUML bug: lines which does \"not match\" with the orientation/direction of the diagram","' use the same length therefore the method offers no direction at all.","' If a direction is required the Lay_...() methods can be used","!unquoted procedure Lay_Distance($from, $to, $distance=\"0\")","$from $getHiddenLine($distance) $to","!endprocedure",""];
11
+ P["c4_component"] = P["c4_component.puml"] = ["!include <C4/C4_Container>","","' Scope: A single container.","' Primary elements: Components within the container in scope.","' Supporting elements: Containers (within the software system in scope) plus people and software systems directly connected to the components.","' Intended audience: Software architects and developers.","","' Colors","' ##################################","","!$COMPONENT_FONT_COLOR ?= \"#000000\"","!$COMPONENT_BG_COLOR ?= \"#85BBF0\"","!$COMPONENT_BORDER_COLOR ?= \"#78A8D8\"","","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"external component\"","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR","!$EXTERNAL_COMPONENT_BG_COLOR ?= \"#CCCCCC\"","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= \"#BFBFBF\"","","' New C4 style automatically swaps font and background colors, but with those settings the component/node background would be black.","' Therefore the colors should be displayed unchanged (the init colors have to be swapped too).","!$NEW_C4_USE_ORIGINAL_COMPONENT_COLORS ?= 1","!$componentColorsSwappedAlready ?= 0","!if (NEW_C4_STYLE == 1 && $NEW_C4_USE_ORIGINAL_COMPONENT_COLORS == 1 && $componentColorsSwappedAlready == 0)"," !$swap=$COMPONENT_BG_COLOR"," !$COMPONENT_BG_COLOR=$COMPONENT_FONT_COLOR"," !$COMPONENT_FONT_COLOR=$swap"," !$swap=$EXTERNAL_COMPONENT_BG_COLOR"," !$EXTERNAL_COMPONENT_BG_COLOR=$EXTERNAL_COMPONENT_FONT_COLOR"," !$EXTERNAL_COMPONENT_FONT_COLOR=$swap"," ' don't swap them again below if C4_... included again"," !$componentColorsSwappedAlready=1","!endif","","' Labels","' ##################################","","!$COMPONENT_LEGEND_TEXT ?= \"component\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"external component\"","","' Styling","' ##################################","","UpdateElementStyle(\"component\", $COMPONENT_BG_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$COMPONENT_LEGEND_TEXT\")","UpdateElementStyle(\"external_component\", $EXTERNAL_COMPONENT_BG_COLOR, $EXTERNAL_COMPONENT_FONT_COLOR, $EXTERNAL_COMPONENT_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$EXTERNAL_COMPONENT_LEGEND_TEXT\")","","' shortcuts with default colors","!unquoted procedure AddComponentTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"component\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $techn, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","!unquoted procedure AddExternalComponentTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"external_component\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $techn, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","' Layout","' ##################################","","SetDefaultLegendEntries(\"person\\nsystem\\ncontainer\\ncomponent\\nexternal_person\\nexternal_system\\nexternal_container\\nexternal_component\\nenterprise_boundary\\nsystem_boundary\\ncontainer_boundary\\nboundary\")","","!procedure LAYOUT_WITH_LEGEND()","hide stereotype","legend right","|<color:$LEGEND_TITLE_COLOR>**Legend**</color> |","|<$PERSON_BG_COLOR> person |","|<$SYSTEM_BG_COLOR> system |","|<$CONTAINER_BG_COLOR> container |","|<$COMPONENT_BG_COLOR> component |","|<$EXTERNAL_PERSON_BG_COLOR> external person |","|<$EXTERNAL_SYSTEM_BG_COLOR> external system |","|<$EXTERNAL_CONTAINER_BG_COLOR> external container |","|<$EXTERNAL_COMPONENT_BG_COLOR> external component |","endlegend","!endprocedure","","' Elements","' ##################################","","!unquoted procedure Component($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getElementLine($baseShape, \"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentDb($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"database\", \"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentQueue($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"queue\", \"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Component_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getElementLine($baseShape, \"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentDb_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"database\", \"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentQueue_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"queue\", \"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure",""];
12
+ P["c4_container"] = P["c4_container.puml"] = ["!include <C4/C4_Context>","","' Scope: A single software system.","' Primary elements: Containers within the software system in scope.","' Supporting elements: People and software systems directly connected to the containers.","' Intended audience: Technical people inside and outside of the software development team; including software architects, developers and operations/support staff.","","' Colors","' ##################################","","!$CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$CONTAINER_BG_COLOR ?= \"#438DD5\"","!$CONTAINER_BORDER_COLOR ?= \"#3C7FC0\"","","!$CONTAINER_BOUNDARY_COLOR ?= $BOUNDARY_COLOR","!$CONTAINER_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR","!$CONTAINER_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE","","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$EXTERNAL_CONTAINER_BG_COLOR ?= \"#B3B3B3\"","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= \"#A6A6A6\"","","' Labels","' ##################################","","!$CONTAINER_LEGEND_TEXT ?= \"container\"","!$CONTAINER_BOUNDARY_TYPE ?= \"container\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"container boundary\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"external container\"","","' Styling","' ##################################","UpdateElementStyle(\"container\", $CONTAINER_BG_COLOR, $CONTAINER_FONT_COLOR, $CONTAINER_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$CONTAINER_LEGEND_TEXT\")","UpdateElementStyle(\"external_container\", $EXTERNAL_CONTAINER_BG_COLOR, $EXTERNAL_CONTAINER_FONT_COLOR, $EXTERNAL_CONTAINER_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$EXTERNAL_CONTAINER_LEGEND_TEXT\")","","UpdateBoundaryStyle(\"container\", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type=\"$CONTAINER_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE, $legendText=\"$CONTAINER_BOUNDARY_LEGEND_TEXT\")","","' shortcuts with default colors","!unquoted procedure AddContainerTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"container\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $techn, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","!unquoted procedure AddExternalContainerTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $techn=\"\", $legendText=\"\", $legendSprite=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"external_container\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $techn, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","!unquoted procedure UpdateContainerBoundaryStyle($bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $shadowing=\"\", $shape=\"\", $type=\"Container\", $legendText=\"\", $borderStyle=\"\", $borderThickness=\"\", $sprite=\"\", $legendSprite=\"\")"," UpdateBoundaryStyle(\"container\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, $type, $legendText, $borderStyle, $borderThickness, $sprite, $legendSprite)","!endprocedure","","' Layout","' ##################################","","SetDefaultLegendEntries(\"person\\nsystem\\ncontainer\\nexternal_person\\nexternal_system\\nexternal_container\\nenterprise_boundary\\nsystem_boundary\\ncontainer_boundary\\nboundary\")","","!procedure LAYOUT_WITH_LEGEND()","hide stereotype","legend right","|<color:$LEGEND_TITLE_COLOR>**Legend**</color> |","|<$PERSON_BG_COLOR> person |","|<$SYSTEM_BG_COLOR> system |","|<$CONTAINER_BG_COLOR> container |","|<$EXTERNAL_PERSON_BG_COLOR> external person |","|<$EXTERNAL_SYSTEM_BG_COLOR> external system |","|<$EXTERNAL_CONTAINER_BG_COLOR> external container |","endlegend","!endprocedure","","' Elements","' ##################################","","!unquoted procedure Container($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getElementLine($baseShape , \"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerDb($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"database\", \"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerQueue($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"queue\", \"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Container_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getElementLine($baseShape , \"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerDb_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"database\", \"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerQueue_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getElementLine(\"queue\", \"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","' Boundaries","' ##################################","","!unquoted procedure Container_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+container'"," !else"," !$allTags = 'container'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure",""];
13
+ P["c4_context"] = P["c4_context.puml"] = ["!include <C4/C4>","","' Scope: A single software system.","' Primary elements: The software system in scope.","' Supporting elements: People and software systems directly connected to the software system in scope.","' Intended audience: Everybody, both technical and non-technical people, inside and outside of the software development team.","","' Colors","' ##################################","","!$PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$PERSON_BG_COLOR ?= \"#08427B\"","!$PERSON_BORDER_COLOR ?= \"#073B6F\"","","!$EXTERNAL_PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$EXTERNAL_PERSON_BG_COLOR ?= \"#686868\"","!$EXTERNAL_PERSON_BORDER_COLOR ?= \"#8A8A8A\"","","!$SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$SYSTEM_BG_COLOR ?= \"#1168BD\"","!$SYSTEM_BORDER_COLOR ?= \"#3C7FC0\"","","!$SYSTEM_BOUNDARY_COLOR ?= $BOUNDARY_COLOR","!$SYSTEM_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR","!$SYSTEM_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE","","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR","!$EXTERNAL_SYSTEM_BG_COLOR ?= \"#999999\"","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= \"#8A8A8A\"","","!$ENTERPRISE_BOUNDARY_COLOR ?= $BOUNDARY_COLOR","!$ENTERPRISE_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR","!$ENTERPRISE_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE","","' Labels","' ##################################","","!$PERSON_LEGEND_TEXT ?= \"person\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"external person\"","","!$SYSTEM_LEGEND_TEXT ?= \"system\"","!$SYSTEM_BOUNDARY_TYPE ?= \"system\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"system boundary\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"external system\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"enterprise\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"enterprise boundary\"","","' Styling","' ##################################","","UpdateElementStyle(\"person\", $PERSON_BG_COLOR, $PERSON_FONT_COLOR, $PERSON_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$PERSON_LEGEND_TEXT\")","UpdateElementStyle(\"external_person\", $EXTERNAL_PERSON_BG_COLOR, $EXTERNAL_PERSON_FONT_COLOR, $EXTERNAL_PERSON_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$EXTERNAL_PERSON_LEGEND_TEXT\")","UpdateElementStyle(\"system\", $SYSTEM_BG_COLOR, $SYSTEM_FONT_COLOR, $SYSTEM_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$SYSTEM_LEGEND_TEXT\")","UpdateElementStyle(\"external_system\", $EXTERNAL_SYSTEM_BG_COLOR, $EXTERNAL_SYSTEM_FONT_COLOR, $EXTERNAL_SYSTEM_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$EXTERNAL_SYSTEM_LEGEND_TEXT\")","","UpdateBoundaryStyle(\"system\", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type=\"$SYSTEM_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE, $legendText=\"$SYSTEM_BOUNDARY_LEGEND_TEXT\")","UpdateBoundaryStyle(\"enterprise\", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type=\"$ENTERPRISE_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE, $legendText=\"$ENTERPRISE_BOUNDARY_LEGEND_TEXT\")","","' shortcuts with default colors","!unquoted procedure AddPersonTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $legendText=\"\", $legendSprite=\"\", $type=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"person\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","!unquoted procedure AddExternalPersonTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $legendText=\"\", $legendSprite=\"\", $type=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"external_person\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","!unquoted procedure AddSystemTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $legendText=\"\", $legendSprite=\"\", $type=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"system\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","!unquoted procedure AddExternalSystemTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $legendText=\"\", $legendSprite=\"\", $type=\"\", $borderStyle=\"\", $borderThickness=\"\")"," $addElementTagInclReuse(\"external_system\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","!unquoted procedure UpdateEnterpriseBoundaryStyle($bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $shadowing=\"\", $shape=\"\", $type=\"Enterprise\", $legendText=\"\", $borderStyle=\"\", $borderThickness=\"\", $sprite=\"\", $legendSprite=\"\")"," UpdateBoundaryStyle(\"enterprise\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, $type, $legendText, $borderStyle, $borderThickness, $sprite, $legendSprite)","!endprocedure","!unquoted procedure UpdateSystemBoundaryStyle($bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $shadowing=\"\", $shape=\"\", $type=\"System\", $legendText=\"\", $borderStyle=\"\", $borderThickness=\"\", $sprite=\"\", $legendSprite=\"\")"," UpdateBoundaryStyle(\"system\", $bgColor, $fontColor, $borderColor, $shadowing, $shape, $type, $legendText, $borderStyle, $borderThickness, $sprite, $legendSprite)","!endprocedure","","' Sprites","' ##################################","","sprite $person [48x48/16] {","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","0000000000000000000049BCCA7200000000000000000000","0000000000000000006EFFFFFFFFB3000000000000000000","00000000000000001CFFFFFFFFFFFF700000000000000000","0000000000000001EFFFFFFFFFFFFFF80000000000000000","000000000000000CFFFFFFFFFFFFFFFF6000000000000000","000000000000007FFFFFFFFFFFFFFFFFF100000000000000","00000000000001FFFFFFFFFFFFFFFFFFF900000000000000","00000000000006FFFFFFFFFFFFFFFFFFFF00000000000000","0000000000000BFFFFFFFFFFFFFFFFFFFF40000000000000","0000000000000EFFFFFFFFFFFFFFFFFFFF70000000000000","0000000000000FFFFFFFFFFFFFFFFFFFFF80000000000000","0000000000000FFFFFFFFFFFFFFFFFFFFF80000000000000","0000000000000DFFFFFFFFFFFFFFFFFFFF60000000000000","0000000000000AFFFFFFFFFFFFFFFFFFFF40000000000000","00000000000006FFFFFFFFFFFFFFFFFFFE00000000000000","00000000000000EFFFFFFFFFFFFFFFFFF800000000000000","000000000000007FFFFFFFFFFFFFFFFFF100000000000000","000000000000000BFFFFFFFFFFFFFFFF5000000000000000","0000000000000001DFFFFFFFFFFFFFF70000000000000000","00000000000000000BFFFFFFFFFFFF500000000000000000","0000000000000000005DFFFFFFFFA1000000000000000000","0000000000000000000037ABB96100000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000025788300000000005886410000000000000","000000000007DFFFFFFD9643347BFFFFFFFB400000000000","0000000004EFFFFFFFFFFFFFFFFFFFFFFFFFFB1000000000","000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFD200000000","00000006FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE10000000","0000003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0000000","000000BFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5000000","000003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD000000","000009FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF200000","00000DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF600000","00000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF800000","00001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA00000","00001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB00000","00001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB00000","00001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB00000","00001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA00000","00000EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF700000","000006FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE100000","0000008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD3000000","000000014555555555555555555555555555555300000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","}","","sprite $person2 [48x48/16] {","0000000000000000000049BCCA7200000000000000000000","0000000000000000006EFFFFFFFFB3000000000000000000","00000000000000001CFFFFFFFFFFFF700000000000000000","0000000000000001EFFFFFFFFFFFFFF80000000000000000","000000000000000CFFFFFFFFFFFFFFFF6000000000000000","000000000000007FFFFFFFFFFFFFFFFFF100000000000000","00000000000001FFFFFFFFFFFFFFFFFFF900000000000000","00000000000006FFFFFFFFFFFFFFFFFFFF00000000000000","0000000000000BFFFFFFFFFFFFFFFFFFFF40000000000000","0000000000000EFFFFFFFFFFFFFFFFFFFF70000000000000","0000000000000FFFFFFFFFFFFFFFFFFFFF80000000000000","0000000000000FFFFFFFFFFFFFFFFFFFFF80000000000000","0000000000000DFFFFFFFFFFFFFFFFFFFF60000000000000","0000000000000AFFFFFFFFFFFFFFFFFFFF40000000000000","00000000000006FFFFFFFFFFFFFFFFFFFE00000000000000","00000000000000EFFFFFFFFFFFFFFFFFF800000000000000","000000000000007FFFFFFFFFFFFFFFFFF100000000000000","000000000000000BFFFFFFFFFFFFFFFF5000000000000000","0000000000000001DFFFFFFFFFFFFFF70000000000000000","00000000000000000BFFFFFFFFFFFF500000000000000000","0000000000000000005DFFFFFFFFA1000000000000000000","0000000000000000000037ABB96100000000000000000000","000000000002578888300000000005888864100000000000","0000000007DFFFFFFFFD9643347BFFFFFFFFFB4000000000","00000004EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB10000000","0000007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD2000000","000006FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE100000","00003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB00000","0000BFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF50000","0003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0000","0009FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2000","000DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6000","000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB000","001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB000","001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB000","001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA000","000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","000DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6000","0009FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF2000","0003FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFD0000","0000BFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFF50000","00003FFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFB00000","000006FFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFE100000","0000007FFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFD2000000","00000004EFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFB10000000","0000000007DF8FFFFFFFFFFFFFFFFFFFFFF8FB4000000000","000000000002578888888888888888888864100000000000","}","","sprite $robot [48x48/16] {","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000005BFFFFFFFFFFFFFFFFFFFFFE9100000000000","0000000000AFFFFFFFFFFFFFFFFFFFFFFFFFE30000000000","0000000007FFFFFFFFFFFFFFFFFFFFFFFFFFFE1000000000","000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000000000","000000004FFFFFFFFFFFFFFFFFFFFFFFFFFFFFC000000000","000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFD000000000","000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE000000000","000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE000000000","000699405FFFFFFC427FFFFFFFFFC427FFFFFFE009982000","008FFF705FFFFFE10006FFFFFFFE00007FFFFFE00FFFF100","00CFFF705FFFFFA00001FFFFFFF900002FFFFFE00FFFF500","00DFFF705FFFFFB00002FFFFFFFA00003FFFFFE00FFFF500","00DFFF705FFFFFF4000AFFFFFFFF3000BFFFFFE00FFFF500","00DFFF705FFFFFFFA8DFFFFFFFFFFA8DFFFFFFE00FFFF500","00DFFF705FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00FFFF500","00DFFF705FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00FFFF500","00DFFF705FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00FFFF500","00DFFF705FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00FFFF500","00DFFF705FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE00FFFF500","00CFFF705FFFFFF87777777777777777CFFFFFE00FFFF500","008FFF705FFFFFF100000000000000009FFFFFE00FFFF100","000699405FFFFFF76666666666666666CFFFFFE009982000","000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE000000000","000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFE000000000","000000004FFFFFFFFFFFFFFFFFFFFFFFFFFFFFC000000000","000000000EFFFFFFFFFFFFFFFFFFFFFFFFFFFF7000000000","0000000005FFFFFFFFFFFFFFFFFFFFFFFFFFFD0000000000","00000000004CFFFFFFFFFFFFFFFFFFFFFFFF910000000000","000000000000011111111111111111111110000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","000000000000000000000000000000000000000000000000","}","","sprite $robot2 [48x48/16] {","000000000000000088888888888888880000000000000000","000000000000000AFFFFFFFFFFFFFFFFA000000000000000","00000000000000CFFFFFFFFFFFFFFFFFFC00000000000000","00000000000004EFFFFFFFFFFFFFFFFFFE40000000000000","0000000000000AFFFFFFFFFFFFFFFFFFFFA0000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000888FFFFFFFFFFFFFFFFFFFF88800000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000008FF8FFFFFFFFFFFFFFFFFFFF8FF80000000000","00000000000888FFFFFFFFFFFFFFFFFFFF88800000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000008FFFFFFFFFFFFFFFFFFFF80000000000000","00000000000004CFFFFFFFFFFFFFFFFFFC40000000000000","000000488888848CFFFFFFFFFFFFFFFFC848888884000000","00000CFFFFFFFFC888888888888888888CFFFFFFFFC00000","00008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80000","0000CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8000","0008FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF8000","0008FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF8000","0008FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF8000","0008FFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFF8000","0000CFFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFFC0000","00008FFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFF80000","00000CFFFFFF8FFFFFFFFFFFFFFFFFFFFFF8FFFFFFC00000","000000488887578888888888888888888864688884000000","000000000000000000000000000000000000000000000000","}","","' Layout","' ##################################","","SetDefaultLegendEntries(\"person\\nsystem\\nexternal_person\\nexternal_system\\nenterprise_boundary\\nsystem_boundary\\nboundary\")","","!procedure LAYOUT_WITH_LEGEND()","hide stereotype","legend right","|<color:$LEGEND_TITLE_COLOR>**Legend**</color> |","|<$PERSON_BG_COLOR> person |","|<$SYSTEM_BG_COLOR> system|","|<$EXTERNAL_PERSON_BG_COLOR> external person |","|<$EXTERNAL_SYSTEM_BG_COLOR> external system |","endlegend","!endprocedure","","!global $defaultPersonSprite = \"person\"","!$dummy = $restoreEmpty(\"person\", \"sprite\", $defaultPersonSprite, %true())","UpdateElementStyle(\"person\")","' workaround of plantuml.jar bug - person overwrites external_person setting","!$dummy = $restoreEmpty(\"external_person\", \"sprite\", $defaultPersonSprite, %true())","UpdateElementStyle(\"external_person\")","!global $portraitPerson = \"false\"","","!procedure $clearPersonRestore()"," !$dummy = $clearRestore(\"person\", \"sprite\")"," !$dummy = $clearRestore(\"person\", \"legendSprite\")"," %set_variable_value(\"$\" + \"person\" + \"ElementTagSprite\", \"\")"," UpdateElementStyle(\"person\")"," ' workaround of plantuml.jar bug - person overwrites external_person setting"," !$dummy = $clearRestore(\"external_person\", \"sprite\")"," !$dummy = $clearRestore(\"external_person\", \"legendSprite\")"," %set_variable_value(\"$\" + \"external_person\" + \"ElementTagSprite\", \"\")"," UpdateElementStyle(\"external_person\")","!endprocedure","","!procedure HIDE_PERSON_SPRITE()"," !$defaultPersonSprite = \"\""," !$portraitPerson = \"false\""," $clearPersonRestore()","!endprocedure","","!unquoted procedure SHOW_PERSON_SPRITE($sprite=\"\")"," !if ($sprite == \"\")"," !$defaultPersonSprite = \"person\""," !else"," !$defaultPersonSprite = $sprite"," !endif"," !$dummy = $restoreEmpty(\"person\", \"sprite\", $defaultPersonSprite, %true())"," UpdateElementStyle(\"person\")"," ' workaround of plantuml.jar bug - person overwrites external_person setting"," !$dummy = $restoreEmpty(\"external_person\", \"sprite\", $defaultPersonSprite, %true())"," UpdateElementStyle(\"external_person\")"," !$portraitPerson = \"false\"","!endprocedure","","!unquoted procedure SHOW_PERSON_PORTRAIT()"," !$defaultPersonSprite = \"\""," !$portraitPerson = \"portrait\""," $clearPersonRestore()","!endprocedure","","!unquoted procedure SHOW_PERSON_OUTLINE()"," !$defaultPersonSprite = \"\""," !$portraitPerson = \"outline\""," $clearPersonRestore()","!endprocedure","","' Elements","' ##################################","","!function $getPerson($label, $type, $descr, $sprite)"," !if ($sprite == \"\") && ($defaultPersonSprite != \"\")"," !$sprite = $defaultPersonSprite"," !endif"," !return $getElementBase($label, $type, $descr, $sprite)","!endfunction","","!unquoted procedure Person($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"person\")","' $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"person\")","!if ($portraitPerson == \"portrait\") && ($sprite == \"\")","actor \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"person\", $tags) as $alias $getLink($link)","!elseif ($portraitPerson == \"outline\") && ($sprite == \"\")","person \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"person\", $tags) as $alias $getLink($link)","!else","rectangle \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"person\", $tags) as $alias $getLink($link)","!endif","!endprocedure","","!unquoted procedure Person_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"external_person\")","' $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"external_person\")","!if ($portraitPerson == \"portrait\") && ($sprite == \"\")","actor \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"external_person\", $tags) as $alias $getLink($link)","!elseif ($portraitPerson == \"outline\") && ($sprite == \"\")","person \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"external_person\", $tags) as $alias $getLink($link)","!else","rectangle \"$getPerson($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"external_person\", $tags) as $alias $getLink($link)","!endif","!endprocedure","","!unquoted procedure System($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\", $baseShape=\"rectangle\")"," ' $type reuses $techn definition of $tags"," $getElementLine($baseShape, \"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemDb($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getElementLine(\"database\", \"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemQueue($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getElementLine(\"queue\", \"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure System_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\", $baseShape=\"rectangle\")"," ' $type reuses $techn definition of $tags"," $getElementLine($baseShape , \"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemDb_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getElementLine(\"database\", \"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemQueue_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getElementLine(\"queue\", \"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","' Boundaries","' ##################################","","!unquoted procedure Enterprise_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+enterprise'"," !else"," !$allTags = 'enterprise'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure","","!unquoted procedure System_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+system'"," !else"," !$allTags = 'system'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure",""];
14
+ P["c4_deployment"] = P["c4_deployment.puml"] = ["!include <C4/C4_Container>","","' Colors","' ##################################","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' New C4 style automatically swaps font and background colors, but with those settings the component/node background would be black.","' Therefore the colors should be displayed unchanged (the init colors have to be swapped too).","!$NEW_C4_USE_ORIGINAL_NODE_COLORS ?= 1","!$nodeColorsSwappedAlready ?= 0","!if (NEW_C4_STYLE == 1 && $NEW_C4_USE_ORIGINAL_NODE_COLORS == 1 && $nodeColorsSwappedAlready == 0)"," !$swap=$NODE_BG_COLOR"," !$NODE_BG_COLOR=$NODE_FONT_COLOR"," !$NODE_FONT_COLOR=$swap"," ' don't swap them again below if C4_... included again"," !$nodeColorsSwappedAlready=1","!endif","","' Labels","' ##################################","","!$NODE_LEGEND_TEXT ?= \"node\"","","' Styling","' ##################################","","' PlantUML supports no automatic line breaks of \"PlantUML containers\" (C4 Deployment_Node is a \"PlantUML container\")","' therefore (Deployment_)Node() implements an automatic line break based on spaces (like in all other objects).","' If a $type contains \\n then these are used (and no automatic space based line breaks are done)","' $NODE_TYPE_MAX_CHAR_WIDTH defines the automatic line break position","!$NODE_TYPE_MAX_CHAR_WIDTH ?= 35","!$NODE_DESCR_MAX_CHAR_WIDTH ?= 32","","UpdateElementStyle(\"node\", $bgColor=$NODE_BG_COLOR, $fontColor=$NODE_FONT_COLOR, $borderColor=$NODE_BORDER_COLOR, $shape=$DEFAULT_SHAPE, $legendText=\"$NODE_LEGEND_TEXT\")","skinparam rectangle<<node>> {"," FontStyle normal","}","","' shortcuts with default colors","' node specific: $techn is only used in old scripts, new scripts uses $type ($techn has to remain, it could be called via named argument)","!unquoted procedure AddNodeTag($tagStereo, $bgColor=\"\", $fontColor=\"\", $borderColor=\"\", $shadowing=\"\", $shape=\"\", $sprite=\"\", $type=\"\", $legendText=\"\", $legendSprite=\"\", $techn=\"\", $borderStyle=\"\", $borderThickness=\"\")"," !$type=$type+$techn"," $addElementTagInclReuse(\"node\", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $legendText, $legendSprite, $borderStyle, $borderThickness)","!endprocedure","","' Layout","' ##################################","","' comment if node should not be added to legend. No calculated legend extension required","SetDefaultLegendEntries(\"person\\nsystem\\ncontainer\\nexternal_person\\nexternal_system\\nexternal_container\\nnode\\nenterprise_boundary\\nsystem_boundary\\ncontainer_boundary\\nboundary\")","","' Line breaks","' ##################################","","' $breakTechn() in C4 supports //...//; $breakNode() in C4_Deployment supports no //....//","!unquoted function $breakNode($text, $widthStr)"," !$usedNewLine = '</size>\\n<size:'+$TECHN_FONT_SIZE+'>'"," !return $breakText($text, $usedNewLine, $widthStr)","!endfunction","","' Elements","' ##################################","","!function $getNode($label, $type, $descr, $sprite)"," !$nodeText = \"\""," !if ($sprite != \"\")"," !$nodeText = $nodeText + $getSprite($sprite) + '\\n'"," !endif"," !$nodeText = $nodeText + '== ' + $breakText($label, \"\\n== \")"," !if ($type != \"\")"," !$nodeText = $nodeText + '\\n<size:' + $TECHN_FONT_SIZE + '>[' + $breakNode($type, $NODE_TYPE_MAX_CHAR_WIDTH) + ']</size>'"," !endif"," !if ($descr != \"\")"," !$nodeText = $nodeText + '\\n\\n' + $breakDescr($descr, $NODE_DESCR_MAX_CHAR_WIDTH)"," !endif"," !return $nodeText ","!endfunction","","!function $getNode_L($label, $type, $descr, $sprite)"," !$nodeText = \"\""," !if ($sprite != \"\")"," !$nodeText = $nodeText + $getSprite($sprite) + '\\l'"," !endif"," !$nodeText = $nodeText + '== ' + $breakText($label, \"\\l== \")"," !if ($type != \"\")"," !$nodeText = $nodeText + '\\l<size:' + $TECHN_FONT_SIZE + '>[' + $breakNode($type, $NODE_TYPE_MAX_CHAR_WIDTH) + ']</size>'"," !endif"," !if ($descr != \"\")"," !$nodeText = $nodeText + '\\l\\l' + $breakDescr($descr, $NODE_DESCR_MAX_CHAR_WIDTH)"," !endif"," !return $nodeText ","!endfunction","","!function $getNode_R($label, $type, $descr, $sprite)"," !$nodeText = \"\""," !if ($sprite != \"\")"," !$nodeText = $nodeText + $getSprite($sprite) + '\\r'"," !endif"," !$nodeText = $nodeText + '== ' + $breakText($label, \"\\r== \")"," !if ($type != \"\")"," !$nodeText = $nodeText + '\\r<size:' + $TECHN_FONT_SIZE + '>[' + $breakNode($type, $NODE_TYPE_MAX_CHAR_WIDTH) + ']</size>'"," !endif"," !if ($descr != \"\")"," !$nodeText = $nodeText + '\\r\\r' + $breakDescr($descr, $NODE_DESCR_MAX_CHAR_WIDTH)"," !endif"," !return $nodeText ","!endfunction","","!unquoted procedure Deployment_Node($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure","","!unquoted procedure Deployment_Node_L($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode_L($label, $type, $descr, $sprite)$getProps_L()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure","","!unquoted procedure Deployment_Node_R($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode_R($label, $type, $descr, $sprite)$getProps_R()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure","","!unquoted procedure Node($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode($label, $type, $descr, $sprite)$getProps()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure","","!unquoted procedure Node_L($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode_L($label, $type, $descr, $sprite)$getProps_L()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure","","!unquoted procedure Node_R($alias, $label, $type=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","!$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", \"node\")","' nodes $type reuses $techn definition of $tags","!$type=$toElementArg($type, $tags, \"ElementTagTechn\", \"node\")","rectangle \"$getNode_R($label, $type, $descr, $sprite)$getProps_R()\" $toStereos(\"node\",$tags) as $alias $getLink($link)","!endprocedure",""];
15
+ P["c4_dynamic"] = P["c4_dynamic.puml"] = ["!include <C4/C4_Component>","","' Scope: Interactions in an enterprise, software system or container.","' Primary and supporting elements: Depends on the diagram scope -","' enterprise - people and software systems Related to the enterprise in scope","' software system - see system context or container diagrams,","' container - see component diagram.","' Intended audience: Technical and non-technical people, inside and outside of the software development team.","","' Dynamic diagram introduces (automatically) numbered interactions:","' (lowercase) increment($offset=1): increase current index (procedure which has no direct output)","' (lowercase) setIndex($new_index): set the new index (procedure which has no direct output)","'","' (Uppercase) LastIndex(): return the last used index (function which can be used as argument)","' (Uppercase) Index($offset=1): returns current index and calculates next index (function which can be used as argument)","' (Uppercase) SetIndex($new_index): returns new set index and calculates next index (function which can be used as argument)","","' Relationship override","' ##################################","","' Relationship","' ##################################","","!unquoted procedure Rel_($e_index, $alias1, $alias2, $label, $direction)","$getRel($direction, $alias1, $alias2, $e_index + \": \" + $label, \"\", \"\", \"\", \"\", \"\")","!endprocedure","!unquoted procedure Rel_($e_index, $alias1, $alias2, $label, $techn, $direction)","$getRel($direction, $alias1, $alias2, $e_index + \": \" + $label, $techn, \"\", \"\", \"\", \"\")","!endprocedure","","' all RelIndex... calls are outdated, Rel(..., $index=...) calls should be used !!!!","","' first Rel() supports the $index argument too; second Rel() overwrites C4.puml definition","!unquoted procedure Rel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel(\"-->>\", $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"-->>\", $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Back($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel(\"<<--\", $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Back($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Back($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_Back($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<--\", $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel(\"->>\", $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Neighbor($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_Neighbor($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"->>\", $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_Back_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel(\"<<-\", $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Back_Neighbor($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Back_Neighbor($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_Back_Neighbor($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel(\"<<-\", $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_D($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($down(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_D($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_D($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure Rel_Down($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($down(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Down($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Down($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_D($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure RelIndex_Down($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($down(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_U($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($up(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_U($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_U($from, $to, $label, $techn, $descr, $sprite, $tags, $link=, \"\")","!endprocedure","!unquoted procedure Rel_Up($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($up(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Up($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Up($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_U($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure RelIndex_Up($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($up(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_L($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($left(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_L($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_L($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure Rel_Left($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($left(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Left($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Left($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_L($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure RelIndex_Left($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($left(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Rel_R($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($right(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_R($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_R($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure Rel_Right($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\")","!$pre = $getPrefix($index)","$getRel($right(\"-\",\"->>\"), $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel_Right($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel_Right($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\")","!endprocedure","!unquoted procedure RelIndex_R($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure RelIndex_Right($e_index, $from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","$getRel($right(\"-\",\"->>\"), $from, $to, $e_index + \": \" + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure",""];
16
+ P["c4_sequence"] = P["c4_sequence.puml"] = ["!include <C4/C4_Component>","","' Scope: Interactions in an enterprise, software system or container.","' Primary and supporting elements: Depends on the diagram scope -","' enterprise - people and software systems Related to the enterprise in scope","' software system - see system context or container diagrams,","' container - see component diagram.","' Intended audience: Technical and non-technical people, inside and outside of the software development team.","","' Sequence diagram introduces (automatically) numbered interactions:","' (lowercase) increment($offset=1): increase current index (procedure which has no direct output)","' (lowercase) setIndex($new_index): set the new index (procedure which has no direct output)","'","' (Uppercase) LastIndex(): return the last used index (function which can be used as argument)","' (Uppercase) Index($offset=1): returns current index and calculates next index (function which can be used as argument)","' (Uppercase) SetIndex($new_index): returns new set index and calculates next index (function which can be used as argument)","","' enables multi-level boxes","!pragma teoz true","","","' Legend redefinition","' ##################################","' sequence has no dashed boxes","!if ($LEGEND_DASHED_BOUNDARY == \"dashed\")"," !$LEGEND_DASHED_BOUNDARY = \"\"","!endif","!if ($LEGEND_DASHED_TRANSPARENT_BOUNDARY == \"dashed\")"," !$LEGEND_DASHED_TRANSPARENT_BOUNDARY = \"\"","!endif","UpdateBoundaryStyle(\"\", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR, $shape=$DEFAULT_SHAPE)","UpdateBoundaryStyle(\"enterprise\", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type=\"$ENTERPRISE_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE)","UpdateBoundaryStyle(\"system\", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type=\"$SYSTEM_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE)","UpdateBoundaryStyle(\"container\", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type=\"$CONTAINER_BOUNDARY_TYPE\", $shape=$DEFAULT_SHAPE)","","' Styling and Layout","' ##################################","","!global $display_element_description = %false()","","' typically the element/participant descriptions are not displayed in a sequence diagram, but it can be activated with this call","!unquoted procedure SHOW_ELEMENT_DESCRIPTIONS($show=\"true\")","!if ($show == \"true\")"," !global $display_element_description = %true()","!else"," !global $display_element_description = %false()","!endif","!endprocedure","","' typically the foot boxes descriptions are not displayed in a sequence diagram, but it can be activated with this call","!unquoted procedure SHOW_FOOT_BOXES($show=\"true\")","!if ($show == \"true\")"," show footbox","!else"," hide footbox","!endif","!endprocedure","","!global $show_index = %false()","' All relation specific (default) ordinary index numbers can be shown with this call","!unquoted procedure SHOW_INDEX($show=\"true\")","!if ($show == \"true\")"," !global $show_index = %true()","!else"," !global $show_index = %false()","!endif","!endprocedure","","' ======= if no theme is defined hide foot box and activate C4_blue styles","!if (%variable_exists(\"$THEME\"))","!else","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml) ","' If skinparams and styles are defined with concrete values no variables are required ","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","!endif","' ======= if no theme is defined hide foot box and activate C4_blue styles","","!if (ROUNDED_STYLE == 1)","skinparam participantRoundCorner $ROUNDED_BOX_SIZE","!endif","","' Elements redefinition","' ##################################","","' all elements have to be displayed as participant","' participants requires ` %newline()` instead of `\\n`","","!unquoted function $breakWithNewline($text, $lineEnd, $lineStart, $widthStr=\"-1\")","!$width = %intval($widthStr)","!$multiLine = \"\"","!if (%strpos($text, \"\\n\") >= 0)"," !while (%strpos($text, \"\\n\") >= 0)"," !$brPos = %strpos($text, \"\\n\")"," !if ($brPos > 0)"," !$multiLine = $multiLine + %substr($text, 0, $brPos) + $lineEnd + %newline() + $lineStart"," !else"," ' <U+00A0> non breaking change that newLine breaks with formats can be used with \\n\\n "," !$multiLine = $multiLine + \"<U+00A0>\" + $lineEnd + %newline() + $lineStart"," !endif"," !$text = %substr($text, $brPos+2)"," !if (%strlen($text) == 0)"," !$text = \"<U+00A0>\""," !endif"," !endwhile","!else"," !while ($width>0 && %strlen($text) > $width)"," !$brPos = $width"," !while ($brPos > 0 && %substr($text, $brPos, 1) != ' ')"," !$brPos = $brPos - 1"," !endwhile",""," !if ($brPos < 1)"," !$brPos = %strpos($text, \" \")"," !else"," !endif",""," !if ($brPos > 0)"," !$multiLine = $multiLine + %substr($text, 0, $brPos) + $lineEnd + %newline() + $lineStart"," !$text = %substr($text, $brPos + 1)"," !else"," !$multiLine = $multiLine+ $text"," !$text = \"\""," !endif"," !endwhile","!endif","!if (%strlen($text) > 0)"," !$multiLine = $multiLine + $text","!endif","!return $multiLine","!endfunction","","!unquoted function $breakNewLineLabel($text)","!$multiLine = $breakWithNewline($text, \"\", \"==\")","!return $multiLine","!endfunction","","!unquoted function $breakNewLineDescr($text)"," !return $breakWithNewline($text, \"\", \"\", $REL_DESCR_MAX_CHAR_WIDTH)","!endfunction","","!unquoted function $breakNewLineTechn($text)"," !$lineStart = \"</size>//\""," !$lineEnd = '//<size:'+$TECHN_FONT_SIZE+'>'"," !return $breakWithNewline($text, $lineStart, $lineEnd, $REL_TECHN_MAX_CHAR_WIDTH)","!endfunction","","' properties are not displayed in sequence diagram (size would be too big)","' $breakLabel() not required by participant","!procedure $getParticipant($elementType, $alias, $label, $techn, $descr, $sprite, $tags, $link)"," !$sprite=$toElementArg($sprite, $tags, \"ElementTagSprite\", $elementType)"," !$techn=$toElementArg($techn, $tags, \"ElementTagTechn\", $elementType)"," !$stereo = $toStereos($elementType,$tags)"," !$calcLabel = \"== \" + $breakNewLineLabel($label)"," !$calcTech = \"//<size:\" + $TECHN_FONT_SIZE + \">[\" + $breakNewLineTechn($techn) + \"]</size>//\""," !$calcDescr = $breakNewLineDescr($descr)"," !$calcLink = $getLink($link)","","participant $alias $stereo $calcLink [","!if ($sprite != \"\")","$getSprite($sprite)","!endif","!if ($label != \"\")","$calcLabel","!endif","!if ($techn != \"\")","$calcTech","!endif","!if ($display_element_description == %true() && $descr != \"\")","","$calcDescr","!endif","]","!endprocedure","","","!unquoted procedure Person($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"person\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Person_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"external_person\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure System($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\", $baseShape=\"rectangle\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemDb($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemQueue($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure System_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\", $baseShape=\"rectangle\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemDb_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure SystemQueue_Ext($alias, $label, $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $type=\"\")"," ' $type reuses $techn definition of $tags"," $getParticipant(\"external_system\", $alias, $label, $type, $descr, $sprite, $tags, $link)","!endprocedure","","","","!unquoted procedure Container($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getParticipant(\"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerDb($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerQueue($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Container_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getParticipant(\"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerDb_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ContainerQueue_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"external_container\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","","","!unquoted procedure Component($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getParticipant(\"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentDb($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentQueue($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure Component_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $baseShape=\"rectangle\")"," $getParticipant(\"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentDb_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","!unquoted procedure ComponentQueue_Ext($alias, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")"," $getParticipant(\"external_component\", $alias, $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","","","' Boundary redefinition","' ##################################","","' all boundaries have to be displayed as box and ","' !!! important changes: without { at the end; and boundary ends with Boundary_End() instead of }","","' alias ignored","' $breakLabel() not required by participant","","!unquoted procedure Boundary($alias, $label, $type=\"\", $tags=\"\", $link=\"\", $descr = \"\")","!$boundaryTags = $addBoundaryPostfix($tags)","' boundary $type reuses $techn definition of $boundaryTags","!$type=$toElementArg($type, $boundaryTags, \"ElementTagTechn\", \"boundary\")","!$sprite=$toElementArg(\"\", $boundaryTags, \"ElementTagSprite\", \"boundary\")","!$labelSprite=\"\"","!if ($sprite != \"\")"," ' add sprite in label line that it is more compact"," !$labelSprite = $getSprite($smallVersionSprite($sprite, $BOUNDARY_IMAGE_SIZE_FACTOR)) + ' '","!endif","!if ($link != \"\")"," !$usedNewLine = ']]\\n== [[' + $link + ' '"," !$labelType = '== [[' + $link + ' ' + $labelSprite + $breakText($label, $usedNewLine) + ']]'","!else"," !$usedNewLine = '\\n== '"," !$labelType = $labelSprite + $breakText($label, $usedNewLine)","!endif","!if (type != \"\")"," !$labelType = $labelType + '\\n<size:' + $TECHN_FONT_SIZE + '>[' + $type + ']</size>'","!endif","!if ($display_element_description == %true() && $descr != \"\")"," !$labelType = $labelType + '\\n\\n' + $breakDescr($descr, $BOUNDARY_DESCR_MAX_CHAR_WIDTH)","!endif","box \"$labelType\" $toStereos(\"boundary\", $boundaryTags)","!endprocedure","","!procedure Boundary_End()","end box","!endprocedure","","!unquoted procedure Enterprise_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+enterprise'"," !else"," !$allTags = 'enterprise'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure","","!unquoted procedure System_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+system'"," !else"," !$allTags = 'system'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure","","!unquoted procedure Container_Boundary($alias, $label, $tags=\"\", $link=\"\", $descr = \"\")"," !if ($tags != \"\")"," !$allTags = $tags + '+container'"," !else"," !$allTags = 'container'"," !endif"," ' $type defined via $tag style"," Boundary($alias, $label, \"\", $allTags, $link, $descr)","!endprocedure","","' Relationship (redefinition)","' ##################################","","' only Rel is supported in sequence diagram","","' first Rel() supports the $index and $rel argument too; second Rel() overwrites C4.puml definition","' don't add empty lines in procedure otherwise & calls are not working anymore '& a -> b: call' are not working anymore","!unquoted procedure Rel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\", $index=\"\", $rel=\"\")"," !if ($show_index == %true())"," !$pre = $getPrefix($index)"," !else"," !$pre = \"\""," !endif"," !if ($rel == \"\")"," !$rel = \"->\""," !endif","$getRel($rel, $from, $to, $pre + $label, $techn, $descr, $sprite, $tags, $link)","!endprocedure","!unquoted procedure Rel($from, $to, $label, $techn=\"\", $descr=\"\", $sprite=\"\", $tags=\"\", $link=\"\")","Rel($from, $to, $label, $techn, $descr, $sprite, $tags, $link, \"\", \"\")","!endprocedure",""];
17
+ P["_examples_/c4m_code"] = P["_examples_/c4m_code.puml"] = ["!include <C4/C4_Component>","!procedure $rel($left, $right,$direction='D')"," $left ||.$direction.|{ $right","!endprocedure","left header [[https://c4model.com C4M: Code Diagram]] / Entity Relationship Diagram","left to right direction","caption container 'Database'","skinparam linetype polyline","","folder \"Database\" #line.dashed {"," package App <<domain>> #line.dotted {"," map Productes {"," id => INTEGER"," name => STRING"," service => INTEGER"," }"," map Containers {"," product => INTEGER"," service => INTEGER"," }"," map Services {"," host => INTEGER"," name => STRING"," id => INTEGER"," }"," $rel('Productes::id', 'Containers::product' , 'U')"," $rel('Services::id', 'Containers::service', 'U')"," }",""," package Infra <<domain>> #line.dotted {"," map Networks {"," name => STRING"," id => INTEGER"," address => STRING"," color => STRING"," }"," map OSs {"," name => STRING"," id => INTEGER"," pkg => STRING"," color => STRING"," }"," map Hosts {"," id => INTEGER"," name => STRING"," domain => STRING"," vCPU => INTEGER"," RAM => INTEGER"," HDD => INTEGER"," OS => INTEGER"," }"," map Domains {"," id => INTEGER"," name => STRING"," }"," map Connections {"," host => INTEGER"," network => INTEGER"," domain => INTEGER"," }"," map Protocols {"," id => INTEGER"," name => STRING"," color => STRING"," }"," map Integrations {"," service => INTEGER"," protocol => INTEGER"," }"," $rel('Services::host', 'Hosts::id')"," $rel('Networks::id', 'Connections::network', 'U')"," $rel('Domains::id', 'Connections::domain', 'U')"," $rel('Hosts::id', 'Connections::host')"," $rel('OSs::id', 'Hosts::OS', 'U')"," $rel('Services::id', 'Integrations::service')"," $rel('Protocols::id', 'Integrations::protocol', 'U')"," }","}"];
18
+ P["_examples_/c4m_component"] = P["_examples_/c4m_component.puml"] = ["!include <office/Servers/database_server>","!include <office/Servers/domain_controller>","!include <office/Concepts/node_generic>","!include <office/Concepts/email>","!include <C4/C4_Component>","","left to right direction","left header [[https://c4model.com C4M: Component Diagram]]","","caption Container 'Web Application'","","Person(client, \"Personal Company Employee\", \"Customer of the company's internal services.\")","Person_Ext(support, \"Support\", \"Customer service staff\")","Person_Ext(engineer, \"Engineer\", \"Administration and support staff\")","ContainerDb(db, 'Database', 'MariaDB', 'Stores user registration information, hashed auth credentials, access logs, etc.', $sprite='database_server')","System_Ext(email, 'e-Mail system', 'The internal Zimbra e-mail system.', $sprite='email')","System_Ext(ipa, \"Identity management\", \"FreeIPA is an integrated security information management solution\", $sprite=\"domain_controller\")","","Container_Boundary(api, 'Web Application') {"," Component(sign, \"Sign In Controller\", \"MVC Rest Controller\", \"Allows users to sign in to the internet banking system\", $sprite=\"node_generic\")"," Component(accounts, \"Accounts Summary Controller\", \"MVC Rest Controller\", \"Provides customers with a summary of their bank accounts\", $sprite=\"node_generic\")"," Component(security, \"Security Component\", \"Spring Bean\", \"Provides functionality related to singing in, changing passwords, etc.\", $sprite=\"node_generic\")"," Component(mbsfacade, \"Mainframe System Facade\", \"Spring Bean\", \"A facade onto the mainframe banking system.\", $sprite=\"node_generic\")",""," Rel(sign, security, \"Uses\")"," Rel(accounts, mbsfacade, \"Uses\")"," Rel(security, db, \"Read & write to\", \"JDBC\")"," Rel(mbsfacade, ipa, \"Uses\", \"LDAP\")"," Rel(mbsfacade, email, \"Uses\", \"SMTP\")","}","","Rel(client, sign, \"Uses\", \"JSON/HTTPS\")","Rel(support, sign, \"Uses\", \"JSON/HTTPS\")","Rel(engineer, sign, \"Uses\", \"JSON/HTTPS\")","Rel_L(sign, accounts, \"Uses\", \"JSON/HTTPS\")","engineer -[hidden]- accounts","support -[hidden]- accounts","client -[hidden]- accounts"];
19
+ P["_examples_/c4m_container"] = P["_examples_/c4m_container.puml"] = ["!include <office/Servers/database_server>","!include <office/Servers/domain_controller>","!include <office/Concepts/windows_powershell>","!include <office/Concepts/application_web>","!include <office/Concepts/node_generic>","!include <office/Concepts/email>","!include <C4/C4_Container>","","left to right direction","left header [[https://c4model.com C4M: Container Diagram]]","caption 'ITSM' system's containers","","Person(client, \"Personal Company Employee\", \"Customer of the company's internal services.\")","Person_Ext(support, \"Support\", \"Customer service staff\")","Person_Ext(engineer, \"Engineer\", \"Administration and support staff\")","System_Ext(email, \"e-Mail system\", \"The internal Zimbra e-mail system.\", $sprite=\"email\")","System_Ext(ipa, \"Identity management\", \"FreeIPA is an integrated security information management solution\", $sprite=\"domain_controller\")","","System_Boundary(itsm, \"ITSM\") {"," Container(web, \"Web Application\", \"Nginx, GLPI\", \"Delivers the static content and the Internet banking SPA\", $sprite='application_web')"," Container(pl, \"FastCGI\", \"PHP-FPM\", \"FastCGI Process Manager\", $sprite='windows_powershell')"," ContainerDb(db, \"Database\", \"MariaDB\", \"Stores user registration information, hashed auth credentials, access logs, etc.\", $sprite='database_server')","}","","Rel(client, web, \"Uses\", \"HTTPS\")","Rel(support, web, \"Uses\", \"HTTPS\")","Rel(engineer, web, \"Uses\", \"HTTPS\")","Rel(web, db, \"Reads from and writes to\", \"sync, JDBC\")","Rel_L(web, email, \"Sends e-mails using\", \"SMTP\")","Rel_R(web, pl, \"Run applications\", \"socket\")","Rel(web, ipa, \"Uses\", \"LDAPS\")","Rel_U(email, client, \"Sends e-mails to\")","email -[hidden]- ipa",""];
20
+ P["_examples_/c4m_context"] = P["_examples_/c4m_context.puml"] = ["!include <office/Servers/domain_controller>","!include <office/Servers/web_server>","!include <office/Concepts/application_web>","!include <office/Concepts/email>","!include <C4/C4_Context>","","skinparam linetype polyline","left header [[https://c4model.com C4M: Context Diagram]]","left to right direction","caption Context of system 'ITSM'","","Person(client, \"Personal Company Employee\", \"Customer of the company's internal services.\")","Enterprise_Boundary(itd, \"IT departament\") {"," together {"," System_Ext(email, \"e-Mail system\", \"The internal Zimbra e-mail system.\", $sprite=\"email\")"," Person_Ext(support, \"Support\", \"Customer service staff\")"," System(itsm, \"ITSM\", \"Allows to manage IT assets\", $sprite=\"web_server\")"," }"," together {"," Person_Ext(engineer, \"Engineer\", \"Administration and support staff\")"," System_Ext(ipa, \"Identity management\", \"FreeIPA is an integrated security information management solution\", $sprite='domain_controller')"," }","}","Rel(client, itsm, \"Uses\", \"HTTPS\")","Rel(client, email, \"Sends e-mails to\", \"SMTPS\")","Rel_U(client, support, \"Asks questions to\", \"Phone\")","Rel_L(support, itsm, \"Uses\", \"HTTPS\")","Rel_L(itsm, email, \"Sends e-mails using\", \"SMTPS\")","Rel(engineer, itsm, \"Uses\", \"HTTPS\")","Rel(itsm, ipa, \"Uses\", \"LDAPS\")"];
21
+ P["_examples_/c4m_deployment"] = P["_examples_/c4m_deployment.puml"] = ["!include <office/Servers/database_server>","!include <office/Servers/domain_controller>","!include <office/Concepts/windows_powershell>","!include <office/Concepts/application_web>","!include <office/Concepts/application_generic>","!include <office/Concepts/email>","!include <office/Clouds/private_cloud>","!include <office/Devices/workstation>","!include <C4/C4_Deployment>","","skinparam linetype polyline","hide stereotype","left to right direction","","left header [[https://c4model.com C4M: Deployment Diagram]]","","caption Deployment system 'ITSM'","","Deployment_Node(cld0, 'Office', 'Network', $sprite='private_cloud') {"," Deployment_Node(emp, 'emp01.local', 'FreeBSD', $sprite='workstation') {"," Container(ff, \"FireFox\", $sprite='application_generic')"," }","}","Deployment_Node(cld1, 'Application', 'Network', $sprite='private_cloud') {"," AddProperty(\"CPU\", \"2\")"," AddProperty(\"RAM\", \"2\")"," AddProperty(\"SSD\", \"10\")"," Deployment_Node(app, \"app01.local\", \"Debian\", $sprite=\"web_server\") {"," Container(web, \"Web Application\", \"Nginx, GLPI\", \"Delivers the static content and the Internet banking SPA\", $sprite='application_web')"," Container(pl, \"FastCGI\", \"PHP-FPM\", \"FastCGI Process Manager\", $sprite='windows_powershell')"," }","}","Deployment_Node(cld2, 'Storage', 'Network', $sprite='private_cloud') {"," AddProperty(\"CPU\", \"2\")"," AddProperty(\"RAM\", \"2\")"," AddProperty(\"SSD\", \"50\")"," Deployment_Node(sql, \"sql01.local\", \"CentOS\", $sprite=\"database_server\") {"," ContainerDb(db, \"Database\", \"MariaDB\", \"Stores user registration information, hashed auth credentials, access logs, etc.\", $sprite='database')"," }","}","","Rel(ff, web, \"Call\", \"sync, HTTPS\")","Rel(web, db, \"Reads from and writes to\", \"sync, JDBC\")","Rel_L(web, pl, \"Run applications\", \"socket\")",""];
22
+ P["_examples_/example"] = P["_examples_/example.puml"] = ["!include <office/Concepts/windows_powershell>","!include <office/Concepts/application_web>","!include <office/Concepts/application_generic>","!include <office/Concepts/properties>","!include <C4/C4_Container>","hide stereotype","left to right direction","left header [[https://c4model.com C4M: Container Diagram]]","caption Feature 'AutoSupport'","","System_Boundary(app, \"Application\") {"," Container(service, 'Application', 'Any', 'Any supporting service', $sprite='application_generic')"," Container(exporter, 'Exporter', 'Go', 'Mertric exporter', $sprite='application_generic')","}","System_Boundary(mon, \"Monitoring\") {"," Container(grafana, 'Grafana', 'Go', 'Visualization web application', $sprite='application_web')"," ContainerDb(prometheus, 'Metrics', 'Prometheus', 'Storage metrics', $sprite='properties')","}","System_Boundary(itsm, \"CICD\") {"," Container(agent, 'Agent', 'Java', 'CICD worker', $sprite='windows_powershell')"," Container(jenkins, 'Jenkins', 'Java', 'CICD control', $sprite='application_web')","}","System_Boundary(scm, \"SCM\") {"," Container(git, 'Gitea', 'Go', 'Source controle manager', $sprite='application_web')","}","Rel_U(grafana, prometheus, 'Metrics')","Rel_R(prometheus, exporter, 'Metrics')","Rel_L(service, exporter, 'Volumes')","Rel_R(grafana, jenkins, 'Metrics')","Rel_R(jenkins, agent, 'Run')","Rel(jenkins, git, 'Get script')","Rel_U(agent, service, 'Suport')"];
23
+ P["themes/puml-theme-c4language_chinese"] = P["themes/puml-theme-c4language_chinese.puml"] = ["!$THEME = \"C4Language_chinese\"","","!$BOUNDARY_LEGEND_TEXT ?= \"边界\"","","!$LEGEND_TITLE_TEXT ?= \"图例\"","","!$LEGEND_BOUNDARY ?= \"边界\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"阴影\"","!$LEGEND_NO_SHADOW_TEXT ?= \"无阴影\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"最后的文字和背景颜色\"","!$LEGEND_NO_FONT_TEXT ?= \"最后的文字颜色\"","!$LEGEND_NO_BG_TEXT ?= \"最后的背景颜色\"","!$LEGEND_NO_LINE_TEXT ?= \"最后的线条颜色\"","!$LEGEND_ROUNDED_BOX ?= \"圆角框\"","!$LEGEND_EIGHT_SIDED ?= \"八边形\"","!$LEGEND_DOTTED_LINE ?= \"点线\"","!$LEGEND_DASHED_LINE ?= \"虚线\"","!$LEGEND_BOLD_LINE ?= \"粗线\"","!$LEGEND_SOLID_LINE ?= \"实线\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"虚线, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"厚度\"","","!$SKETCH_FOOTER_WARNING ?= \"警告:\"","!$SKETCH_FOOTER_TEXT ?= \"创建用于讨论,需要验证\"","","!$COMPONENT_LEGEND_TEXT ?= \"组件\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"外部组件\"","","!$CONTAINER_LEGEND_TEXT ?= \"容器\"","!$CONTAINER_BOUNDARY_TYPE ?= \"容器\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"容器边界\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"外部容器\"","","!$PERSON_LEGEND_TEXT ?= \"人\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"外部人\"","","!$SYSTEM_LEGEND_TEXT ?= \"系统\"","!$SYSTEM_BOUNDARY_TYPE ?= \"系统\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"系统边界\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"外部系统\"","","!ENTERPRISE_BOUNDARY_TYPE ?= \"企业\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"企业边界\"","","!$NODE_LEGEND_TEXT ?= \"节点\"",""];
24
+ P["themes/puml-theme-c4language_danish"] = P["themes/puml-theme-c4language_danish.puml"] = ["' all available language specific text labels (orig. English)","!$THEME = \"C4Language_danish\"","","!$BOUNDARY_LEGEND_TEXT ?= \"skillelinje\"","","!$LEGEND_TITLE_TEXT ?= \"Signaturforklaring\"","","!$LEGEND_BOUNDARY ?= \"skillelinje\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","' !$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"skygge\"","!$LEGEND_NO_SHADOW_TEXT ?= \"ingen skygge\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"sidste tekst og sidste farve\"","!$LEGEND_NO_FONT_TEXT ?= \"sidste tekstfarve\"","!$LEGEND_NO_BG_TEXT ?= \"sidste baggrundsfarve\"","!$LEGEND_NO_LINE_TEXT ?= \"sidste linjefarve\"","!$LEGEND_ROUNDED_BOX ?= \"rundet boks\"","!$LEGEND_EIGHT_SIDED ?= \"ottesidet\"","!$LEGEND_DOTTED_LINE ?= \"prikket\"","!$LEGEND_DASHED_LINE ?= \"stiplet\"","!$LEGEND_BOLD_LINE ?= \"fed\"","!$LEGEND_SOLID_LINE ?= \"solid\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"stiplet, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"tykkelse\"","!$SKETCH_FOOTER_WARNING ?= \"Advarsel:\"","!$SKETCH_FOOTER_TEXT ?= \"Oprettet til diskussion, skal valideres\"","","!$COMPONENT_LEGEND_TEXT ?= \"komponent\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"ekstern komponent\"","","!$CONTAINER_LEGEND_TEXT ?= \"container\"","!$CONTAINER_BOUNDARY_TYPE ?= \"container\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"container skillelinje\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"ekstern container\"","","!$PERSON_LEGEND_TEXT ?= \"person\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"ekstern person\"","","!$SYSTEM_LEGEND_TEXT ?= \"system\"","!$SYSTEM_BOUNDARY_TYPE ?= \"system\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"system skillelinje\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"eksternt system\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"enterprise\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"enterprise skillelinje\"","","!$NODE_LEGEND_TEXT ?= \"node\"",""];
25
+ P["themes/puml-theme-c4language_dutch"] = P["themes/puml-theme-c4language_dutch.puml"] = ["!$THEME = \"C4Language_dutch\"","","!$BOUNDARY_LEGEND_TEXT ?= \"grens\"","","!$LEGEND_TITLE_TEXT ?= \"Legenda\"","","!$LEGEND_BOUNDARY ?= \"grens\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"schaduw\"","!$LEGEND_NO_SHADOW_TEXT ?= \"geen schaduw\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"laatste tekst- en achtergrondkleur\"","!$LEGEND_NO_FONT_TEXT ?= \"laatste tekstkleur\"","!$LEGEND_NO_BG_TEXT ?= \"laatste achtergrondkleur\"","!$LEGEND_NO_LINE_TEXT ?= \"laatste lijnkleur\"","!$LEGEND_ROUNDED_BOX ?= \"afgeronde doos\"","!$LEGEND_EIGHT_SIDED ?= \"achtzijdig\"","!$LEGEND_DOTTED_LINE ?= \"gestippeld\"","!$LEGEND_DASHED_LINE ?= \"gestreept\"","!$LEGEND_BOLD_LINE ?= \"vet\"","!$LEGEND_SOLID_LINE ?= \"solide\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"gestreept, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"dikte\"","","!$SKETCH_FOOTER_WARNING ?= \"Waarschuwing:\"","!$SKETCH_FOOTER_TEXT ?= \"Gemaakt voor discussie, moet worden gevalideerd\"","","!$COMPONENT_LEGEND_TEXT ?= \"component\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"extern component\"","","!$CONTAINER_LEGEND_TEXT ?= \"container\"","!$CONTAINER_BOUNDARY_TYPE ?= \"container\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"containergrens\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"externe container\"","","!$PERSON_LEGEND_TEXT ?= \"persoon\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"externe persoon\"","","!$SYSTEM_LEGEND_TEXT ?= \"systeem\"","!$SYSTEM_BOUNDARY_TYPE ?= \"systeem\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"systeemgrens\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"extern systeem\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"bedrijfs\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"bedrijfsgrens\"","","!$NODE_LEGEND_TEXT ?= \"knooppunt\"",""];
26
+ P["themes/puml-theme-c4language_english"] = P["themes/puml-theme-c4language_english.puml"] = ["' all available language specific text labels (orig. English)","!$THEME = \"C4Language_english\"","","!$BOUNDARY_LEGEND_TEXT ?= \"boundary\"","","!$LEGEND_TITLE_TEXT ?= \"Legend\"","","!$LEGEND_BOUNDARY ?= \"boundary\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","' !$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"shadow\"","!$LEGEND_NO_SHADOW_TEXT ?= \"no shadow\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"last text and back color\"","!$LEGEND_NO_FONT_TEXT ?= \"last text color\"","!$LEGEND_NO_BG_TEXT ?= \"last back color\"","!$LEGEND_NO_LINE_TEXT ?= \"last line color\"","!$LEGEND_ROUNDED_BOX ?= \"rounded box\"","!$LEGEND_EIGHT_SIDED ?= \"eight sided\"","!$LEGEND_DOTTED_LINE ?= \"dotted\"","!$LEGEND_DASHED_LINE ?= \"dashed\"","!$LEGEND_BOLD_LINE ?= \"bold\"","!$LEGEND_SOLID_LINE ?= \"solid\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"dashed, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"thickness\"","!$SKETCH_FOOTER_WARNING ?= \"Warning:\"","!$SKETCH_FOOTER_TEXT ?= \"Created for discussion, needs to be validated\"","","!$COMPONENT_LEGEND_TEXT ?= \"component\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"external component\"","","!$CONTAINER_LEGEND_TEXT ?= \"container\"","!$CONTAINER_BOUNDARY_TYPE ?= \"container\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"container boundary\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"external container\"","","!$PERSON_LEGEND_TEXT ?= \"person\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"external person\"","","!$SYSTEM_LEGEND_TEXT ?= \"system\"","!$SYSTEM_BOUNDARY_TYPE ?= \"system\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"system boundary\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"external system\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"enterprise\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"enterprise boundary\"","","!$NODE_LEGEND_TEXT ?= \"node\"",""];
27
+ P["themes/puml-theme-c4language_french"] = P["themes/puml-theme-c4language_french.puml"] = ["!$THEME = \"C4Language_french\"","","!$BOUNDARY_LEGEND_TEXT ?= \"frontière\"","","!$LEGEND_TITLE_TEXT ?= \"Légende\"","","!$LEGEND_BOUNDARY ?= \"frontière\"","!$LEGEND_BOUNDARY_PRE_PART ?= \"frontière du \"","!$LEGEND_BOUNDARY_POST_PART ?= \"\"","","!$LEGEND_SHADOW_TEXT ?= \"ombre\"","!$LEGEND_NO_SHADOW_TEXT ?= \"pas d'ombre\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"dernière couleur de texte et de fond\"","!$LEGEND_NO_FONT_TEXT ?= \"dernière couleur de texte\"","!$LEGEND_NO_BG_TEXT ?= \"dernière couleur de fond\"","!$LEGEND_NO_LINE_TEXT ?= \"dernière couleur de ligne\"","!$LEGEND_ROUNDED_BOX ?= \"boîte arrondie\"","!$LEGEND_EIGHT_SIDED ?= \"octogonal\"","!$LEGEND_DOTTED_LINE ?= \"pointillé\"","!$LEGEND_DASHED_LINE ?= \"tiret\"","!$LEGEND_BOLD_LINE ?= \"gras\"","!$LEGEND_SOLID_LINE ?= \"solide\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"tiret, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"épaisseur\"","","!$SKETCH_FOOTER_WARNING ?= \"Attention:\"","!$SKETCH_FOOTER_TEXT ?= \"Créé pour discussion, doit être validé\"","","!$COMPONENT_LEGEND_TEXT ?= \"composant\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"composant externe\"","","!$CONTAINER_LEGEND_TEXT ?= \"conteneur\"","!$CONTAINER_BOUNDARY_TYPE ?= \"conteneur\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"frontière du conteneur\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"conteneur externe\"","","!$PERSON_LEGEND_TEXT ?= \"personne\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"personne externe\"","","!$SYSTEM_LEGEND_TEXT ?= \"système\"","!$SYSTEM_BOUNDARY_TYPE ?= \"système\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"frontière du système\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"système externe\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"entreprise\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"frontière de l'entreprise\"","","!$NODE_LEGEND_TEXT ?= \"nœud\"",""];
28
+ P["themes/puml-theme-c4language_german"] = P["themes/puml-theme-c4language_german.puml"] = ["!$THEME = \"C4Language_deutsch\"","","!$BOUNDARY_LEGEND_TEXT ?= \"Grenze\"","","!$LEGEND_TITLE_TEXT ?= \"Legende\"","","!$LEGEND_BOUNDARY ?= \"Grenze\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","' !$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","!$LEGEND_BOUNDARY_POST_PART ?= \"grenze\"","","!$LEGEND_SHADOW_TEXT ?= \"Schatten\"","!$LEGEND_NO_SHADOW_TEXT ?= \"kein Schatten\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"letzte Text- und Hintergrundfarbe\"","!$LEGEND_NO_FONT_TEXT ?= \"letzte Textfarbe\"","!$LEGEND_NO_BG_TEXT ?= \"letzte Hintergrundfarbe\"","!$LEGEND_NO_LINE_TEXT ?= \"letzte Linienfarbe\"","!$LEGEND_ROUNDED_BOX ?= \"abgerundetes Kästchen\"","!$LEGEND_EIGHT_SIDED ?= \"achtseitig\"","!$LEGEND_DOTTED_LINE ?= \"gepunktet\"","!$LEGEND_DASHED_LINE ?= \"gestrichelt\"","!$LEGEND_BOLD_LINE ?= \"fett\"","!$LEGEND_SOLID_LINE ?= \"durchgezogen\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"gestrichelt, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"Dicke\"","!$SKETCH_FOOTER_WARNING ?= \"Warnung:\"","!$SKETCH_FOOTER_TEXT ?= \"Zur Diskussion gestellt, muss überprüft werden\"","","!$COMPONENT_LEGEND_TEXT ?= \"Komponente\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"externe Komponente\"","","!$CONTAINER_LEGEND_TEXT ?= \"Container\"","!$CONTAINER_BOUNDARY_TYPE ?= \"Container\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"Containergrenze\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"externer Container\"","","!$PERSON_LEGEND_TEXT ?= \"Person\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"externe Person\"","","!$SYSTEM_LEGEND_TEXT ?= \"System\"","!$SYSTEM_BOUNDARY_TYPE ?= \"System\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"Systemgrenze\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"externes System\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"Unternehmen\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"Unternehmensgrenze\"","","!$NODE_LEGEND_TEXT ?= \"Knoten\"",""];
29
+ P["themes/puml-theme-c4language_italian"] = P["themes/puml-theme-c4language_italian.puml"] = ["!$THEME = \"C4Language_italian\"","","!$BOUNDARY_LEGEND_TEXT ?= \"confine\"","","!$LEGEND_TITLE_TEXT ?= \"Legenda\"","","!$LEGEND_BOUNDARY ?= \"confine\"","!$LEGEND_BOUNDARY_PRE_PART ?= \"confine del \"","!$LEGEND_BOUNDARY_POST_PART ?= \"\"","","!$LEGEND_SHADOW_TEXT ?= \"ombra\"","!$LEGEND_NO_SHADOW_TEXT ?= \"nessuna ombra\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"ultimo colore del testo e dello sfondo\"","!$LEGEND_NO_FONT_TEXT ?= \"ultimo colore del testo\"","!$LEGEND_NO_BG_TEXT ?= \"ultimo colore dello sfondo\"","!$LEGEND_NO_LINE_TEXT ?= \"ultimo colore della linea\"","!$LEGEND_ROUNDED_BOX ?= \"scatola arrotondata\"","!$LEGEND_EIGHT_SIDED ?= \"otto lati\"","!$LEGEND_DOTTED_LINE ?= \"punteggiato\"","!$LEGEND_DASHED_LINE ?= \"tratteggiato\"","!$LEGEND_BOLD_LINE ?= \"grassetto\"","!$LEGEND_SOLID_LINE ?= \"solido\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"tratteggiato, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"spessore\"","!$SKETCH_FOOTER_WARNING ?= \"Avvertimento:\"","!$SKETCH_FOOTER_TEXT ?= \"Creato per discussione, deve essere convalidato\"","","!$COMPONENT_LEGEND_TEXT ?= \"componente\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"componente esterno\"","","!$CONTAINER_LEGEND_TEXT ?= \"contenitore\"","!$CONTAINER_BOUNDARY_TYPE ?= \"contenitore\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"confine del contenitore\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"contenitore esterno\"","","!$PERSON_LEGEND_TEXT ?= \"persona\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"persona esterna\"","","!$SYSTEM_LEGEND_TEXT ?= \"sistema\"","!$SYSTEM_BOUNDARY_TYPE ?= \"sistema\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"confine del sistema\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"sistema esterno\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"impresa\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"confine dell'impresa\"","","!$NODE_LEGEND_TEXT ?= \"nodo\"",""];
30
+ P["themes/puml-theme-c4language_japanese"] = P["themes/puml-theme-c4language_japanese.puml"] = ["!$THEME = \"C4Language_japanese\"","","!$BOUNDARY_LEGEND_TEXT ?= \"境界\"","","!$LEGEND_TITLE_TEXT ?= \"凡例\"","","!$LEGEND_BOUNDARY ?= \"境界\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"影\"","!$LEGEND_NO_SHADOW_TEXT ?= \"影なし\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"最後のテキストと背景色\"","!$LEGEND_NO_FONT_TEXT ?= \"最後のテキスト色\"","!$LEGEND_NO_BG_TEXT ?= \"最後の背景色\"","!$LEGEND_NO_LINE_TEXT ?= \"最後の線色\"","!$LEGEND_ROUNDED_BOX ?= \"丸いボックス\"","!$LEGEND_EIGHT_SIDED ?= \"八角形\"","!$LEGEND_DOTTED_LINE ?= \"点線\"","!$LEGEND_DASHED_LINE ?= \"破線\"","!$LEGEND_BOLD_LINE ?= \"太線\"","!$LEGEND_SOLID_LINE ?= \"実線\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"破線, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"厚さ\"","","!$SKETCH_FOOTER_WARNING ?= \"警告:\"","!$SKETCH_FOOTER_TEXT ?= \"議論用に作成されたもので、検証が必要です\"","","!$COMPONENT_LEGEND_TEXT ?= \"コンポーネント\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"外部コンポーネント\"","","!$CONTAINER_LEGEND_TEXT ?= \"コンテナ\"","!$CONTAINER_BOUNDARY_TYPE ?= \"コンテナ\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"コンテナ境界\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"外部コンテナ\"","","!$PERSON_LEGEND_TEXT ?= \"人\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"外部の人\"","","!$SYSTEM_LEGEND_TEXT ?= \"システム\"","!$SYSTEM_BOUNDARY_TYPE ?= \"システム\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"システム境界\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"外部システム\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"企業\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"企業境界\"","","!$NODE_LEGEND_TEXT ?= \"ノード\"",""];
31
+ P["themes/puml-theme-c4language_korean"] = P["themes/puml-theme-c4language_korean.puml"] = ["!$THEME = \"C4Language_korean\"","","!$BOUNDARY_LEGEND_TEXT ?= \"경계\"","","!$LEGEND_TITLE_TEXT ?= \"범례\"","","!$LEGEND_BOUNDARY ?= \"경계\"","' !$LEGEND_BOUNDARY_PRE_PART ?= \"\"","' !$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"그림자\"","!$LEGEND_NO_SHADOW_TEXT ?= \"그림자 없음\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"마지막 텍스트 및 배경 색상\"","!$LEGEND_NO_FONT_TEXT ?= \"마지막 텍스트 색상\"","!$LEGEND_NO_BG_TEXT ?= \"마지막 배경 색상\"","!$LEGEND_NO_LINE_TEXT ?= \"마지막 선 색상\"","!$LEGEND_ROUNDED_BOX ?= \"둥근 상자\"","!$LEGEND_EIGHT_SIDED ?= \"팔각형\"","!$LEGEND_DOTTED_LINE ?= \"점선\"","!$LEGEND_DASHED_LINE ?= \"대시선\"","!$LEGEND_BOLD_LINE ?= \"굵은 선\"","!$LEGEND_SOLID_LINE ?= \"실선\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"대시선, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"두께\"","","!$SKETCH_FOOTER_WARNING ?= \"경고:\"","!$SKETCH_FOOTER_TEXT ?= \"토론을 위해 작성되었으며 검증이 필요합니다\"","","!$COMPONENT_LEGEND_TEXT ?= \"구성 요소\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"외부 구성 요소\"","","!$CONTAINER_LEGEND_TEXT ?= \"컨테이너\"","!$CONTAINER_BOUNDARY_TYPE ?= \"컨테이너\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"컨테이너 경계\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"외부 컨테이너\"","","!$PERSON_LEGEND_TEXT ?= \"사람\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"외부 사람\"","","!$SYSTEM_LEGEND_TEXT ?= \"시스템\"","!$SYSTEM_BOUNDARY_TYPE ?= \"시스템\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"시스템 경계\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"외부 시스템\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"기업\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"기업 경계\"","","!$NODE_LEGEND_TEXT ?= \"노드\"",""];
32
+ P["themes/puml-theme-c4language_portuguese"] = P["themes/puml-theme-c4language_portuguese.puml"] = ["!$THEME = \"C4Language_portuguese\"","","!$BOUNDARY_LEGEND_TEXT ?= \"limite\"","","!$LEGEND_TITLE_TEXT ?= \"Legenda\"","","!$LEGEND_BOUNDARY ?= \"limite\"","!$LEGEND_BOUNDARY_PRE_PART ?= \"limite do \"","!$LEGEND_BOUNDARY_POST_PART ?= \"\"","","!$LEGEND_SHADOW_TEXT ?= \"sombra\"","!$LEGEND_NO_SHADOW_TEXT ?= \"sem sombra\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"última cor do texto e do fundo\"","!$LEGEND_NO_FONT_TEXT ?= \"última cor do texto\"","!$LEGEND_NO_BG_TEXT ?= \"última cor do fundo\"","!$LEGEND_NO_LINE_TEXT ?= \"última cor da linha\"","!$LEGEND_ROUNDED_BOX ?= \"caixa arredondada\"","!$LEGEND_EIGHT_SIDED ?= \"oito lados\"","!$LEGEND_DOTTED_LINE ?= \"pontilhado\"","!$LEGEND_DASHED_LINE ?= \"tracejado\"","!$LEGEND_BOLD_LINE ?= \"negrito\"","!$LEGEND_SOLID_LINE ?= \"sólido\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"tracejado, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"espessura\"","","!$SKETCH_FOOTER_WARNING ?= \"Aviso:\"","!$SKETCH_FOOTER_TEXT ?= \"Criado para discussão, precisa ser validado\"","","!$COMPONENT_LEGEND_TEXT ?= \"componente\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"componente externo\"","","!$CONTAINER_LEGEND_TEXT ?= \"contêiner\"","!$CONTAINER_BOUNDARY_TYPE ?= \"contêiner\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"limite do contêiner\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"contêiner externo\"","","!$PERSON_LEGEND_TEXT ?= \"pessoa\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"pessoa externa\"","","!$SYSTEM_LEGEND_TEXT ?= \"sistema\"","!$SYSTEM_BOUNDARY_TYPE ?= \"sistema\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"limite do sistema\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"sistema externo\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"empresa\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"limite da empresa\"","","!$NODE_LEGEND_TEXT ?= \"nó\"",""];
33
+ P["themes/puml-theme-c4language_russian"] = P["themes/puml-theme-c4language_russian.puml"] = ["!$THEME = \"C4Language_russian\"","","!$BOUNDARY_LEGEND_TEXT ?= \"граница\"","","!$LEGEND_TITLE_TEXT ?= \"Легенда\"","","!$LEGEND_BOUNDARY ?= \"граница\"","!$LEGEND_BOUNDARY_PRE_PART ?= $LEGEND_BOUNDARY + \" \"","!$LEGEND_BOUNDARY_POST_PART ?= \"\"","","!$LEGEND_SHADOW_TEXT ?= \"тень\"","!$LEGEND_NO_SHADOW_TEXT ?= \"без тени\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"последний цвет текста и фона\"","!$LEGEND_NO_FONT_TEXT ?= \"последний цвет текста\"","!$LEGEND_NO_BG_TEXT ?= \"последний цвет фона\"","!$LEGEND_NO_LINE_TEXT ?= \"последний цвет линии\"","!$LEGEND_ROUNDED_BOX ?= \"округлая коробка\"","!$LEGEND_EIGHT_SIDED ?= \"восьмиугольный\"","!$LEGEND_DOTTED_LINE ?= \"пунктирная линия\"","!$LEGEND_DASHED_LINE ?= \"штриховая линия\"","!$LEGEND_BOLD_LINE ?= \"жирная линия\"","!$LEGEND_SOLID_LINE ?= \"сплошная линия\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"штриховая линия, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"толщина\"","","!$SKETCH_FOOTER_WARNING ?= \"Предупреждение:\"","!$SKETCH_FOOTER_TEXT ?= \"Создано для обсуждения, требует проверки\"","","!$COMPONENT_LEGEND_TEXT ?= \"компонент\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"внешний компонент\"","","!$CONTAINER_LEGEND_TEXT ?= \"контейнер\"","!$CONTAINER_BOUNDARY_TYPE ?= \"контейнер\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"граница контейнера\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"внешний контейнер\"","","!$PERSON_LEGEND_TEXT ?= \"человек\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"внешний человек\"","","!$SYSTEM_LEGEND_TEXT ?= \"система\"","!$SYSTEM_BOUNDARY_TYPE ?= \"система\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"граница системы\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"внешняя система\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"предприятия\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"граница предприятия\"","","!$NODE_LEGEND_TEXT ?= \"узел\"",""];
34
+ P["themes/puml-theme-c4language_spanish"] = P["themes/puml-theme-c4language_spanish.puml"] = ["!$THEME = \"C4Language_spanish\"","","!$BOUNDARY_LEGEND_TEXT ?= \"límite\"","","!$LEGEND_TITLE_TEXT ?= \"Leyenda\"","","!$LEGEND_BOUNDARY ?= \"límite\"","!$LEGEND_BOUNDARY_PRE_PART ?= \"límite del \"","!$LEGEND_BOUNDARY_POST_PART ?= \"\"","","!$LEGEND_SHADOW_TEXT ?= \"sombra\"","!$LEGEND_NO_SHADOW_TEXT ?= \"sin sombra\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"último color de texto y fondo\"","!$LEGEND_NO_FONT_TEXT ?= \"último color de texto\"","!$LEGEND_NO_BG_TEXT ?= \"último color de fondo\"","!$LEGEND_NO_LINE_TEXT ?= \"último color de línea\"","!$LEGEND_ROUNDED_BOX ?= \"caja redondeada\"","!$LEGEND_EIGHT_SIDED ?= \"octogonal\"","!$LEGEND_DOTTED_LINE ?= \"punteado\"","!$LEGEND_DASHED_LINE ?= \"discontinuo\"","!$LEGEND_BOLD_LINE ?= \"negrita\"","!$LEGEND_SOLID_LINE ?= \"sólido\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"discontinuo, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"grosor\"","!$SKETCH_FOOTER_WARNING ?= \"Advertencia:\"","!$SKETCH_FOOTER_TEXT ?= \"Creado para discusión, necesita ser validado\"","","!$COMPONENT_LEGEND_TEXT ?= \"componente\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"componente externo\"","","!$CONTAINER_LEGEND_TEXT ?= \"contenedor\"","!$CONTAINER_BOUNDARY_TYPE ?= \"contenedor\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"límite del contenedor\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"contenedor externo\"","","!$PERSON_LEGEND_TEXT ?= \"persona\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"persona externa\"","","!$SYSTEM_LEGEND_TEXT ?= \"sistema\"","!$SYSTEM_BOUNDARY_TYPE ?= \"sistema\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"límite del sistema\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"sistema externo\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"empresa\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"límite de la empresa\"","","!$NODE_LEGEND_TEXT ?= \"nodo\"",""];
35
+ P["themes/puml-theme-c4language_ukrainian"] = P["themes/puml-theme-c4language_ukrainian.puml"] = ["!$THEME = \"C4Language_ukrainian\"","","!$BOUNDARY_LEGEND_TEXT ?= \"межа\"","","!$LEGEND_TITLE_TEXT ?= \"Легенда\"","","!$LEGEND_BOUNDARY ?= \"межа\"","!$LEGEND_BOUNDARY_PRE_PART ?= $LEGEND_BOUNDARY + \"\"","' !$LEGEND_BOUNDARY_POST_PART ?= \" \" + $LEGEND_BOUNDARY","","!$LEGEND_SHADOW_TEXT ?= \"тінь\"","!$LEGEND_NO_SHADOW_TEXT ?= \"без тіні\"","!$LEGEND_NO_FONT_BG_TEXT ?= \"останній колір тексту та фону\"","","!$LEGEND_NO_FONT_TEXT ?= \"останній колір тексту\"","!$LEGEND_NO_BG_TEXT ?= \"останній колір фону\"","!$LEGEND_NO_LINE_TEXT ?= \"останній колір лінії\"","!$LEGEND_ROUNDED_BOX ?= \"округлий блок\"","!$LEGEND_EIGHT_SIDED ?= \"восьмикутний\"","!$LEGEND_DOTTED_LINE ?= \"пунктирна лінія\"","!$LEGEND_DASHED_LINE ?= \"штрихова лінія\"","!$LEGEND_BOLD_LINE ?= \"жирна лінія\"","!$LEGEND_SOLID_LINE ?= \"суцільна лінія\"","' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"transparent, \"","!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= \"\"","!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"штрихова, \"","' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= \"\"","!$LEGEND_THICKNESS ?= \"товщина\"","","!$SKETCH_FOOTER_WARNING ?= \"Попередження:\"","!$SKETCH_FOOTER_TEXT ?= \"Створено для обговорення, потребує перевірки\"","","!$COMPONENT_LEGEND_TEXT ?= \"компонент\"","!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= \"зовнішній компонент\"","","!$CONTAINER_LEGEND_TEXT ?= \"контейнер\"","!$CONTAINER_BOUNDARY_TYPE ?= \"контейнер\"","!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= \"межа контейнера\"","!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= \"зовнішній контейнер\"","","!$PERSON_LEGEND_TEXT ?= \"особа\"","!$EXTERNAL_PERSON_LEGEND_TEXT ?= \"зовнішня особа\"","","!$SYSTEM_LEGEND_TEXT ?= \"система\"","!$SYSTEM_BOUNDARY_TYPE ?= \"система\"","!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= \"межа системи\"","!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= \"зовнішня система\"","","!$ENTERPRISE_BOUNDARY_TYPE ?= \"підприємства\"","!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= \"межа підприємства\"","","!$NODE_LEGEND_TEXT ?= \"вузол\"",""];
36
+ P["themes/puml-theme-c4_blue"] = P["themes/puml-theme-c4_blue.puml"] = ["!$THEME = \"C4_blue\"","","!$ELEMENT_FONT_COLOR ?= \"#FFFFFF\"","","!$PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$PERSON_BG_COLOR ?= \"#08427B\" ","!$PERSON_BORDER_COLOR ?= \"#073B6F\" ","!$EXTERNAL_PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_PERSON_BG_COLOR ?= \"#686868\" ","!$EXTERNAL_PERSON_BORDER_COLOR ?= \"#8A8A8A\" ","","!$SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$SYSTEM_BG_COLOR ?= \"#1168BD\" ","!$SYSTEM_BORDER_COLOR ?= \"#3C7FC0\" ","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_SYSTEM_BG_COLOR ?= \"#999999\" ","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= \"#8A8A8A\" ","","!$CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$CONTAINER_BG_COLOR ?= \"#438DD5\" ","!$CONTAINER_BORDER_COLOR ?= \"#3C7FC0\" ","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_CONTAINER_BG_COLOR ?= \"#B3B3B3\" ","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= \"#A6A6A6\" ","","!$COMPONENT_FONT_COLOR ?= \"#000000\" ","!$COMPONENT_BG_COLOR ?= \"#85BBF0\" ","!$COMPONENT_BORDER_COLOR ?= \"#78A8D8\" ","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR ","!$EXTERNAL_COMPONENT_BG_COLOR ?= \"#CCCCCC\" ","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= \"#BFBFBF\" ","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml) ","' If skinparams and styles are defined with concrete values no variables are required ","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram",""];
37
+ P["themes/puml-theme-c4_blue_new"] = P["themes/puml-theme-c4_blue_new.puml"] = ["!$THEME = \"C4_blue_new\"","","' new style uses rounded rectangles by default, and wireframe style is defined via swapped colors in theme itself","!ROUNDED_STYLE ?= 1","!NEW_C4_STYLE ?= 0","","!$ELEMENT_FONT_COLOR ?= \"#002147\"","!$ELEMENT_BG_COLOR ?= \"#FFFFFF\"","!$ELEMENT_BORDER_COLOR ?= \"#002147\"","!$EXTERNAL_ELEMENT_BG_COLOR ?= \"#F4F4F4\"","!$EXTERNAL_ELEMENT_BORDER_COLOR ?= \"#080808\"","","!$PERSON_FONT_COLOR ?= \"#002147\"","!$PERSON_BG_COLOR ?= $ELEMENT_BG_COLOR","!$PERSON_BORDER_COLOR ?= \"#002147\"","!$EXTERNAL_PERSON_FONT_COLOR ?= \"#002147\"","!$EXTERNAL_PERSON_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_PERSON_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$SYSTEM_FONT_COLOR ?= \"#0057B8\"","!$SYSTEM_BG_COLOR ?= $ELEMENT_BG_COLOR","!$SYSTEM_BORDER_COLOR ?= \"#0057B8\"","!$EXTERNAL_SYSTEM_FONT_COLOR ?= \"#0057B8\"","!$EXTERNAL_SYSTEM_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$CONTAINER_FONT_COLOR ?= \"#0074D9\"","!$CONTAINER_BG_COLOR ?= $ELEMENT_BG_COLOR","!$CONTAINER_BORDER_COLOR ?= \"#0074D9\"","!$EXTERNAL_CONTAINER_FONT_COLOR ?= \"#0074D9\"","!$EXTERNAL_CONTAINER_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$COMPONENT_FONT_COLOR ?= \"#002147\"","!$COMPONENT_BG_COLOR ?= $ELEMENT_BG_COLOR","!$COMPONENT_BORDER_COLOR ?= \"#002147\"","!$EXTERNAL_COMPONENT_FONT_COLOR ?= \"#002147\"","!$EXTERNAL_COMPONENT_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml)","' If skinparams and styles are defined with concrete values no variables are required","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram",""];
38
+ P["themes/puml-theme-c4_brown"] = P["themes/puml-theme-c4_brown.puml"] = ["!$THEME = \"C4_brown\"","","!$ELEMENT_FONT_COLOR ?= \"#FFFFFF\"","","!$PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$PERSON_BG_COLOR ?= \"#7B4208\" ","!$PERSON_BORDER_COLOR ?= \"#6F3B07\" ","!$EXTERNAL_PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_PERSON_BG_COLOR ?= \"#686868\" ","!$EXTERNAL_PERSON_BORDER_COLOR ?= \"#8A8A8A\" ","","!$SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$SYSTEM_BG_COLOR ?= \"#BD6811\" ","!$SYSTEM_BORDER_COLOR ?= \"#C07F3C\" ","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_SYSTEM_BG_COLOR ?= \"#999999\" ","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= \"#8A8A8A\" ","","!$CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$CONTAINER_BG_COLOR ?= \"#D58D43\" ","!$CONTAINER_BORDER_COLOR ?= \"#C07F3C\" ","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_CONTAINER_BG_COLOR ?= \"#B3B3B3\" ","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= \"#A6A6A6\" ","","!$COMPONENT_FONT_COLOR ?= \"#000000\" ","!$COMPONENT_BG_COLOR ?= \"#F0BB85\" ","!$COMPONENT_BORDER_COLOR ?= \"#D8A878\" ","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR ","!$EXTERNAL_COMPONENT_BG_COLOR ?= \"#CCCCCC\" ","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= \"#BFBFBF\" ","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml) ","' If skinparams and styles are defined with concrete values no variables are required ","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
39
+ P["themes/puml-theme-c4_brown_new"] = P["themes/puml-theme-c4_brown_new.puml"] = ["!$THEME = \"C4_brown_new\"","","' new style uses rounded rectangles by default, and wireframe style is defined via swapped colors in theme itself","!ROUNDED_STYLE ?= 1","!NEW_C4_STYLE ?= 0","","!$ELEMENT_FONT_COLOR ?= \"#472100\"","!$ELEMENT_BG_COLOR ?= \"#FFFFFF\"","!$ELEMENT_BORDER_COLOR ?= \"#472100\"","!$EXTERNAL_ELEMENT_BG_COLOR ?= \"#F4F4F4\"","!$EXTERNAL_ELEMENT_BORDER_COLOR ?= \"#080808\"","","!$PERSON_FONT_COLOR ?= \"#472100\"","!$PERSON_BG_COLOR ?= $ELEMENT_BG_COLOR","!$PERSON_BORDER_COLOR ?= \"#472100\"","!$EXTERNAL_PERSON_FONT_COLOR ?= \"#472100\"","!$EXTERNAL_PERSON_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_PERSON_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$SYSTEM_FONT_COLOR ?= \"#B85700\"","!$SYSTEM_BG_COLOR ?= $ELEMENT_BG_COLOR","!$SYSTEM_BORDER_COLOR ?= \"#B85700\"","!$EXTERNAL_SYSTEM_FONT_COLOR ?= \"#B85700\"","!$EXTERNAL_SYSTEM_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$CONTAINER_FONT_COLOR ?= \"#D97400\"","!$CONTAINER_BG_COLOR ?= $ELEMENT_BG_COLOR","!$CONTAINER_BORDER_COLOR ?= \"#D97400\"","!$EXTERNAL_CONTAINER_FONT_COLOR ?= \"#D97400\"","!$EXTERNAL_CONTAINER_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$COMPONENT_FONT_COLOR ?= \"#472100\"","!$COMPONENT_BG_COLOR ?= $ELEMENT_BG_COLOR","!$COMPONENT_BORDER_COLOR ?= \"#472100\"","!$EXTERNAL_COMPONENT_FONT_COLOR ?= \"#472100\"","!$EXTERNAL_COMPONENT_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml)","' If skinparams and styles are defined with concrete values no variables are required","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
40
+ P["themes/puml-theme-c4_green"] = P["themes/puml-theme-c4_green.puml"] = ["!$THEME = \"C4_green\"","","!$ELEMENT_FONT_COLOR ?= \"#FFFFFF\"","","!$PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$PERSON_BG_COLOR ?= \"#427B08\" ","!$PERSON_BORDER_COLOR ?= \"#3B6F07\" ","!$EXTERNAL_PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_PERSON_BG_COLOR ?= \"#686868\" ","!$EXTERNAL_PERSON_BORDER_COLOR ?= \"#8A8A8A\" ","","!$SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$SYSTEM_BG_COLOR ?= \"#68BD11\" ","!$SYSTEM_BORDER_COLOR ?= \"#7FC03C\" ","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_SYSTEM_BG_COLOR ?= \"#999999\" ","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= \"#8A8A8A\" ","","!$CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$CONTAINER_BG_COLOR ?= \"#8DD543\" ","!$CONTAINER_BORDER_COLOR ?= \"#7FC03C\" ","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_CONTAINER_BG_COLOR ?= \"#B3B3B3\" ","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= \"#A6A6A6\" ","","!$COMPONENT_FONT_COLOR ?= \"#000000\" ","!$COMPONENT_BG_COLOR ?= \"#BBF085\" ","!$COMPONENT_BORDER_COLOR ?= \"#A8D878\" ","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR ","!$EXTERNAL_COMPONENT_BG_COLOR ?= \"#CCCCCC\" ","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= \"#BFBFBF\" ","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml) ","' If skinparams and styles are defined with concrete values no variables are required ","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
41
+ P["themes/puml-theme-c4_green_new"] = P["themes/puml-theme-c4_green_new.puml"] = ["!$THEME = \"C4_green_new\"","","' new style uses rounded rectangles by default, and wireframe style is defined via swapped colors in theme itself","!ROUNDED_STYLE ?= 1","!NEW_C4_STYLE ?= 0","","!$ELEMENT_FONT_COLOR ?= \"#004721\"","!$ELEMENT_BG_COLOR ?= \"#FFFFFF\"","!$ELEMENT_BORDER_COLOR ?= \"#004721\"","!$EXTERNAL_ELEMENT_BG_COLOR ?= \"#F4F4F4\"","!$EXTERNAL_ELEMENT_BORDER_COLOR ?= \"#080808\"","","!$PERSON_FONT_COLOR ?= \"#004721\"","!$PERSON_BG_COLOR ?= $ELEMENT_BG_COLOR","!$PERSON_BORDER_COLOR ?= \"#004721\"","!$EXTERNAL_PERSON_FONT_COLOR ?= \"#004721\"","!$EXTERNAL_PERSON_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_PERSON_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$SYSTEM_FONT_COLOR ?= \"#00B857\"","!$SYSTEM_BG_COLOR ?= $ELEMENT_BG_COLOR","!$SYSTEM_BORDER_COLOR ?= \"#00B857\"","!$EXTERNAL_SYSTEM_FONT_COLOR ?= \"#00B857\"","!$EXTERNAL_SYSTEM_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$CONTAINER_FONT_COLOR ?= \"#00D974\"","!$CONTAINER_BG_COLOR ?= $ELEMENT_BG_COLOR","!$CONTAINER_BORDER_COLOR ?= \"#00D974\"","!$EXTERNAL_CONTAINER_FONT_COLOR ?= \"#00D974\"","!$EXTERNAL_CONTAINER_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$COMPONENT_FONT_COLOR ?= \"#004721\"","!$COMPONENT_BG_COLOR ?= $ELEMENT_BG_COLOR","!$COMPONENT_BORDER_COLOR ?= \"#004721\"","!$EXTERNAL_COMPONENT_FONT_COLOR ?= \"#004721\"","!$EXTERNAL_COMPONENT_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml)","' If skinparams and styles are defined with concrete values no variables are required","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
42
+ P["themes/puml-theme-c4_sandstone"] = P["themes/puml-theme-c4_sandstone.puml"] = ["!theme sandstone","","!$THEME = \"C4_sandstone\"","","!$ELEMENT_FONT_COLOR ?= $PRIMARY_TEXT","","!$ARROW_COLOR ?= $PRIMARY_LIGHT","!$ARROW_FONT_COLOR ?= $ARROW_COLOR","","!$PERSON_FONT_COLOR ?= $INFO_TEXT","!$PERSON_BG_COLOR ?= $INFO","!$PERSON_BORDER_COLOR ?= $INFO_DARK","","!$EXTERNAL_PERSON_FONT_COLOR ?= $INFO_DARK","!$EXTERNAL_PERSON_BG_COLOR ?= $LIGHT","!$EXTERNAL_PERSON_BORDER_COLOR ?= $INFO_DARK","","!$SYSTEM_FONT_COLOR ?= $WHITE","!$SYSTEM_BG_COLOR ?= $DARK","!$SYSTEM_BORDER_COLOR ?= $DARK_DARK","","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $DARK_DARK","!$EXTERNAL_SYSTEM_BG_COLOR ?= $LIGHT","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $DARK_DARK","","!$CONTAINER_FONT_COLOR ?= $WARNING_TEXT","!$CONTAINER_BG_COLOR ?= $WARNING","!$CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $WARNING_DARK","!$EXTERNAL_CONTAINER_BG_COLOR ?= $LIGHT","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$COMPONENT_FONT_COLOR ?= $PRIMARY_TEXT","!$COMPONENT_BG_COLOR ?= $PRIMARY","!$COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $PRIMARY_DARK","!$EXTERNAL_COMPONENT_BG_COLOR ?= $LIGHT","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$NODE_FONT_COLOR ?= $LIGHT","!$NODE_BG_COLOR ?= $SECONDARY","!$NODE_BORDER_COLOR ?= $SECONDARY_DARK","","!$BOUNDARY_COLOR ?= $PRIMARY_DARK","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_BORDER_STYLE ?= \"solid\"","' border is not dashed in theme \"united\", remove dashed from legend text too","!$LEGEND_DASHED_BOUNDARY ?= \"\"","!$LEGEND_DASHED_TRANSPARENT_BOUNDARY ?= \"\"","!$ENTERPRISE_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$SYSTEM_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$CONTAINER_BOUNDARY_COLOR ?= $CONTAINER_BORDER_COLOR","","!$LEGEND_TITLE_COLOR ?= $LIGHT","!$LEGEND_FONT_COLOR ?= $LIGHT","!$LEGEND_BG_COLOR ?= $SECONDARY","!$LEGEND_BORDER_COLOR ?= $SECONDARY_DARK","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' \"C4 styled\" default is no foot boxes","hide footbox","","' fix wrong ReferenceHeaderFontColor","<style>","referenceHeader {"," fontcolor $INFO","}","</style>","","' fix invisible SequenceDelayFontColor","<style>","sequenceDiagram {"," delay {"," FontColor $DARK"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram",""];
43
+ P["themes/puml-theme-c4_superhero"] = P["themes/puml-theme-c4_superhero.puml"] = ["!$BGCOLOR ?= black","","!theme superhero","","!$THEME = \"C4_superhero\"","","!$ELEMENT_FONT_COLOR ?= $PRIMARY_TEXT","","!$ARROW_COLOR ?= $PRIMARY_LIGHT","!$ARROW_FONT_COLOR ?= $ARROW_COLOR","","!$PERSON_FONT_COLOR ?= $INFO_TEXT","!$PERSON_BG_COLOR ?= $INFO","!$PERSON_BORDER_COLOR ?= $INFO_DARK","","!$EXTERNAL_PERSON_FONT_COLOR ?= $INFO_DARK","!$EXTERNAL_PERSON_BG_COLOR ?= $SECONDARY_DARK","!$EXTERNAL_PERSON_BORDER_COLOR ?= $INFO_DARK","","!$SYSTEM_FONT_COLOR ?= $WHITE","!$SYSTEM_BG_COLOR ?= $DARK","!$SYSTEM_BORDER_COLOR ?= $DARK_DARK","","!$EXTERNAL_SYSTEM_FONT_COLOR ?= 000000","!$EXTERNAL_SYSTEM_BG_COLOR ?= $SECONDARY_DARK","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $DARK_LIGHT","","!$CONTAINER_FONT_COLOR ?= $WARNING_TEXT","!$CONTAINER_BG_COLOR ?= $WARNING","!$CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $WARNING_DARK","!$EXTERNAL_CONTAINER_BG_COLOR ?= $SECONDARY_DARK","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$COMPONENT_FONT_COLOR ?= $PRIMARY_TEXT","!$COMPONENT_BG_COLOR ?= $PRIMARY","!$COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $PRIMARY_DARK","!$EXTERNAL_COMPONENT_BG_COLOR ?= $SECONDARY_DARK","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$NODE_FONT_COLOR ?= $LIGHT","!$NODE_BG_COLOR ?= $SECONDARY","!$NODE_BORDER_COLOR ?= $SECONDARY_DARK","","!$BOUNDARY_COLOR ?= $PRIMARY_DARK","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_BORDER_STYLE ?= \"solid\"","' border is not dashed in theme \"united\", remove dashed from legend text too","!$LEGEND_DASHED_BOUNDARY ?= \"\"","!$LEGEND_DASHED_TRANSPARENT_BOUNDARY ?= \"\"","!$ENTERPRISE_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$SYSTEM_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$CONTAINER_BOUNDARY_COLOR ?= $CONTAINER_BORDER_COLOR","","!$LEGEND_TITLE_COLOR ?= $LIGHT","!$LEGEND_FONT_COLOR ?= $LIGHT","!$LEGEND_BG_COLOR ?= $SECONDARY","!$LEGEND_BORDER_COLOR ?= $SECONDARY_DARK","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' \"C4 styled\" default is no foot boxes","hide footbox","","' fix wrong ReferenceHeaderFontColor","<style>","referenceHeader {"," fontcolor $INFO","}","</style>","","' fix invisible SequenceDelayFontColor","<style>","sequenceDiagram {"," delay {"," FontColor $DARK"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram",""];
44
+ P["themes/puml-theme-c4_united"] = P["themes/puml-theme-c4_united.puml"] = ["!theme united","","!$THEME = \"C4_united\"","","!$ELEMENT_FONT_COLOR ?= $PRIMARY_TEXT","","!$ARROW_COLOR ?= $PRIMARY_LIGHT","!$ARROW_FONT_COLOR ?= $ARROW_COLOR","","!$PERSON_FONT_COLOR ?= $INFO_TEXT","!$PERSON_BG_COLOR ?= $INFO","!$PERSON_BORDER_COLOR ?= $INFO_DARK","","!$EXTERNAL_PERSON_FONT_COLOR ?= $INFO_DARK","!$EXTERNAL_PERSON_BG_COLOR ?= $LIGHT","!$EXTERNAL_PERSON_BORDER_COLOR ?= $INFO_DARK","","!$SYSTEM_FONT_COLOR ?= $WHITE","!$SYSTEM_BG_COLOR ?= $DARK","!$SYSTEM_BORDER_COLOR ?= $DARK_DARK","","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $DARK_DARK","!$EXTERNAL_SYSTEM_BG_COLOR ?= $LIGHT","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $DARK_DARK","","!$CONTAINER_FONT_COLOR ?= $WARNING_TEXT","!$CONTAINER_BG_COLOR ?= $WARNING","!$CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $WARNING_DARK","!$EXTERNAL_CONTAINER_BG_COLOR ?= $LIGHT","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $WARNING_DARK","","!$COMPONENT_FONT_COLOR ?= $PRIMARY_TEXT","!$COMPONENT_BG_COLOR ?= $PRIMARY","!$COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $PRIMARY_DARK","!$EXTERNAL_COMPONENT_BG_COLOR ?= $LIGHT","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $PRIMARY_DARK","","!$NODE_FONT_COLOR ?= $LIGHT","!$NODE_BG_COLOR ?= $SECONDARY","!$NODE_BORDER_COLOR ?= $SECONDARY_DARK","","!$BOUNDARY_COLOR ?= $PRIMARY_DARK","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_BORDER_STYLE ?= \"solid\"","' border is not dashed in theme \"united\", remove dashed from legend text too","!$LEGEND_DASHED_BOUNDARY ?= \"\"","!$LEGEND_DASHED_TRANSPARENT_BOUNDARY ?= \"\"","!$ENTERPRISE_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$SYSTEM_BOUNDARY_COLOR ?= $SYSTEM_BORDER_COLOR","!$CONTAINER_BOUNDARY_COLOR ?= $CONTAINER_BORDER_COLOR","","!$LEGEND_TITLE_COLOR ?= $LIGHT","!$LEGEND_FONT_COLOR ?= $LIGHT","!$LEGEND_BG_COLOR ?= $SECONDARY","!$LEGEND_BORDER_COLOR ?= $SECONDARY_DARK","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' \"C4 styled\" default is no foot boxes","hide footbox","","' fix wrong ReferenceHeaderFontColor","<style>","referenceHeader {"," fontcolor $INFO","}","</style>","","' fix invisible SequenceDelayFontColor","<style>","sequenceDiagram {"," delay {"," FontColor $DARK"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram",""];
45
+ P["themes/puml-theme-c4_violet"] = P["themes/puml-theme-c4_violet.puml"] = ["!$THEME = \"C4_violet\"","","!$ELEMENT_FONT_COLOR ?= \"#FFFFFF\"","","!$PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$PERSON_BG_COLOR ?= \"#42087B\" ","!$PERSON_BORDER_COLOR ?= \"#3B076F\" ","!$EXTERNAL_PERSON_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_PERSON_BG_COLOR ?= \"#686868\" ","!$EXTERNAL_PERSON_BORDER_COLOR ?= \"#8A8A8A\" ","","!$SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$SYSTEM_BG_COLOR ?= \"#6811BD\" ","!$SYSTEM_BORDER_COLOR ?= \"#7F3CC0\" ","!$EXTERNAL_SYSTEM_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_SYSTEM_BG_COLOR ?= \"#999999\" ","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= \"#8A8A8A\" ","","!$CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$CONTAINER_BG_COLOR ?= \"#8D43D5\" ","!$CONTAINER_BORDER_COLOR ?= \"#7F3CC0\" ","!$EXTERNAL_CONTAINER_FONT_COLOR ?= $ELEMENT_FONT_COLOR ","!$EXTERNAL_CONTAINER_BG_COLOR ?= \"#B3B3B3\" ","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= \"#A6A6A6\" ","","!$COMPONENT_FONT_COLOR ?= \"#000000\" ","!$COMPONENT_BG_COLOR ?= \"#BB85F0\" ","!$COMPONENT_BORDER_COLOR ?= \"#A878D8\" ","!$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR ","!$EXTERNAL_COMPONENT_BG_COLOR ?= \"#CCCCCC\" ","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= \"#BFBFBF\" ","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml) ","' If skinparams and styles are defined with concrete values no variables are required ","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
46
+ P["themes/puml-theme-c4_violet_new"] = P["themes/puml-theme-c4_violet_new.puml"] = ["!$THEME = \"C4_violet_new\"","","' new style uses rounded rectangles by default, and wireframe style is defined via swapped colors in theme itself","!ROUNDED_STYLE ?= 1","!NEW_C4_STYLE ?= 0","","!$ELEMENT_FONT_COLOR ?= \"#4B006E\"","!$ELEMENT_BG_COLOR ?= \"#FFFFFF\"","!$ELEMENT_BORDER_COLOR ?= \"#4B006E\"","!$EXTERNAL_ELEMENT_BG_COLOR ?= \"#F4F4F4\"","!$EXTERNAL_ELEMENT_BORDER_COLOR ?= \"#080808\"","","!$PERSON_FONT_COLOR ?= \"#4B006E\"","!$PERSON_BG_COLOR ?= $ELEMENT_BG_COLOR","!$PERSON_BORDER_COLOR ?= \"#4B006E\"","!$EXTERNAL_PERSON_FONT_COLOR ?= \"#4B006E\"","!$EXTERNAL_PERSON_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_PERSON_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$SYSTEM_FONT_COLOR ?= \"#7C2AE8\"","!$SYSTEM_BG_COLOR ?= $ELEMENT_BG_COLOR","!$SYSTEM_BORDER_COLOR ?= \"#7C2AE8\"","!$EXTERNAL_SYSTEM_FONT_COLOR ?= \"#7C2AE8\"","!$EXTERNAL_SYSTEM_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_SYSTEM_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$CONTAINER_FONT_COLOR ?= \"#A259E6\"","!$CONTAINER_BG_COLOR ?= $ELEMENT_BG_COLOR","!$CONTAINER_BORDER_COLOR ?= \"#A259E6\"","!$EXTERNAL_CONTAINER_FONT_COLOR ?= \"#A259E6\"","!$EXTERNAL_CONTAINER_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_CONTAINER_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$COMPONENT_FONT_COLOR ?= \"#4B006E\"","!$COMPONENT_BG_COLOR ?= $ELEMENT_BG_COLOR","!$COMPONENT_BORDER_COLOR ?= \"#4B006E\"","!$EXTERNAL_COMPONENT_FONT_COLOR ?= \"#4B006E\"","!$EXTERNAL_COMPONENT_BG_COLOR ?= $EXTERNAL_ELEMENT_BG_COLOR","!$EXTERNAL_COMPONENT_BORDER_COLOR ?= $EXTERNAL_ELEMENT_BORDER_COLOR","","!$NODE_FONT_COLOR ?= \"#000000\"","!$NODE_BG_COLOR ?= \"#FFFFFF\"","!$NODE_BORDER_COLOR ?= \"#A2A2A2\"","","' <<<<<<<<<<<<< sequence diagram is styled via skinparam and style","","' $BOUNDARY_BG_COLOR... have to be defined in theme itself that it can be used in styles,...","' (no default values which are defined in C4.puml)","' If skinparams and styles are defined with concrete values no variables are required","!$BOUNDARY_BG_COLOR ?= \"transparent\"","!$BOUNDARY_COLOR ?= \"#444444\"","!$ARROW_COLOR ?= \"#666666\"","","' replace transparent with concrete background that it can be used as font color too","!if ($BOUNDARY_BG_COLOR == \"transparent\")"," !$SEQUENCE_BG_COLOR = white","!else"," !$SEQUENCE_BG_COLOR = $BOUNDARY_BG_COLOR","!endif","","' \"C4 styled\" default is no foot boxes","hide footbox","' \"C4 styled\" default is that lifeline is arrow color","skinparam SequenceLifelineBorderColor $ARROW_COLOR","","skinparam SequenceGroupBodyBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupFontColor $BOUNDARY_COLOR","skinparam SequenceGroupBackgroundColor $BOUNDARY_COLOR","skinparam SequenceGroupHeaderFontColor $SEQUENCE_BG_COLOR","skinparam SequenceGroupBorderColor $BOUNDARY_COLOR","","skinparam SequenceReferenceBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceReferenceFontColor $BOUNDARY_COLOR","skinparam SequenceReferenceHeaderBackgroundColor $BOUNDARY_COLOR","' VIA STYLE","' skinparam SequenceReferenceHeaderFontColor $SEQUENCE_BG_COLOR","<style>","referenceHeader {"," fontcolor $SEQUENCE_BG_COLOR","}","</style>","skinparam SequenceReferenceBorderColor $BOUNDARY_COLOR","","skinparam SequenceDividerBackgroundColor $SEQUENCE_BG_COLOR","skinparam SequenceDividerFontColor $BOUNDARY_COLOR","skinparam SequenceDividerBorderColor $BOUNDARY_COLOR","","' VIA STYLE","' skinparam SequenceDelayFontColor green","<style>","sequenceDiagram {"," delay {"," FontColor $BOUNDARY_COLOR"," }","}","</style>","","' <<<<<<<<<<<<< end sequence diagram","",""];
47
+ })();