Open jessetan opened 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 ?
Yes, that works great! Is there a way to increase the distance between the label and the arrow?
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?
Is this the expected result?
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:
Result:![](http://www.plantuml.com/plantuml/png/9Sen2W8n40NGFgVujR0Ni93r36wd5YD-DVXdN9A9U7m5uPLlxcajXwlqPutLcZaEQSc5dzohtiCP2V6MfHmtPqpJxX-mnVAe7Jy6sOKwnUlD1X_AkefG3VOoCwx3zGK0)
Expected result:![](http://www.plantuml.com/plantuml/png/3Sqn2W9138NXVaxnQc4lO24hU0EtKuk8RpMOYSia8nxVWR_z-UP8QTchbNYhRzAauiHLkkN2NnvDdrxf2UEQfLnsDqpJ0UUK9FPONXeO2KpkjAj_lcoeuzRD25Ddb9d-6C8V)