GrapherPin
renderer defines
the exact positions where links will be connected to the nodes of
the graph. For example, the following code example
shows a rule which declares that a node of tag split
has
three connection points: one at the top of the node’s bounding
rectangle, one on the left, and another one on the right.node.split { GrapherPin[0] : "Top"; GrapherPin[1] : "Left"; GrapherPin[2] : "Right"; }
transition
whose condition
property
is true
from the right of the source node
to the top of the destination node.link.transition[condition="true"] { FromPin : "2"; // pin #2 = Right (see node.split rule) ToPin : "0"; // pin #0 = Top (see node.split rule) }
GrapherPin
renderer does
not have any global properties.GrapherPin
renderer. Property |
Type |
Default |
Description |
---|---|---|---|
FromPin |
int |
The grapher pin to which the link will be
connected on the source node. The value of the property is the index n of the GrapherPin[ n ] property
of the node, and the GrapherPin[ n ] entry
specifies the connection point. |
|
GrapherPin[n] |
position, or x,y |
The grapher pin of index n for this node. The value of the
property can be either a position relative to the node’s bounding
box (for example: Top , BottomLeft )
or an x, y couple,
indicating the relative X and Y offsets of the grapher pin (0 = left
or top, 1 = bottom or right, 0.5 = center). |
|
ToPin |
int |
The grapher pin to which the link will be
connected on the destination node. The value of the property is the
index n of the GrapherPin[ n ] property
of the node. |