graphviz

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	// contains filtered or unexported fields
}

func (*Edge) SetFontName

func (e *Edge) SetFontName(fontName string) error

func (*Edge) SetFontSize

func (e *Edge) SetFontSize(size float64)

func (*Edge) WriteText

func (e *Edge) WriteText(txt string)

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func CreateGraph

func CreateGraph(ctx context.Context, font string) (*Graph, error)

func (*Graph) Close

func (g *Graph) Close() error

func (*Graph) CreateEdge

func (g *Graph) CreateEdge(edgeName string, startNode *Node, endNode *Node) (*Edge, error)

func (*Graph) CreateNode

func (g *Graph) CreateNode(name string) (*Node, error)

func (*Graph) RenderSVG added in v0.5.3

func (g *Graph) RenderSVG(ctx context.Context, w io.Writer) error

func (*Graph) SetBackgroundColor

func (g *Graph) SetBackgroundColor(color specw.Color)

func (*Graph) WithoutBackground

func (g *Graph) WithoutBackground()

type Node

type Node struct {
	// contains filtered or unexported fields
}

func (*Node) SetFontName

func (g *Node) SetFontName(fontName string) error

func (*Node) SetFontSize

func (g *Node) SetFontSize(size float64)

func (*Node) WriteHTML

func (g *Node) WriteHTML(plainHTML string) error

Jump to

Keyboard shortcuts

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