To create a rectangle, I can simply rectangle "Rectangle Label" as RectangleName
, but how to make its border dashed? like below?
How to create dashed-border rectangle in plantuml
Asked Answered
Add #line.dashed
at the end of the statement:
rectangle "Rectangle Label" as RectangleName #line.dashed
Live Demo
@startuml
agent a
cloud c #pink;line:red;line.bold;text:red [
c
cloud description
]
file f #palegreen;line:green;line.dashed;text:green {
[c1]
[c2]
}
frame frame {
node n #aliceblue;line:blue;line.dotted;text:blue
}
@enduml
Reference > https://plantuml.com/deployment-diagram
© 2022 - 2025 — McMap. All rights reserved.