Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
LICENSE.txt
README.md
umalu-sequence.js

README.md

Umalu

Umalu draws UML sequence diagram by ASCII art.

How To Use

Add your HTML source to below HTML fragment.

<script src="umalu-sequence.js"></script>

Drawing UML sequence diagram

<script type="text/x-umalu-sequence">
   +--------------+  +----------+     +--------+
   |   User Web   |  |  Server  |     |   DB   |
   |    Client    |  +----------+     +--------+
   +--------------+        |              |
           |               |              |
          +-+ send        +-+             |
          | | request     | |             |
          | |------------>| |             |
          | |             | |             |
    +-------------------------------------------+
    |alt/ | |[success]    | |             |     |
    |     | |             | |            +-+    |
    |     | |             | |query       | |    |
    |     | |             | |----------->| |    |
    |     | |             | |            | |    |
    |     | |   +-----------------------------+ |
    |     | |   |loop/    | |            | |  | |
    |     | |   |         | |--,         | |  | |
    |     | |   |         | |  | process | |  | |
    |     | |   |         | |<-'         | |  | |
    |     | |   +-----------------------------+ |
    |     | |             | |            | |    |
    |     | |             | |Commit      | |    |
    |     | |             | |----------->| |    |
    |     | |             | |            | |    |
    |-------------------------------------------|
    |     | |[error]      | |            | |    |
    |     | |             | |Rollback    | |    |
    |     | |             | |----------->| |    |
    +-------------------------------------------+
          | |             | |            | |
          +-+             +-+            +-+
           |               |              |
</script>

Result:
Result

License

MIT

You can’t perform that action at this time.