'How to create dashed-border rectangle in plantuml
To create a rectangle, I can simply rectangle "Rectangle Label" as RectangleName
, but how to make its border dashed? like below?
Solution 1:[1]
Add #line.dashed
at the end of the statement:
rectangle "Rectangle Label" as RectangleName #line.dashed
Live Demo
Solution 2:[2]
@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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Loi Nguyen Huynh |
Solution 2 | j3ffyang |