weidagang / text-diagram

Text Diagram is a web tool for drawing UML sequence diagram in pure text.
http://weidagang.github.com/text-diagram
316 stars 52 forks source link

Add support for self message #2

Closed airekans closed 10 years ago

airekans commented 10 years ago

I've add support for sending message to the object itself. For example, when the input is like the following:

object April Todd
note left of April: Lunch is ready
April->April: Todd, what are you doing?

And the diagram is here:

               +-------+                       +-------+
               | April |                       | Todd  |
               +-------+                       +-------+
-----------------\ |                               |
| Lunch is ready |-|                               |
------------------ |                               |
                   |                               |
                   | Todd, what are you doing?     |
                   |-------------------------      |
                   |                        |      |
                   |<------------------------      |
                   |                               |
weidagang commented 10 years ago

Thank you very much for this feature! It's what I wanted but didn't put into action for a long time.