How to make PlantUML left/right/up/down arrow longer

Viewed 675

The syntax for switching the directionality of the arrows in PlantUML is clear. One can use an -left->, -right->, -up->, -down-> to achieve left, right, up, and down directionality respectively. The documentation is equally clear that increasing the length of an arrow on rendering can be done syntactically through increasing the number of dashed in the arrow in the UML code (eg. --> is increased to ---> or ---->).

This doesn't seem to work (at least in the Visual Studio Code extension by Jebbs) when there is also directionality included. So, for example, -left---> does not increase the length of the arrow. Is this expected behavior?

1 Answers

Using the latest online server, this code doesn't produce consistent results (it only works for up and down). Seems like a bug.

@startuml
skinparam style strictuml
hide empty methods
hide empty members

A -r-> B
A1 --r--> B1

C -l-> D
C1 -l--> D1

E -u-> F
E1 -u--> F1

G -d-> H
G1 -d--> H1

@enduml

enter image description here

Related