OK3
OK3

Reputation: 41

Is it possible to autowrap arrow labels in PlantUML?

In state diagram I have long descriptions for some transitions. I want them to be wrapped automatically. Can I do it with any style of styling now?

I tried to use

<style>
arrow {
   WordWrap 150
}
</style>

but it seems to have no effect

UPD. full example:

@startuml

skin rose

left to right direction

<style>
arrow {
     WordWrap 20
     fontcolor #green
}
</style>

state a
state b

 [*] -> a

 a -> b : very long status transition description that I want to be wrapped but it won't despite I try to use styling for arrow and it affects the arrow label font color

b -> [*]

@enduml

Upvotes: 3

Views: 56

Answers (1)

OK3
OK3

Reputation: 41

the solution is to use

skinparam maxmessagesize 180

it affects arrow labels in state diagrams also

Upvotes: 1

Related Questions