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

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

Hello PlantUML team,

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

Here is an example:

Code Output
@startuml
<style>
stateDiagram {
  RoundCorner 0
}
</style>

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

RoundCorner 0: KO
......

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

Thanks for your works,
Regards,
Th.

1 Answer

0 votes
answered Oct 9 by plantuml (263,020 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,620 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:

Regards,
Th.

commented Oct 9 by plantuml (263,020 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!

...