Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Last active November 24, 2016 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihirokaasan/7ca96012fa4b3f67e2cc6a67bb74e42b to your computer and use it in GitHub Desktop.
Save chihirokaasan/7ca96012fa4b3f67e2cc6a67bb74e42b to your computer and use it in GitHub Desktop.
mermaid.js Sequence example
%% Sequence diagram code
sequenceDiagram
オブジェクト名 ->> 送り先オブジェクト名: メッセージ
送り先オブジェクト名 -x 送り先オブジェクト名: エラー
Note right of 送り先オブジェクト名: エラー発生<br/>バリデーション
送り先オブジェクト名 -->> オブジェクト名: 応答メッセージ
オブジェクト名 ->> 送り先オブジェクト名: メッセージ再送
送り先オブジェクト名 --x オブジェクト名: 応答メッセージ 終了
@chihirokaasan
Copy link
Author

chihirokaasan commented Nov 21, 2016

Mermaid.js Live Editor

http://knsv.github.io/mermaid/live_editor/
オンラインエディタに上記gistのコードをコピペするとシーケンス図が表示されます

生成される画像は下記URLより確認

https://goo.gl/oAZRo6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment