svg

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer handles SVG generation

func NewRenderer

func NewRenderer(config *decision_tree.Config) *Renderer

NewRenderer creates a new SVG renderer

func (*Renderer) RenderTree

func (r *Renderer) RenderTree(root *decision_tree.Node) string

RenderTree generates SVG for the entire tree

func (*Renderer) SetCenterParent

func (r *Renderer) SetCenterParent(center bool)

SetCenterParent sets whether parent nodes should be centered over their children

Jump to

Keyboard shortcuts

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