Following line styles are supported.
a. bold
b. dashed
c. dotted
d. hidden
e. plain
node1 -[bold]-> node2 : [bold line] node1 -[dashed]-> node3 : [dashed line] node1 -[dotted]-> node4 : [dotted line] node1 -[hidden]-> node5 : [hidden line] node1 -[plain]-> node5 : [hidden line] node1 --> node6 : [no style]
You can use the styles in combination with left, right, up and down keywords.
node7 -left[bold]-> node8 : [left and bold] node7 -right[dotted]-> node9 : [right and dotted] node7 -up[dashed]-> node10 : [up and dashed]
lineStyles.txt
@startuml node node1 node node2 node node3 node node4 node node5 node node6 node node7 node node8 node node9 node node10 node1 -[bold]-> node2 : [bold line] node1 -[dashed]-> node3 : [dashed line] node1 -[dotted]-> node4 : [dotted line] node1 -[hidden]-> node5 : [hidden line] node1 -[plain]-> node5 : [hidden line] node1 --> node6 : [no style] node7 -left[bold]-> node8 : [left and bold] node7 -right[dotted]-> node9 : [right and dotted] node7 -up[dashed]-> node10 : [up and dashed] @enduml
Above snippet generate below diagram.
No comments:
Post a Comment