graphviz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const OrientationLeftRight = "LR"

Variables

View Source
var (
	DefaultNodeAttrs = map[string]any{
		"shape":    "plaintext",
		"imagepos": "tc",
		"labelloc": "b",
		"height":   0.9,
	}

	DefaultEdgeAttrs = map[string]any{
		"arrowhead": "vee",
		"arrowtail": "normal",
	}
)

Functions

func Build

func Build(
	resc *resources.ResourceCollection, resourceImageMap map[string]string, config Config,
) string

func BuildWithStyle

func BuildWithStyle(
	resc *resources.ResourceCollection, resourceImageMap map[string]string, config Config, style Style,
) string

Types

type Config

type Config struct {
	Orientation string
	NodeAttrs   map[string]any
	EdgeAttrs   map[string]any
}

type Style

type Style struct {
	Nodes  map[resources.Resource]string
	Arrows map[string][]map[string]string
}

Jump to

Keyboard shortcuts

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