Skip to content
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

Simple diagram for state machine is rendered completely unreadable #167

Open
jumski opened this issue Apr 26, 2022 · 1 comment
Open

Simple diagram for state machine is rendered completely unreadable #167

jumski opened this issue Apr 26, 2022 · 1 comment

Comments

@jumski
Copy link

jumski commented Apr 26, 2022

I try to model simple states and transitions for my electronic hobby project.

This is code that i'm using:

[<state>booted]-> click A [<state>selecting_work_time]
[booted]-> click C [<state>work_timer_running]

[selecting_work_time]-> release A [booted]

[work_timer_running]-> [<choice>is time left?]
[work_timer_running]-> click D [booted]

[is time left?]-> yes [work_timer_running]
[is time left?]-> no [booted]

This renders like this:
obraz
(added background color for readability)

Am i doing something wrong or is it supposed to render like this? I mean, labels are completely cluttered and unreadable.
Thanks!

@skanaar
Copy link
Owner

skanaar commented Apr 28, 2022

Relation labels are not nomnoml's strongest game.

You can create [<label> some label] nodes to place labels half-way on relations.

[<state>booted] - [<label>click A]
[click A] -> [<state>selecting_work_time]
[booted]- [<label>click C]
[click C] -> [<state>work_timer_running]

[selecting_work_time]- [<label>release A]
[release A] -> [booted]

[work_timer_running]-> [<choice>is time left?]
[work_timer_running]- [<label>click D]
[click D] -> [booted]

[is time left?] yes -> [work_timer_running]
[is time left?] no -> [booted]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants