Padding between two actors in a sequence diagram

0 votes
asked Sep 16, 2019 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, 2019 by mgrol (3,150 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

commented Nov 13, 2023 by PH
Hi Michael,

Nice Solution, but  seems buggy (different long spacings) to work with a fourth actor and pragma Teoz set true :

@startuml
skinparam BoxPadding 200

!pragma teoz true

Actor toto
box  #transparent
 Actor Alice
 Actor Bob
end box
Actor Charlie

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

Any hint ?

Thanks
...