Support of "all" PlantUML elements can be enabled #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related to #336.
The only difference is that the PlantUML elements can be defined via $baseShape
(I could be that I combine $baseShape with $shape in one of the next releases therefore $baseShape and not $renderAs)
Optional support of additional PlantUML elements
More often a full support of all PlantUML elements are requested.
They can be set via the new optional
baseShape="...."
argument of the callsSystem(..., ?baseShape)
,System_Ext(..., ?baseShape)
,Container(..., ?baseShape)
,Container_Ext(..., ?baseShape)
,Component(..., ?baseShape)
,Component_Ext(..., ?baseShape)
The already specified
...Db...()
and...Queue...()
calls are not extended.But based on the additional (internal) overhead it has to be explicit enabled
via
ENABLE_ALL_PLANT_ELEMENTS
. It can be set with following 2 options!ENABLE_ALL_PLANT_ELEMENTS = 1
directly in the scripts fileBEFORE the first C4_* file is loaded, like e.g.
-DENABLE_ALL_PLANT_ELEMENTS=1
If
ENABLE_ALL_PLANT_ELEMENTS
is not set, the diagrams displays the requested "PlantUML element"but the style is not correct displayed.
A simple sample with additional "PlantUML elements":
List of supported PlantUML elements
If
ENABLE_ALL_PLANT_ELEMENTS
is not set, the diagrams displays the requested "PlantUML element"but the style is not correct.
It can be tested via my extended branch
(sometime the PlantUML server has no access to the referenced files, if this is the case please try it with your local system)
BR Helmut