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

0 votes
asked Oct 8, 2021 in Wanted features by The-Lu (64,760 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, 2021 by plantuml (295,000 points)
selected Oct 9, 2021 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, 2021 by The-Lu (64,760 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, 2021 by plantuml (295,000 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!

...