Expand description
Shared drawing helpers: centered rects, input fields, unicode bar charts, and the date sparkline.
Structs§
- BarRow
Spec - 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,widthcells wide, with eighth precision on the final cell. - centered
- A centered rect of at most
width×heightwithinarea. - date_
sparkline - A sparkline over the last
daysdays 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.