[Style][State] Allow RoundCorner [or rectangle] style on State

0 votes
asked Oct 8 in Wanted features by The-Lu (36,240 points)

Hello PlantUML team,

  • Could you allow [style] RoundCorner [or rectangle] on State diagram?

Here is an example:

Code Output
stateDiagram {
  RoundCorner 0

title How to change RoundCorner by style?
state A {
  state B {
  state C {
    state c : state c
state S1 : state S1
state S2

RoundCorner 0: KO

And same question about all the other styles element... wink

Thanks for your works,

1 Answer

0 votes
answered Oct 9 by plantuml (262,940 points)
selected Oct 9 by The-Lu
Best answer

Thanks for the report.

With last beta http://beta.plantuml.net/plantuml.jar you can now have:

There are probably some other issues: tell us when you'll find them :-)

Thanks again

commented Oct 9 by The-Lu (36,240 points)

Thanks a lot.

Remains perhaps the transition position (HorizontalAlignment center).

That is a open question: how to manage transition position?

See also request here:


commented Oct 9 by plantuml (262,940 points)

That is a open question: how to manage transition position?

Unfortunately, we depend on GraphViz here. And I don't think that we can change label placement on edge with GraphViz.

Sorry about that!