Activity Diagram (Beta): Increase Space after Title

0 votes
asked Apr 6 in Wanted features by DJas
In Activity Diagram (Beta), can the Space after Title be Increased?
commented Apr 6 by albert (2,900 points)
  • Which version of plantuml are you using?
  • Please show what you got / where your problem lies.
commented Apr 7 by DJas

Sir,

I am using PlantUML version 1.2020.00,  with VizJs library

I am getting following diagram using Activity Beta, title and first activity seems to be very close:

image

Can you please help in improving it.

Thank You

commented Apr 7 by DJas
'This is the script:::

@startuml

skinparam titleBorderRoundCorner 15
skinparam titleBorderThickness 2
skinparam titleBorderColor black
skinparam titleBackgroundColor MintCream

title Activity Diagram for User Management
:Start on Pressing of Button 'User Management' from Main Screen<

repeat

'....

repeat while(loop back)

@enduml
commented Apr 7 by DJas

This is the diagram::

commented Apr 7 by DJas
edited Apr 9
Added a End Line character in the end of Title line, and removed border and background color.

If any other option without removing Border, please answer.

2 Answers

0 votes
answered Jun 3 by The-Lu (4,900 points)

Hello D.,

Awaitting the feature (for space management between title and diagram);

A funny workaround is to add a first step, with hidden link with the rest of the diagram, as:

#MintCream:<b><size:15>Activity Diagram for User Management;
-[hidden]-> \t ;


[Click to see full code on PlantUML server]

If that can help,
Regards,
Th.

commented Jun 5 by D
Thanks The-LU,

Its working. It solved my problem
0 votes
answered Jun 3 by The-Lu (4,900 points)

Hello D.,

In fact after search, we can use style (see https://plantuml.com/en/style-evolution) for that, with the Margin parameter:

<style>
title {
  FontSize 15
  Padding 7
  Margin 30
  RoundCorner 15
  LineThickness 2
  LineColor black
  BackGroundColor MintCream
}
</style>

title Activity Diagram for User Management
'...


[Clik to see on PlantUML server]


Regards,
Th.

...