|
1 |
| -' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally |
| 1 | +' convert it with additional command line argument -DRELATIVE_INCLUDE="relative/absolute" to use locally |
2 | 2 | !if %variable_exists("RELATIVE_INCLUDE")
|
3 | 3 | !include ./C4_Component.puml
|
4 | 4 | !else
|
@@ -192,7 +192,6 @@ sequenceDiagram {
|
192 | 192 | !return $breakWithNewline($text, $lineStart, $lineEnd, $REL_TECHN_MAX_CHAR_WIDTH)
|
193 | 193 | !endfunction
|
194 | 194 |
|
195 |
| -' description is not displayed (size too big, line breaks not supported) |
196 | 195 | ' properties are not displayed in sequence diagram (size would be too big)
|
197 | 196 | ' $breakLabel() not required by participant
|
198 | 197 | !procedure $getParticipant($elementType, $alias, $label, $techn, $descr, $sprite, $tags, $link)
|
@@ -324,55 +323,64 @@ $calcDescr
|
324 | 323 | ' alias ignored
|
325 | 324 | ' $breakLabel() not required by participant
|
326 | 325 |
|
327 |
| -!unquoted procedure Boundary($alias, $label, $type="", $tags="", $link="") |
| 326 | +!unquoted procedure Boundary($alias, $label, $type="", $tags="", $link="", $descr = "") |
328 | 327 | !$boundaryTags = $addBoundaryPostfix($tags)
|
329 |
| -' nodes $type reuses $techn definition of $boundaryTags |
| 328 | +' boundary $type reuses $techn definition of $boundaryTags |
330 | 329 | !$type=$toElementArg($type, $boundaryTags, "ElementTagTechn", "boundary")
|
| 330 | +!$sprite=$toElementArg("", $boundaryTags, "ElementTagSprite", "boundary") |
| 331 | +!$labelSprite="" |
| 332 | +!if ($sprite != "") |
| 333 | + ' add sprite in label line that it is more compact |
| 334 | + !$labelSprite = $getSprite($smallVersionSprite($sprite, $BOUNDARY_IMAGE_SIZE_FACTOR)) + ' ' |
| 335 | +!endif |
331 | 336 | !if ($link != "")
|
332 | 337 | !$usedNewLine = ']]\n== [[' + $link + ' '
|
333 |
| - !$labelType = '== [[' + $link + ' ' + $breakText($label, $usedNewLine) + ']]' |
| 338 | + !$labelType = '== [[' + $link + ' ' + $labelSprite + $breakText($label, $usedNewLine) + ']]' |
334 | 339 | !else
|
335 | 340 | !$usedNewLine = '\n== '
|
336 |
| - !$labelType = $breakText($label, $usedNewLine) |
| 341 | + !$labelType = $labelSprite + $breakText($label, $usedNewLine) |
337 | 342 | !endif
|
338 | 343 | !if (type != "")
|
339 | 344 | !$labelType = $labelType + '\n<size:' + $TECHN_FONT_SIZE + '>[' + $type + ']</size>'
|
340 | 345 | !endif
|
| 346 | +!if ($display_element_description == %true() && $descr != "") |
| 347 | + !$labelType = $labelType + '\n\n' + $breakDescr($descr, $BOUNDARY_DESCR_MAX_CHAR_WIDTH) |
| 348 | +!endif |
341 | 349 | box "$labelType" $toStereos("boundary", $boundaryTags)
|
342 | 350 | !endprocedure
|
343 | 351 |
|
344 | 352 | !procedure Boundary_End()
|
345 | 353 | end box
|
346 | 354 | !endprocedure
|
347 | 355 |
|
348 |
| -!unquoted procedure Enterprise_Boundary($alias, $label, $tags="", $link="") |
| 356 | +!unquoted procedure Enterprise_Boundary($alias, $label, $tags="", $link="", $descr = "") |
349 | 357 | !if ($tags != "")
|
350 | 358 | !$allTags = $tags + '+enterprise'
|
351 | 359 | !else
|
352 | 360 | !$allTags = 'enterprise'
|
353 | 361 | !endif
|
354 | 362 | ' $type defined via $tag style
|
355 |
| - Boundary($alias, $label, "", $allTags, $link) |
| 363 | + Boundary($alias, $label, "", $allTags, $link, $descr) |
356 | 364 | !endprocedure
|
357 | 365 |
|
358 |
| -!unquoted procedure System_Boundary($alias, $label, $tags="", $link="") |
| 366 | +!unquoted procedure System_Boundary($alias, $label, $tags="", $link="", $descr = "") |
359 | 367 | !if ($tags != "")
|
360 | 368 | !$allTags = $tags + '+system'
|
361 | 369 | !else
|
362 | 370 | !$allTags = 'system'
|
363 | 371 | !endif
|
364 | 372 | ' $type defined via $tag style
|
365 |
| - Boundary($alias, $label, "", $allTags, $link) |
| 373 | + Boundary($alias, $label, "", $allTags, $link, $descr) |
366 | 374 | !endprocedure
|
367 | 375 |
|
368 |
| -!unquoted procedure Container_Boundary($alias, $label, $tags="", $link="") |
| 376 | +!unquoted procedure Container_Boundary($alias, $label, $tags="", $link="", $descr = "") |
369 | 377 | !if ($tags != "")
|
370 | 378 | !$allTags = $tags + '+container'
|
371 | 379 | !else
|
372 | 380 | !$allTags = 'container'
|
373 | 381 | !endif
|
374 | 382 | ' $type defined via $tag style
|
375 |
| - Boundary($alias, $label, "", $allTags, $link) |
| 383 | + Boundary($alias, $label, "", $allTags, $link, $descr) |
376 | 384 | !endprocedure
|
377 | 385 |
|
378 | 386 | ' Relationship (redefinition)
|
|
0 commit comments