Expand description
Tree-drawing primitives for plan rendering.
This module owns the glyphs and joint-selection logic used to draw plan
trees. Rendering code combines these with formatting and color helpers
from the sibling format and colors modules.
TreeStyle groups every glyph the renderer needs into one struct so
callers can swap between the historical Unicode look (parity with
gocmdpev), a portable ASCII fallback, and a heavier Unicode style without
editing constants per call site.
Structs§
- Tree
Style - A complete set of glyphs for drawing a plan tree.
Functions§
- node_
joint - Choose the joint glyph for a node based on whether it has multiple children or is the last child of its parent.
- output_
terminator - Glyph used at the leftmost column of an output line for a child plan.
- prefix_
continuation - Continuation glyphs to extend the prefix as rendering descends.
- styled_
node_ joint - styled_
output_ terminator - styled_
prefix_ continuation