Wednesday 7 February 2024

PlantUML: Force arrow direction to left, right, up, down in state diagram

Using up, down, left and right keywords we can force the arrow direction between states.

 

arrowDirection.txt

@startuml

[*] --> state1
state1 -right-> state2
state2 -down-> state3
state3 -left-> state4
state4 -up-> state5
state5 -up-> [*]

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment