Monday, 22 January 2024

PlantUML: round the corner of rectangle in deployment diagram

Using 'skinparam rectangle roundCorner' command, we can round the rectangle corners.

skinparam roundCorner 100

Above statement apply for all the elements in the given diagram

 

skinparam rectangle {

         roundCorner<<type1>> 25

}

Above statement applies for the rectangle of stereo type type1.

 

roundRectangleCorner.txt

@startuml

skinparam roundCorner 100

skinparam rectangle {
	roundCorner<<type1>> 25
	roundCorner<<type2>> 50
	roundCorner<<type3>> 75
}

rectangle "my rectangle1" <<type1>>
rectangle "my rectangle2" <<type2>>
rectangle "my rectangle3" <<type3>>
rectangle "my rectangle4" <<type4>>

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment