Incorrect sorting for rectangle in usecase diagram

0 votes
asked Nov 19 in Bug by Mike
When working in plantuml with usecase diagrams,I encountered the following problem:
when changing the diagram direction from left to right direction
AND when group usecase rectangle for several usecases dependent from parent, the sorting is lost
usecases described at the beginning are displayed at the bottom of the diagram
and usecases described at the end are displayed at the top of the diagram
I expect the opposite situation
Incorrect behavior
@startuml
left to right direction
rectangle {
(UC1)--(UC1.1)
(UC1)--(UC1.2)
(UC1)--(UC1.3)
}
@enduml
At the same time, if you remove the grouping (rectangle), then the sorting is as expected
Correct behavior
@startuml
left to right direction
(UC1)--(UC1.1)
(UC1)--(UC1.2)
(UC1)--(UC1.3)
@enduml
How get around this limitation?

1 Answer

0 votes
answered Nov 20 by The-Lu (74,900 points)

Hello M.,

It is currently a normal behaviour, because:

From normal "top to bottom direction":

@startuml
'left to right direction
rectangle {
(UC1)--(UC1.1)
(UC1)--(UC1.2)
(UC1)--(UC1.3)
}
@enduml


To the "left to right direction" (the only difference is a 90° rotation):

@startuml
left to right direction
rectangle {
(UC1)--(UC1.1)
(UC1)--(UC1.2)
(UC1)--(UC1.3)
}
@enduml


If that can help to understand,
Regards,
Th.

...