Documentation ¶
Index ¶
- func New(g *dot.Graph, fromNodeID, toNodeID string, attrs ...Attribute) error
- type Attribute
- func Color(color string) Attribute
- func Dashed(dashed bool) Attribute
- func Dir(dir string) Attribute
- func FontName(name string) Attribute
- func FontSize(size float32) Attribute
- func Highlight(enable bool) Attribute
- func Label(num int, text string) Attribute
- func LabelAngle(angle float32) Attribute
- func LabelDistance(dist float32) Attribute
- func MinLen(len float32) Attribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
Attribute is a function that apply a property to an edge.
func LabelAngle ¶ added in v0.8.0
LabelAngle along with labeldistance, determine where the headlabel (taillabel) are placed with respect to the head (tail) in polar coordinates. The origin in the coordinate system is the point where the edge touches the node. The ray of 0 degrees goes from the origin back along the edge, parallel to the edge at the origin. The angle, in degrees, specifies the rotation from the 0 degree ray, with positive angles moving counterclockwise and negative angles moving clockwise.
func LabelDistance ¶ added in v0.8.0
LabelDistance adjusts the distance that the headlabel(taillabel) is from the head(tail) node.
Click to show internal directories.
Click to hide internal directories.