From 621a191552ff5b9a3e844e9353588e3c56a04432 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Sun, 11 Apr 2021 13:03:57 +0200 Subject: [PATCH 1/2] Add backward compatibility for SHOW_DYNAMIC_LEGEND --- C4.puml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/C4.puml b/C4.puml index 1dd207d..d89fe2b 100644 --- a/C4.puml +++ b/C4.puml @@ -515,6 +515,11 @@ $showActiveLegendEntries($tagCustomLegend) endlegend !endprocedure +/' @deprecated in favor of SHOW_LEGEND '/ +!unquoted procedure SHOW_DYNAMIC_LEGEND($hideStereotype="true") +SHOW_LEGEND($hideStereotype) +!endprocedure + ' Boundaries ' ################################## From 34353ddd4a496c7f6c511d6dac7ee163677fdcc8 Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Sun, 11 Apr 2021 13:21:34 +0200 Subject: [PATCH 2/2] Add backward compatibility for UpdateSkinparamsAndLegendEntry. --- C4.puml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/C4.puml b/C4.puml index d89fe2b..51d9c34 100644 --- a/C4.puml +++ b/C4.puml @@ -315,6 +315,11 @@ $defineSkinparams($elementName, $bgColor, $fontColor, $borderColor, $shadowing) %set_variable_value("$" + $elementName + "LegendEntry", $tagEntry) !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 {" + %newline()