02.10.2012 Views

5 Graph Description Language (GDL) - Absint

5 Graph Description Language (GDL) - Absint

5 Graph Description Language (GDL) - Absint

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

info3: "href:#; onMouseOver:foo(1); onMouseOut:foo(0)"<br />

As of aiSee 2.1.96, the URL specification can be omitted:<br />

info3: "onMouseOver:foo(1);onMouseOut:foo(0)"<br />

If aiSee spots a mouse event handler specification in the <strong>GDL</strong> source of a graph, it automatically<br />

includes a reference to an external JavaScript file when exporting the graph to SVG:<br />

<br />

<br />

This allows JavaScript functions and global variables to be conveniently specified in the<br />

external JS file rather than in the SVG file itself. Thanks to this approach, you can easily<br />

make changes to your graphs and re-export them to SVG without having to copy & paste<br />

JavaScript code from old SVG files into new ones each time.<br />

• label<br />

Type: string<br />

Default value: empty string<br />

Attribute of: node<br />

<strong>Description</strong>:<br />

This string is displayed inside a node. If no label is specified the value of the node attribute<br />

title is used.<br />

Note: This string may contain control characters, e. g. “\n” (newline character), that influence<br />

the size of the node. See p. 109 for more details.<br />

• level<br />

This is a synonym for vertical_order.<br />

• loc<br />

Type: { x: y: }<br />

Default value: no default value<br />

Attribute of: node<br />

<strong>Description</strong>:<br />

This attribute specifies the location of the node, i. e. the x and y coordinates in relation to<br />

the coordinate system of the graph. The origin is in the upper left corner. For example, the<br />

specification loc: { x: 100 y: 200 } places a node at location (100, 200) in<br />

the coordinate system.<br />

The location of nodes are not valid unless locations are specified for all nodes, otherwise<br />

aiSee calculates appropriate x and y coordinates according the layout algorithm chosen.<br />

• margin<br />

Type: int<br />

Default value:<br />

3, if borderwidth (p. 93) > 0<br />

0, if borderwidth = 0<br />

Attribute of: node<br />

96

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!