Sub-diagram
On PlantUML, you can mix all diagram type and make sub-diagram. To activate this feature, the sub-diagram must:- begin with
{{ - end with
}}.
Basic example
Here is a basic example of sub-diagram, with adding an Activty diagram on a note on a Class diagram:
|
🎉 Copied!
|
|
[Ref. QA-6947] By default the background color of a sub-diagram is white. This can be solved by adding
skinparam Backgroundcolor transparent to the sub-diagram.
|
🎉 Copied!
|
|
Besides being used in other elements or notes, they can also be used in messages. For this, the sub-diagram must be all on one line:
|
🎉 Copied!
|
|
Inheritage of handwritten skinparam
Sub-diagram can only herite of the handwritten skinparam from the hosted diagram, as:
|
🎉 Copied!
|
|
[Ref. QA-9043]