common

package
v0.0.0-...-15f4133 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Config      *Config
	Steps       [][]*Node
	Connections []*Connection
}

type Color

type Color struct {
	R, G, B uint8
}

type Config

type Config struct {
	Width             int
	Height            int
	ConnectionOpacity float64
	Background        *Color
	BackgroundIsLight bool

	OutputName string

	DrawBorder  bool
	BorderColor *Color
	BorderSize  int

	BorderPadding float64
	PadLeft       float64
	NodeWidth     float64

	VertSpaceNodes float64

	HorzTextPad int
	TextLinePad int

	FontSize int
}

type Connection

type Connection struct {
	Origin *Node
	Dest   *Node
	Amount int
}

type Node

type Node struct {
	Title    string
	ID       string
	Step     int
	Color    *Color
	TotalIn  int
	TotalOut int
}

Jump to

Keyboard shortcuts

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