Padding between two actors in a sequence diagram

0 votes
asked Sep 16 in Wanted features by Sri
Hi,

        I couldn't find a solution to increase the distance between two actors/ participants(Length of the arrows). This seems to be adaptive based on the longest message I have. Except for introducing a large space after a command, is there any way to change this on demand?

1 Answer

0 votes
answered Oct 30 by mgrol (2,690 points)

Hi,

if you can live with the fact that all participants have a more space around them:

@startuml
skinparam ParticipantPadding 200
Alice -> Bob: hello
@enduml

Which looks like this:

or you may play around with a box

@startuml
skinparam BoxPadding 200

box  #transparent
 Actor Alice
 Actor Bob
end box
Actor Charlie

Alice -> Bob: so close
Bob -> Charlie: so distant
@enduml

Which looks like this:

BR,

Michael

...