question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve layout on state diagrams so that it tries harder not to cross lines.

See original GitHub issue

Is 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 : image

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 : image

Describe alternatives you’ve considered I’ve tried changing the lines order in the diagram script.

Additional context None.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sidharthv96commented, Oct 5, 2021

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.

0reactions
mrm-davidcommented, Mar 17, 2022

@ksze Unfortunately I’ve been too busy with work to give it more thought yet.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found