13
13
' ##################################
14
14
!function C4Version ()
15
15
' 2 spaces and ' are used as unique marker, that the release scripts makes the correct version update
16
- !$c4Version = "2 . 10 .0 extended"
16
+ !$c4Version = "2 . 11 .0 extended"
17
17
!return $c4Version
18
18
!end function
19
19
@@ -54,6 +54,9 @@ rectangle C4VersionDetailsArea <<legendArea>> [
54
54
' Labels
55
55
' ##################################
56
56
57
+ !$BOUNDARY_LEGEND_TEXT ?= "boundary "
58
+
59
+ !$LEGEND_TITLE_TEXT ?= "Legend "
57
60
!$LEGEND_SHADOW_TEXT ?= "shadow "
58
61
!$LEGEND_NO_SHADOW_TEXT ?= "no shadow "
59
62
!$LEGEND_NO_FONT_BG_TEXT ?= "last text and back color "
@@ -68,6 +71,9 @@ rectangle C4VersionDetailsArea <<legendArea>> [
68
71
!$LEGEND_SOLID_LINE ?= "solid "
69
72
70
73
!$LEGEND_BOUNDARY ?= "boundary "
74
+ !$LEGEND_BOUNDARY_PRE_PART ?= ""
75
+ !$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY
76
+
71
77
' ignore (boundary) transparent atm, that the legend is smaller
72
78
' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, "
73
79
!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= ""
@@ -692,13 +698,13 @@ $elementSkin
692
698
!if (%strpos ($tagStereo , "boundary" ) >= 0 )
693
699
!if ($tagStereo == "boundary ")
694
700
!$isBoundary = 1
695
- !$tagEntry = $tagEntry + " " + $LEGEND_BOUNDARY + " "
701
+ !$tagEntry = $LEGEND_BOUNDARY_PRE_PART + $ tagEntry + $LEGEND_BOUNDARY_POST_PART + " "
696
702
!else
697
703
' if contains/ends with _boundary remove _boundary and add "boundary (dashed)"
698
704
!$pos = %strpos ($tagStereo , "_boundary ")
699
705
!if ($pos > 0 )
700
706
!$isBoundary = 1
701
- !$tagEntry = $tagEntry + " " + %substr ($tagStereo , 0 ,$pos ) + " " +$ LEGEND_BOUNDARY + " "
707
+ !$tagEntry = $tagEntry + " " + $ LEGEND_BOUNDARY_PRE_PART + %substr ($tagStereo , 0 ,$pos ) + $ LEGEND_BOUNDARY_POST_PART + " "
702
708
!endif
703
709
!endif
704
710
!endif
@@ -1027,6 +1033,10 @@ UpdateElementStyle($elementName, $bgColor, $fontColor, $borderColor, $shadowing)
1027
1033
$elementSkin
1028
1034
!endprocedure
1029
1035
1036
+ !unquoted procedure UpdateLegendTitle ($newTitle )
1037
+ !$LEGEND_TITLE_TEXT = $newTitle
1038
+ !endprocedure
1039
+
1030
1040
' tags/stereotypes have to be delimited with \n
1031
1041
!unquoted procedure SetDefaultLegendEntries ($tagStereoEntries )
1032
1042
!$tagDefaultLegend = $tagStereoEntries
@@ -1234,7 +1244,7 @@ hide stereotype
1234
1244
1235
1245
!procedure $getLegendTable ($detailsFormat )
1236
1246
!global $LEGEND_DETAILS_SIZE = $getLegendDetailsSize ($detailsFormat )
1237
- <$colorWithHash (transparent ),$colorWithHash (transparent )>|<color :$LEGEND_TITLE_COLOR >**Legend **</color > |
1247
+ <$colorWithHash (transparent ),$colorWithHash (transparent )>|<color :$LEGEND_TITLE_COLOR >**$ LEGEND_TITLE_TEXT **</color > |
1238
1248
$showActiveLegendEntries ($tagDefaultLegend )
1239
1249
$showActiveLegendEntries ($tagCustomLegend )
1240
1250
!endprocedure
@@ -1457,7 +1467,7 @@ rectangle "$getBoundary($label, $type, $descr, $sprite)" $toStereos("boundary",
1457
1467
!endprocedure
1458
1468
1459
1469
' Boundary Styling
1460
- UpdateBoundaryStyle ("" , $bgColor = $BOUNDARY_BG_COLOR , $fontColor = $BOUNDARY_COLOR , $borderColor = $BOUNDARY_COLOR , $borderStyle = DashedLine ())
1470
+ UpdateBoundaryStyle ("" , $bgColor = $BOUNDARY_BG_COLOR , $fontColor = $BOUNDARY_COLOR , $borderColor = $BOUNDARY_COLOR , $borderStyle = DashedLine (), $ legendText = "$ BOUNDARY_LEGEND_TEXT " )
1461
1471
1462
1472
' Index
1463
1473
' ##################################
0 commit comments