graphviz

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 8 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) (*Graph, error)

func (*Graph) Build

func (g *Graph) Build(ctx context.Context) (image.Image, 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) SetBackgroundColor

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

func (*Graph) SetFontName

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

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