MCPcopy
hub / github.com/mum4k/termdash / CellWidth

Function CellWidth

widgets/heatmap/options.go:70–74  ·  view source on GitHub ↗

CellWidth set the width of cells (or grids) in the heat map, not the terminal cell. The default height of each cell (grid) is 1 and the width is 3.

(w int)

Source from the content-addressed store, hash-verified

68// CellWidth set the width of cells (or grids) in the heat map, not the terminal cell.
69// The default height of each cell (grid) is 1 and the width is 3.
70func CellWidth(w int) Option {
71 return option(func(opts *options) {
72 opts.cellWidth = w
73 })
74}
75
76// SquareCells configures each heatmap value to use two terminal columns, which
77// reads closer to a square cell on typical terminals where character cells are

Callers 5

mainFunction · 0.92
SquareCellsFunction · 0.85
TestNewAndValuesFunction · 0.85

Calls 1

optionFuncType · 0.70

Tested by 3

TestNewAndValuesFunction · 0.68