render

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package render provides rendering functionality for dependency graphs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePNGGraph

func GeneratePNGGraph(graphData *graph.Data, outputPath string, showExternal bool) error

GeneratePNGGraph generates a PNG graph by first creating SVG and providing conversion instructions.

func GenerateSVGGraph

func GenerateSVGGraph(graphData *graph.Data, outputPath string, showExternal bool) error

GenerateSVGGraph generates an SVG graph visualization.

Types

type Defs

type Defs struct {
	XMLName xml.Name `xml:"defs"`
	Content string   `xml:",innerxml"`
}

Defs represents the SVG defs element.

type SVG

type SVG struct {
	XMLName xml.Name `xml:"svg"`
	Width   string   `xml:"width,attr"`
	Height  string   `xml:"height,attr"`
	ViewBox string   `xml:"viewBox,attr"`
	Xmlns   string   `xml:"xmlns,attr"`
	Style   string   `xml:"style"`
	Defs    Defs     `xml:"defs"`
	Content string   `xml:",innerxml"`
}

SVG represents the SVG document structure.

Jump to

Keyboard shortcuts

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