-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #356 from kirchsth/feat/355_prop
#355 Single column property
- Loading branch information
Showing
3 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@startuml | ||
' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally | ||
!if %variable_exists("RELATIVE_INCLUDE") | ||
!include %get_variable_value("RELATIVE_INCLUDE")/C4_Deployment.puml | ||
!else | ||
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Deployment.puml | ||
!endif | ||
|
||
' default header Property, Value | ||
AddProperty("Name", "Flash") | ||
AddProperty("Organization", "Zootopia") | ||
AddProperty("Tool", "Internet Explorer 7.0") | ||
Person(personAlias, "Label", "Optional Description (with default property header)") | ||
|
||
SetPropertyHeader("Property","Value", "Description") | ||
AddProperty("Prop1", "Value1", "Details1") | ||
AddProperty("Prop2", "Value2", "Details2") | ||
Deployment_Node_L(nodeAlias, "Label", "Optional Type", "Optional Description (with custom property header)") { | ||
|
||
WithoutPropertyHeader() | ||
AddProperty("PropC1", "ValueC1") | ||
AddProperty("PropC2", "ValueC2") | ||
Container(containerAlias, "Label", "Technology", "Optional Description (without property header)") | ||
} | ||
|
||
SetPropertyHeader("Property") | ||
AddProperty("Value1") | ||
AddProperty("Value2") | ||
System(systemAlias, "Label", "Optional Description\n(single column property)") | ||
|
||
' starting with v.2.5.0 relationships support properties too | ||
WithoutPropertyHeader() | ||
AddProperty("PropC1", "ValueC1") | ||
AddProperty("PropC2", "ValueC2") | ||
Rel(personAlias, containerAlias, "Label", "Optional Technology", "Optional Description") | ||
@enduml |