dot

package
v1.4.1 Latest Latest
Warning

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

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

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, config *Config) string

Types

type Config

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

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