From bc4e1df141126f07c02dfd3f60463523631677fd Mon Sep 17 00:00:00 2001 From: KIRCHSTH Date: Tue, 1 Nov 2022 10:14:18 +0100 Subject: [PATCH] PlantUML >=v.1.2022.2 can merge line and text colors of relationship tags --- README.md | 7 ++++--- percy/TestLegend.puml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1f1e4e7..7aaa22c 100644 --- a/README.md +++ b/README.md @@ -549,15 +549,16 @@ Like the element specific tag definitions exist boundary specific calls with the ### Comments -* `SHOW_LEGEND()` supports the customized stereotypes - (`LAYOUT_WITH_LEGEND()` cannot be used, if the custom tags/stereotypes should be displayed in the legend). +* `SHOW_LEGEND()` supports the customized stereotypes + (`LAYOUT_WITH_LEGEND()` cannot be used, if the custom tags/stereotypes should be displayed in the legend). * `SHOW_LEGEND()` has to be last line in diagram. * Don't use space between `$tags` and `=` (PlantUML does not support it). * Don't use `,` as part of the tag names (PlantUML does not support it in combination with keyword arguments). * If 2 tags define the same skinparam, the first definition is used. * If specific skinparams have to be merged (e.g. 2 tags change the font color) an additional combined tag has to be defined. Use `&` as part of combined tag names. -* Colors of relationship tags cannot be automatically merged (PlantUML does not support it). +* (Obsolete, fixed in PlantUML >=v.1.2022.2) + Colors of relationship tags cannot be automatically merged (PlantUML does not support it). If one tag modifies the line color and the other the text color, an additional combined tag has to be defined and used. ### Sample with different tag combinations diff --git a/percy/TestLegend.puml b/percy/TestLegend.puml index 96286eb..b33d25b 100644 --- a/percy/TestLegend.puml +++ b/percy/TestLegend.puml @@ -31,7 +31,8 @@ AddRelTag("line1", $lineColor="green", $textColor="blue") AddRelTag("line2", $lineColor="blue", $textColor="green") AddRelTag("line3", $textColor="orange") AddRelTag("line4", $lineColor="orange") -' PlantUML cannot combine line styles, a combination has to be added as workaround as first additional tag +' outdated: PlantUML cannot combine line styles, a combination has to be added as workaround as first additional tag +' fixed in meantime AddRelTag("line3&line4", $lineColor="orange", $textColor="orange") AddRelTag("unusedLine", $lineColor="red", $textColor="red") @@ -57,8 +58,8 @@ Rel(allInOne, component, "uses line 1", $tags="line1") Rel(allInOne, component, "uses line 2", $tags="line2") Rel(allInOne, system1A, "uses line 3", $tags="line3") Rel(allInOne, system1A, "uses line 4", $tags="line4") -Rel(allInOne, system2, "line 3+4 cannot be combined without workaround", $tags="line3+line4") -Rel(allInOne, system2, "line 3+4 with workaround", $tags="line3&line4+line3+line4") +Rel(allInOne, system2, "line 3+4 (merge fixed in meantime)", $tags="line3+line4") +Rel(allInOne, system2, "line 3+4 with workaround (obsolete in meantime)", $tags="line3&line4+line3+line4") SHOW_LEGEND(false) @enduml