Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
fix(dashboard): optimize pan/zoom interaction performance
mengdehongb8d88023a5f7
diff --git a/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx b/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsxindex 295f71a8..111d7a7b 100644--- a/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx+++ b/understand-anything-plugin/packages/dashboard/src/components/CustomNode.tsx@@ -80,8 +80,7 @@ function CustomNodeComponent({return (<div- className={`relative rounded-lg bg-elevated border border-border-subtle ${extraClass} min-w-[180px] max-w-[220px] overflow-hidden transition-all duration-200 cursor-pointer`}- style={{ boxShadow: '0 2px 8px rgba(0,0,0,0.3)' }}+ className={`relative rounded-lg bg-elevated border border-border-subtle ${extraClass} min-w-[180px] max-w-[220px] overflow-hidden transition-[box-shadow,outline,opacity,filter] duration-200 cursor-pointer shadow-[0_2px_8px_rgba(0,0,0,0.3)]`}onClick={() => data.onNodeClick?.(id)}>{/* Left color bar */}diff --git a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsxindex 3c30f194..b1d6fe33 100644--- a/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx+++ b/understand-anything-plugin/packages/dashboard/src/components/GraphView.tsx@@ -444,6 +444,11 @@ function GraphViewInner() {onNodeClick={onNodeClick}onPaneClick={onPaneClick}nodeTypes={nodeTypes}+ nodesDraggable={false}+ nodesConnectable={false}+ edgesFocusable={false}+ edgesReconnectable={false}+ elementsSelectable={false}fitViewfitViewOptions={{ minZoom: 0.01, padding: 0.1 }}minZoom={0.01}