Arrow direction in combination with layout direction issue

+1 vote
asked Sep 10, 2018 in Bug by Ricardo

To change arrow layout direction is required if any arrow flows back to a component in front.
Example: Second2 --> First

@startuml
top to bottom direction

rectangle "First" as first

rectangle "Second1" as s1
rectangle "Second2" as s2
rectangle "Second3" as s3

rectangle "Third1" as t1
rectangle "Third2" as t2

rectangle "Fourth1" as f1

first --> s1
s2 -UP-> first
first --> s3

t1 -UP-> s1
s2 --> t2

t1 --> f1
@enduml

The same is true if someone uses

left to right direction

Bug:

Using "left to right direction" in combination with arrow LEFT, RIGHT, UP, DOWN is not rendered correctly.

I want to achive this:

with this code:

@startuml
left to right direction

rectangle "First" as first

rectangle "Second1" as s1
rectangle "Second2" as s2
rectangle "Second3" as s3

rectangle "Third1" as t1
rectangle "Third2" as t2

rectangle "Fourth1" as f1

first --> s1
s2 -LEFT-> first
first --> s3

t1 -LEFT-> s1
s2 --> t2

t1 --> f1
@enduml

But need to use this one:

@startuml
left to right direction

rectangle "First" as first

rectangle "Second1" as s1
rectangle "Second2" as s2
rectangle "Second3" as s3

rectangle "Third1" as t1
rectangle "Third2" as t2

rectangle "Fourth1" as f1

first --> s1
s2 -UP-> first
first --> s3

t1 -UP-> s1
s2 --> t2

t1 --> f1
@enduml

If I would use "LEFT" as expected, the rendering would be:

Thanks for help,
Ricardo

1 Answer

0 votes
answered Nov 7 by Mikhail
The similar issue with interface and slot  connector "-(0-". Direction impact on sense.
...