Can I center the description text at the bottom the state box?

0 votes
asked Nov 11, 2022 in Question / help by songyuc (120 points)

I want to center the description text at the bottom the state box.

Puml:

@startuml CMake
[*] --> CmakeBuild: CMakeLists.txt
CmakeBuild: cmake .. # how to center it?
CmakeBuild --> [*]
@enduml

commented Nov 14, 2022 by The-Lu (63,920 points)

Hello S., and all,

It seems that is not yet implemented...

Here is a not yet working example:

@startuml CMake
<style>
element {
  FontSize 13
  Fontcolor red
  HorizontalAlignment center
  title {
    FontStyle bold
    FontSize 11
    Fontcolor blue
  }
}
</style>
[*] --> CmakeBuild: CMakeLists.txt
CmakeBuild: cmake
' how to center it?
CmakeBuild --> [*]
@enduml

@PlantUML team: Could you add HorizontalAlignment management on State diagram...

Regards.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...