@jsvision/ui / MarkerStyle
Type Alias: MarkerStyle
MarkerStyle =
"tv"|"brackets"|"triangle"
Defined in: ui/src/tree/graph.ts:89
How a Tree draws its per-row expand/collapse marker.
'tv'— the default: a single+on a collapsed node,─on an expanded node or a leaf, drawn flush against the node text (no separating space).'brackets'— pure-ASCII[+]/[-]on collapsible nodes, each followed by one space before the text; a leaf shows just that single space. The most legible option and the safe fallback when Unicode is unavailable.'triangle'—▸/▾on collapsible nodes, each followed by one space; a leaf shows just that single space. Needs a Unicode terminal and degrades to'brackets'when the caps report no Unicode.
In 'brackets' and 'triangle' a leaf's end graphic is narrower than a parent's (no marker), so leaf and folder text are intentionally ragged rather than column-aligned; 'tv' keeps every marker one cell, so its columns line up.