How can I control the distance my arrows travel in my sequence--how do I set the arrow length in px)?

0 votes
asked Apr 27, 2017 in Wanted features by anonymous

Let's say I have sequence UML like this:

@startuml

autonumber

actor Developer

Boundary Account

Boundary ManagerA

activate ManagerA

activate Account

group Simple Workflow

Developer->>Account

Account-->Developer

Developer->>ManagerA

end

@enduml

 

The sequence that it renders is not spread out enough horizontally. I want for the sequence to sit well on a page with other sequences that have a larger number of boundaries. 

Class diagrams have the parameter skinparam nodesep

And sequences allow for control over verticle spacing via |||

I do NOT want to scale the image, and I'd rather avoid creating some kind of [hidden] tag workaround.

Here's some UML that shows skinparam nodesep

@startuml

skinparam nodesep 10

skinparam ranksep 20

class Foo1

class Foo2

Foo3 *-- Foo1

@enduml

 

1 Answer

0 votes
answered Apr 27, 2017 by plantuml (294,960 points)

There are some setting that you might find useful  http://plantuml.com/sequence-diagram#Skinparam

Example:

@startuml
skinparam ParticipantPadding 60
autonumber
participant Developer
participant Account
participant ManagerA
activate ManagerA
activate Account
group Simple Workflow
Developer->>Account
Account-->Developer
Developer->>ManagerA
end
@enduml

http://www.plantuml.com/plantuml/uml/ROyn2iCm34Ltdy8N27JgQ1BeMWXqwApQgZ6nPU78oVNheKdQqaM2nnDVlvy5YjGKrJm5OYYGzDX8i861P0Jd0dbzFYceagcc1nR5Xw0lk63C_4C7QtCb-M9N8F1O1WLMmWA2VyXsvqkkh6yXSKHzpsLwnhogFQipPZFVk-lCyScdjsSWETMtqRg-0000

However, this works only for participants right now (and not for Actor, Boundary).
This is somehow a bug, and we are going to fix it.

However, we don't know if we should provide a single setting (ParticipantPadding) that would work for all or provide seperate settings (ActorPadding, BoundaryPadding...). Any thought ?

...