Change padding for text above arrow

0 votes
asked Jun 30 in Question / help by zauberfinger (120 points)

Is it possible to add padding to the given example?

component B
component C
B  "D" -right->  "U"  C : shared kernel

1 Answer

0 votes
answered Jun 30 by The-Lu (4,900 points)
selected Jun 30 by zauberfinger
 
Best answer

Hello Z.,

Awaiting the beta-style margin/padding for component and deployment, two possible workarounds are:

1/ We can change font size, as:

<style>
root {
  FontSize 25
}
arrow {
  FontSize 25
  Padding 50
  Margin 50
}
</style>


[Click to see on PlantUML server]

 

2/ Or, We can just add horizontal tabulation (‘\t’), as:

component B
component C
B  "D" -right->  "U"  C : \tshared kernel\t\t


[Click....]

If that can help,
Regards,
Th.

commented Jun 30 by zauberfinger (120 points)
\t did the trick for me. Thanks, for the fast reply.
...