ArthurSonzogni / Diagon

Interactive ASCII art diagram generators. :star2:
https://arthursonzogni.com/Diagon/
MIT License
1.47k stars 56 forks source link

Sequence: send message to itself or polling #63

Open lixueyi83 opened 1 year ago

lixueyi83 commented 1 year ago

Often times, I need to send a message to itself or polling and in which case I need to do A -> A: polling, something like this:

┌─┐
│A│
└┬┘
 │
 │Polling
 │-----+
 │     |
 │<----+
 │
┌┴┐
│A│
└─┘

However, it seems it does not work here:

$ diagon Sequence -- "A -> A: polling"
Something went wrong!
free(): invalid next size (normal)
Aborted
ArthurSonzogni commented 1 year ago

Yes. This is probably the top 1 feature I would personally need.

ArthurSonzogni commented 1 year ago

I wonder if we shouldn't also support ordering the start and the end.

Proposed syntax:

1,2) A -> A: Task 1
3,4) A -> A: Task 2

A: 1 < 3 < 2 < 4
┌─┐
│A│
└┬┘
 │
 │ Task 1
 │---------+
 │         |
 │ Task 2  |
 │------------+
 │         |  |
 │         |  |
 │<--------+  |
 │            |
 │<-----------+
 │
┌┴┐
│A│
└─┘
lixueyi83 commented 1 year ago

That would be highly appreciated, and by the way, I just started using this fancy tool and it's really so fancy! I like everything to be simple, easy and does the job perfectly! Thank you very much!

bjornstromberg commented 11 months ago

just found this tool, it sure does seem to do most of the things i would need of a Sequence Diagram tool, from a quick look this feature and a way to make a visual difference between async and sync calls is whats missing, but i'll create another issue for that one.

keep up the great work @ArthurSonzogni