Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No text alignment skinparam for labels in state diagram #29

Open
jessetan opened this issue Jun 4, 2019 · 4 comments
Open

No text alignment skinparam for labels in state diagram #29

jessetan opened this issue Jun 4, 2019 · 4 comments

Comments

@jessetan
Copy link

jessetan commented Jun 4, 2019

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
Copy link
Contributor

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
Copy link
Author

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

@Emonshr
Copy link

Emonshr commented Nov 8, 2021

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
Copy link
Contributor

Is this the expected result?

@arnaudroques arnaudroques transferred this issue from plantuml/plantuml Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants