NodeGraph builder
A run drawn as connected steps.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::canvas::NodeGraph;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
node(node: GraphNode, x: f32, y: f32) -> Self
placed(placed: Placed) -> Self
edge(edge: GraphEdge) -> Self
edges(edges: impl IntoIterator<Item = GraphEdge>) -> Self
state(state: GraphState) -> Self
empty(empty: EmptyState) -> Self
grid(grid: bool) -> Self
offset(x: f32, y: f32) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.