Arrow directions working inconsistently

0 votes
asked May 15 in Bug by anonymous

Hi!

I am having a question about the following diagram - is this expected that the directions left/right/up/down are not working here?

@startuml
rectangle Export {
}
rectangle PDF {
}
rectangle HTML {
}
rectangle ePub {
}
rectangle Word {
}
 
Export -left-> PDF
Export -right-> HTML
Export -down-> ePub
Export -up-> Word
@enduml

Thanks!

1 Answer

0 votes
answered May 15 by The-Lu (5,860 points)

Hello A.,

If the component or rectangle is empty, it is not necessary to have curly brackets:

rectangle Export {
}

You can suppress them with:

rectangle Export

Then, we obtain the good behavior:

PlantUML diagram

[Click to see on PlantUML server]

It seems that curly brackets must be use normaly if there are sub-elements [package or group], see also on the doc.:

If that can help,
Regards,
Th.

...