Idea detail
graph_ui_persistence
reqlan rq/extension/module/ideas_summary/graphical_graph.rq:93
Summary
Key and Controls state is stored in VS Code ExtensionContext. workspaceState under key GRAPH_UI_WORKSPACE_STATE_KEY ( reqlan. ideasSummary. graphUi ).
Shape and normalisation live in graph-ui-state.ts; the host reads / writes it from ideas-summary-panel.ts.
On webview ready the extension posts graphUiState; the webview posts persistGraphUiState ( debounced ) whenever AppState. patchGraphUi runs in app.svelte.ts.
Persisted fields: showKey, showControls, hiddenNodeTypes, layoutId, useCompound, compoundBasisId, animatePhysics, labelMode, maxNodes, truncationBasis, and the five physics sliders ( gravity, repulsion, linkStrength, linkDistance, damping ).
GraphView in GraphView.svelte treats app. graph. ui as the source of truth and applies layout / physics / hidden types / label mode to GraphCyController when those fields change.
The first graph load waits for graphUiState so restored node budget is included in loadGraph.
Navigation
Attributes
No attributes declared.
Ancestor context
No ancestor chain recorded.
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | control_panel | reqlan rq/extension/module/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | graphical_graph | reqlan rq/extension/module/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| references | key_panel_toggle | reqlan rq/extension/module/ideas_summary/graphical_graph.rq | graph_ui_persistence |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Initialising graph…