Versions in this module Expand all Collapse all v1 v1.0.1 Mar 31, 2025 v1.0.0 Mar 26, 2025 Changes in this version + var DarkTextColor color.Color = color.Black + var LightTextColor color.Color = color.White + func BoxSVG(q UIBox) string + func TextSVG(t *UIText) string + func TreeHues(tree treemap.Tree, offset float64) map[string]float64 + type Colorer interface + ColorBox func(tree treemap.Tree, node string) color.Color + ColorText func(tree treemap.Tree, node string) color.Color + type ColorfulPalette []struct + func GetPalette(name string) (ColorfulPalette, bool) + func (gt ColorfulPalette) GetInterpolatedColorFor(t float64) color.Color + type NoneColorer struct + func (s NoneColorer) ColorBox(tree treemap.Tree, node string) color.Color + func (s NoneColorer) ColorText(tree treemap.Tree, node string) color.Color + type SVGRenderer struct + func (r SVGRenderer) Render(root UIBox, w, h float64) []byte + type StreamingSVGRenderer struct + func (r StreamingSVGRenderer) RenderStream(root UIBox, w, h float64, filename string) error + type TreeHueColorer struct + C float64 + DeltaC float64 + DeltaH float64 + DeltaL float64 + Hues map[string]float64 + L float64 + Offset float64 + func (s TreeHueColorer) ColorBox(tree treemap.Tree, node string) color.Color + func (s TreeHueColorer) ColorText(tree treemap.Tree, node string) color.Color + type UIBox struct + BorderColor color.Color + Children []UIBox + Color color.Color + H float64 + IsInvisible bool + IsRoot bool + Title *UIText + W float64 + X float64 + Y float64 + func (f UIBox) IsEmpty() bool + type UIText struct + Color color.Color + H float64 + Scale float64 + Text string + W float64 + X float64 + Y float64 + type UITreeMapBuilder struct + BorderColor color.Color + Colorer Colorer + func (s UITreeMapBuilder) NewUIBox(node string, tree treemap.Tree, x, y, w, h, margin float64, padding float64) UIBox + func (s UITreeMapBuilder) NewUITreeMap(tree treemap.Tree, w, h, margin, padding, paddingRoot float64) UIBox