Equal width swimlanes in activity diagram

0 votes
asked Nov 28, 2016 in Wanted features by nicorikken (130 points)
The new swimlanes view in the activity diagram is awesome and enables many new usages.

The width of the swimlanes now depends on its content, which seems a sane default. To include diagrams in our marketing material we'd like to have the swimlanes be of similar width, to have it look more orderly.

Can an option be added to the skinparam of swimlane to have all swimlanes render with similar size?

Something like:

swimlaneWidth: [dynamic|equal]

2 Answers

0 votes
answered Nov 28, 2016 by plantuml (134,570 points)

Thanks for the suggestion.

In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar we have added a new skinparam.

You can use skinparam minSwimlaneWidth same if you want all swimlanes to have the same width.
Note that you can also specify a value (in pixel): skinparam minSwimlaneWidth 500
In that case, the minimum width of swimlanes will be 500.

Tell us if it is what you were expecting,

Thanks again,
 

commented Nov 29, 2016 by nicorikken (130 points)
Thanks, this is exactly what we were looking for! In terms of usages I was expecting to be able to wrap `minWidth` inside `skinparam swimlane` but that did not work. Something like:

```skinparam swimlane {
  BorderThickness 0
  TitleFontColor black
  TitleFontSize 30
  minWidth same
}```

Perhaps I don't understand the skinparam syntax very well.
Either way the feature will do.
commented Nov 30, 2016 by plantuml (134,570 points)
This makes sense.
So we rename the parameter to "swimlaneWidth" in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
You can then have:
skinparam swimlane {
  BorderThickness 0
  TitleFontColor black
  TitleFontSize 30
  width same
}
0 votes
answered Dec 1, 2016 by plantuml (134,570 points)
This has been released in V8051.
...