Skip to main content

Module render

Module render 

Source
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§

GraphView
Everything the graph needs from a loaded bundle.
NodeBounds
RenderedGraph

Enums§

GraphNodeStyle
NodeStatus

Functions§

render_graph
Render the graph pane and retain node bounds for camera targeting and hit testing. selected_step_index scrubs the replay position; at_latest_step says 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.