Improve layout on state diagrams so that it tries harder not to cross lines.
See original GitHub issueIs your feature request related to a problem? Please describe. The layout for state diagrams could be better. Sometimes lines cross when there’s an obvious solution not to. For example, this
stateDiagram-v2
New --> Ready
Ready --> Done
Ready --> Error
Ready --> Cancel
Done --> Ready
Error --> Cancel
Error --> Ready
New --> Hold
Hold --> Ready
Ready --> Hold
Generates this state diagram :
Describe the solution you’d like I’d like the state diagram layout to try harder not to cross lines. See this solution for the above example :
Describe alternatives you’ve considered I’ve tried changing the lines order in the diagram script.
Additional context None.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
State Machine Diagram - UML 2 Tutorial - Sparx Systems
A state machine diagram models the behaviour of a single object, ... Transitions from one state to the next are denoted by lines...
Read more >UML diagrams guide - Nulab
This guide will introduce you to the Unified Modeling Language and the diagrams that represent it. In no time, you and your team...
Read more >Timing Diagram - an overview | ScienceDirect Topics
The timing diagram is available since UML version 2.0 and includes elements such as message, lifeline, timeline, and object or role.
Read more >State Machine Diagram Tutorial - Lucidchart
Understand and map out a state machine diagram in UML using Lucidchart. Explore our vast UML shape library and use our state machine...
Read more >A Complete Guide to Line Charts | Tutorial by Chartio
A line chart (aka line plot, line graph) uses points connected by line ... It will be more difficult to see details in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t worry, already transferred! 😄 Live editor only displays the diagrams rendered by this core mermaid product. So nothing we can do about it in that project.
@ksze Unfortunately I’ve been too busy with work to give it more thought yet.