Is it possible to have a short down arrow?

+1 vote
asked Jul 8, 2019 in Question / help by rd27 (460 points)
Is it possible to have a short down arrow? It seems like "-down->" is treated like a --> (two dashes) arrow for purposes of length. I am wondering if there is a way to do a -> (one dash) down arrow.

Thanks,

dave
commented Sep 9, 2019 by rd27 (460 points)
Any thoughts on this? Is this not possible?

2 Answers

0 votes
answered Jul 1, 2021 by Jan
According to the docs -d-> should give a small down arrow, but it does not seem to work for me.
commented Jul 1, 2021 by The-Lu (63,920 points)

Hello all,

Just FYI, you can just compare:

Code Output
@startuml
[Component] -l-> left
[Component] -r-> right
[Component] -u-> up
[Component] -d-> down
@enduml
@startuml
left to right direction
[Component] -l-> left
[Component] -r-> right
[Component] -u-> up
[Component] -d-> down
@enduml

Ref. on the doc.:

Regards,
Th.

+1 vote
answered Jul 1, 2021 by The-Lu (63,920 points)

Hello all,

If you want more regular arrow length, you can just use plantUML without GraphViz, by adding this line on your code :

!pragma layout smetana

Then you can observe the expected result:

Code Output
@startuml
!pragma layout smetana
[Component] -l-> left
[Component] -r-> right
[Component] -u-> up
[Component] -d-> down
@enduml
@startuml
!pragma layout smetana
left to right direction
[Component] -l-> left
[Component] -r-> right
[Component] -u-> up
[Component] -d-> down
@enduml

FYI: "left to right direction" is without effect with Smetana.

See documentation here:

Regards,
Th.

...