plantuml / backlog

Contains all issues for plantuml that are not currently working-in-progress
0 stars 0 forks source link

No text alignment skinparam for labels in state diagram #29

Open jessetan opened 5 years ago

jessetan commented 5 years ago

There is no skinparam to control the alignment of labels in state diagrams (or I couldn't find one).

It is possible to use DefaultTextAlignment but that will affect other labels as well.

Given input:

@startuml
skinparam StateTextAlignment left

[*] --> State : This is a label\nover multiple lines
@enduml

Result:

Expected result:

arnaudroques commented 5 years ago

Thanks for the suggestion. So with last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startuml
skinparam stateMessageAlignment left
[*] --> State : This is a label\nover multiple lines
@enduml

Is this what you are looking for ?

jessetan commented 5 years ago

Yes, that works great! Is there a way to increase the distance between the label and the arrow?

Emonshr commented 2 years ago

Thanks for the suggestion. So with last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startuml
skinparam stateMessageAlignment left
[*] --> State : This is a label\nover multiple lines
@enduml

Is this what you are looking for ?

Was trying that solution for the latest plantuml. It is not working. Any update?

arnaudroques commented 1 year ago

Is this the expected result?