Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultNodeStyleType is default style type. DefaultNodeStyleType = "rounded,filled,solid" // DefaultNodeShape is default node shape. DefaultNodeShape = "hexagon" // DefaultEdgeStyleType is default edge style. DefaultEdgeStyleType = "" // EdgeShape is default edge shape. DefaultEdgeShape = "normal" // UnknownShape is unknown shape. UnknownShape = "unknown" )
Variables ¶
View Source
var ( // DefaultEdgeColor is default edge color. DefaultEdgeColor = color.RGBA{R: 0, G: 0, B: 0} // DefaultNodeColor is default color for unknown entity. DefaultNodeColor = color.RGBA{R: 230, G: 230, B: 230} )
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
Marshaler is used for marshaling graph to DOT format.
func NewMarshaler ¶
NewMarshaler creates a new DOT graph marshaler and returns it.
type Options ¶
type Options struct { // NodeStyle configures Node style. NodeStyle Style // EdgeStyle configures Edge style. EdgeStyle Style // GraphStyle configures Graphe style. GraphStyle Style }
Options configure graph.
type Style ¶
type Style struct { // Type is style type. Type string // Shape is style shape. Shape string // Color is style color. Color color.RGBA // Attrs are style attributes Attrs map[string]any }
Style defines styling.
func DefaultGraphStyle ¶
func DefaultGraphStyle() Style
DefaultGraphStyle returns default graph style.
Click to show internal directories.
Click to hide internal directories.