diagram attributes setting

NAME

Attribute settings of diagrams

SYNOPSIS

attribute = value ;

DESCRIPTION

Set attributes related to whole of the blockdiag.

ATTRIBUTES

node_width = Integer

Specify default node width. Default is 128.

node_height = Integer

Specify default node height. Default is 40.

span_width = Integer

Specify default horizontal span between nodes. Default is 64.

span_height = Integer

Specify default vertical span between nodes. Default is 40.

default_fontsize = Integer

Specify default font size used at label attribute. Default is 11.

default_shape = Shape

Specify default node shape. Default is box.

New in version 0.7.2.

orientation = portrait

Set portrait mode. Default is landscape mode.

New in version 0.7.0.

default_node_color = #RRGGBB or colorname

Specify node default color. Default is white.

New in version 0.9.1.

default_group_color = #RRGGBB or colorname

Specify group default color. Default is orange.

New in version 0.9.1.

default_linecolor = #RRGGBB or colorname

Specify node border and edge default color. Default is black.

New in version 0.9.1.

default_textcolor = #RRGGBB or colorname

Specify default color of node label, edge label and group label. Default is black.

New in version 0.9.2.

edge_layout = normal or flowchart

Experimental Specify how to layout edges. Default is normal.

EXAMPLES

node_width and node_height attribute to diagram

blockdiag {
   // Set node metrix
   node_width = 200;
   node_height = 100;

   A -> B;
}

span_width and span_height attribute to diagram

blockdiag {
   // Set span metrix
   span_width = 240;
   span_height = 120;

   A -> B, C;
}

default_fontsize attribute to diagram

blockdiag {
   // Set fontsize
   default_fontsize = 24;

   A -> B;
}

default_shape attribute to diagram

blockdiag {
   // set default shape
   default_shape = roundedbox

   A -> B;
}

orientation attribute to diagram

blockdiag {
   orientation = portrait

   A -> B -> C;
        B -> D;
}

default_node_color, default_group_color, default_linecolor and default_textcolor attribute

blockdiag {
  default_node_color = lightyellow;
  default_group_color = lightgreen;
  default_linecolor = magenta;
  default_textcolor = red;

  A -> B -> C;
       B -> D;
  group {
    C; D;
  }
}