node

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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(cluster *dot.Graph, id string, attrs ...Attribute) *dot.Node

New create a new node with the specified attributes.

Types

type Attribute

type Attribute func(*dot.Node)

Attribute is a function that apply a property to a node.

func FillColor

func FillColor(color string) Attribute

FillColor sets the node fill color.

func FontColor

func FontColor(color string) Attribute

FontColor specify the text color.

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 Label

func Label(label string, htm bool) Attribute

Label is the node caption. If 'htm' is true the caption is treated as HTML code.

func Rounded

func Rounded(rounded bool) Attribute

Rounded sets the shape with round corners.

func Shape

func Shape(shape string) Attribute

Shape sets the shape of a node.

Jump to

Keyboard shortcuts

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