MCPcopy
hub / github.com/pterm/pterm / HeatmapPrinter

Struct HeatmapPrinter

heatmap_printer.go:49–85  ·  view source on GitHub ↗

HeatmapPrinter is able to render tables.

Source from the content-addressed store, hash-verified

47
48// HeatmapPrinter is able to render tables.
49type HeatmapPrinter struct {
50 HasHeader bool
51 AxisStyle *Style
52 VerticalSeparator string
53 TopRightCornerSeparator string
54 TopLeftCornerSeparator string
55 BottomLeftCornerSeparator string
56 BottomRightCornerSeparator string
57 HorizontalSeparator string
58 TSeparator string
59 TReverseSeparator string
60 LSeparator string
61 LReverseSeparator string
62 TCrossSeparator string
63 LegendLabel string
64 SeparatorStyle *Style
65 Data HeatmapData
66 Axis HeatmapAxis
67 Boxed bool
68 Grid bool
69 OnlyColoredCells bool
70 LegendOnlyColoredCells bool
71 EnableComplementaryColor bool
72 Legend bool
73 CellSize int
74 Colors []Color
75 TextColor Color
76 EnableRGB bool
77 RGBRange []RGB
78 TextRGB RGB
79 Writer io.Writer
80
81 minValue float32
82 maxValue float32
83
84 rgbLegendValue int
85}
86
87var complementaryColors = map[Color]Color{
88 BgBlack: FgLightWhite,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected