-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finite State Machine Diagram #152
Comments
Tricky one. It is dagre that sets the layout of the flowchart. Maybe this should be reported there (as well). You could change the rendering by modifying the order of the nodes but that could make the diagram less readable which sort of defeats the purpose. Like in the example below:
|
I am going through issues am closing this one. Let me know you disagree or need further support. |
I may take a look at the code and see if I can make it look nice, if there is enough interest. The thing is, I'm no longer in need of this in the foreseeable future. |
* 'master' of github.com:mermaid-js/mermaid-live-editor: (29 commits) Release 1.22.10 Upgrading Mermaid to version 8.10.1 Release 1.22.10 Fix error highlight Release 1.22.10 Fix head Release 1.22.10 Bump url-parse from 1.4.7 to 1.5.1 Bump webpack-cli from 4.6.0 to 4.7.0 Bump svelte from 3.38.1 to 3.38.2 Release 1.22.10 Move static files to public Release 1.22.10 Remove dist Fix mermaid-js#152 Release 1.22.10 Update builder node version to 14 Release 1.22.10 Add volta Release 1.22.10 ...
It is possible to create a FSM in mermaid, it can be NFA or DFA, but it looks kinda ugly.
given this example:
It produces this output:
![mealy-min md](https://cloud.githubusercontent.com/assets/6388537/7122321/afe67e9e-e1e8-11e4-8b2e-073d8a04d06a.png)
Does anyone think it is possible to make the lines curved and with no overlap (E->C & DF->A)? It would also be nice to support things like initial state and final states. Writing the markdown for it as well is kind of tedious as well, unless I'm just doing that wrong. Thanks!
The text was updated successfully, but these errors were encountered: