Expand description
Port of src/render/graph-render.ts: renders the workflow DAG onto a
CharCanvas. Statuses derive from the steps visible up to the selected
step, taken transitions highlight, switch branches carry case labels, and
loop edges route through a right-hand gutter. Output is pinned to the
TypeScript renderer through the golden fixtures.
Structs§
- Graph
View - Everything the graph needs from a loaded run.
- Node
Bounds - Rendered
Graph
Enums§
Functions§
- render_
graph - Render the graph pane and retain node bounds for camera targeting and hit
testing.
selected_step_indexscrubs the replay position;at_latest_stepsays whether the caller is showing the live view. - render_
graph_ canvas - Render only the graph canvas for callers that do not need hit regions.
- render_
graph_ lines - Render the graph to plain text lines (parity with the TS renderer with colors disabled). The TS reference infers “at latest” from the index, so this entry point does the same.