Node 横:
縦:
Span 横:
縦:
Font サイズ:

ブロック図作成とは?

ブロック図作成はシンプルなテキストからブロック図やネットワーク図などの画像を生成する画像生成ツールです。
作成可能図
 ・ブロック図
 ・ネットワーク図
 ・シーケンス図
 ・アクティビティ図
に対応

block定義

注意

オプションは未対応ですが図は出力されます
各種図が出力したことに満足してしまい力尽きた、、

ブロック図作成について

ブロック図の場合
 blockdiag {
 A -> B [label = "if x = 0", textcolor="red"];
 B -> C [label = "if y = 1"];
 C -> A;
}

ネットワーク図の場合
 nwdiag {
 network dmz {
  address = "210.x.x.x/24";
  web01 [address = "210.x.x.1"];
  web02 [address = "210.x.x.2"];
 }
 network internal {
  address = "172.x.x.x/24";
  web01 [address = "172.x.x.1"];
  web02 [address = "172.x.x.2"];
  db01;
  db02;
 }
}

シーケンス図の場合
 seqdiag {
  browser -> webserver [label = "GET /index.html"];
  browser <-- webserver;
  browser -> webserver [label = "POST /blog/comment"];
    webserver -> database [label = "INSERT comment"];
    webserver <-- database;
  browser <-- webserver;
}

アクティビティ図
 actdiag {
  write -> convert -> image

  lane user {
    label = "User"
    write [label = "Writing reST"];
    image [label = "Get diagram IMAGE"];
  }
  lane actdiag {
    convert [label = "Convert reST to Image"];
  }
}