Skip to main content

Module widgets

Module widgets 

Source
Expand description

Shared drawing helpers: centered rects, input fields, unicode bar charts, and the date sparkline.

Structs§

BarRowSpec
What one selectable distribution row shows.

Functions§

bar_row
One selectable distribution row: glyph label count ███▌.
block_bar
A unicode block bar of value / max, width cells wide, with eighth precision on the final cell.
centered
A centered rect of at most width×height within area.
date_sparkline
A sparkline over the last days days of a date-bucketed series.
highlight_match
Highlights fuzzy-match positions within a label.
input_line
Renders a labeled text-input line: label ▏value▕ with a cursor block when active.
simple_diff
A simple line diff for the fix preview: unchanged context around -/+ runs, computed by trimming the common prefix and suffix.