edge

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(g *dot.Graph, fromNodeID, toNodeID string, attrs ...Attribute) error

New add to dot.Graph a new connection line between two components.

Types

type Attribute

type Attribute func(*dot.Edge)

Attribute is a function that apply a property to an edge.

func Color

func Color(color string) Attribute

Color set the color for an edge line.

func Dashed

func Dashed(dashed bool) Attribute

Dashed set the edge line dashed.

func Dir

func Dir(dir string) Attribute

Dir sets the ege direction, values: both, forward, back, none.

func FontName

func FontName(name string) Attribute

FontName specify the font used for text.

func FontSize

func FontSize(size float32) Attribute

FontSize specify the font size, in points, used for text.

func Highlight

func Highlight(enable bool) Attribute

Highlight makes the line thicker.

func Label

func Label(label string) Attribute

Label is the text attached to components.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL