Space between arrows in activity diagram

0 votes
asked Oct 14, 2020 in Question / help by ChrisR (120 points)

Especially when using while loops the arrows are displayed too close together and it becomes difficult to read the diagram:

Is there a way to increase the space between arrows in activity diagrams by using skinparams or any other method?

Thanks,
Chris

commented Oct 19, 2020 by The-Lu (73,540 points)
commented Oct 21, 2020 by The-Lu (73,540 points)
moved Oct 21, 2020 by The-Lu

Hello all,

See also, similar issue with:

where, on vertical mode, the vertical lines are too close to the box ('Text 2', 'Text 3' and 'Text 4').


[See on PlantUML server]

Regards,
Th.

1 Answer

0 votes
answered Oct 26, 2020 by The-Lu (73,540 points)

Hello C.

A possible workaround is to add tabulation ('\t') on the different conditions, as:

@startuml
start
while (\t\t\tendless loop\t\t\t)  
  if (\t\tcondition met?\t\t)
    :activity 1;
    while (while condition)
      :activity 2;
    endwhile
  endif
endwhile
end
@enduml


[See on PlantUML online server]

If that can help,
Regards,
Th.

commented Oct 27, 2020 by ChrisR (120 points)
Hello Th.

thanks for your answer. Makes the diagram defininity more readable. However, I am still not quite happy with this solution.

@plantuml: As there seems to be no possibility to change the spacing via skinparams, maybe you could increase the length of returning arrows in general?

Regards,
Chris
...