From 04e9a7961b64f84848bc4213e3d10f9989620eff Mon Sep 17 00:00:00 2001 From: bymyself Date: Wed, 2 Jul 2025 04:32:49 -0700 Subject: [PATCH] [feat] Update GraphCanvas with VueNodeData typing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Import VueNodeData type for proper typing - Update handleNodeSelect function signature - Remove debug comments - Fix lint issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/components/graph/GraphCanvas.vue | 354 +++++++++++++++++++-------- 1 file changed, 248 insertions(+), 106 deletions(-) diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 1983fc16e..cf5dfb3fa 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -39,18 +39,21 @@ > @@ -63,69 +66,133 @@
- + -
+

Canvas State

-

Status: {{ canvasStore.canvas ? 'Ready' : 'Not Ready' }}

-

Viewport: {{ Math.round(canvasViewport.width) }}x{{ Math.round(canvasViewport.height) }}

+

+ Status: {{ canvasStore.canvas ? 'Ready' : 'Not Ready' }} +

+

+ Viewport: {{ Math.round(canvasViewport.width) }}x{{ + Math.round(canvasViewport.height) + }} +

-
+

Graph Metrics

-

Total Nodes: {{ comfyApp.graph?.nodes?.length || 0 }}

-

Selected Nodes: {{ canvasStore.canvas?.selectedItems?.size || 0 }}

+

+ Total Nodes: {{ comfyApp.graph?.nodes?.length || 0 }} +

+

+ Selected Nodes: {{ canvasStore.canvas?.selectedItems?.size || 0 }} +

Vue Nodes Rendered: {{ vueNodesCount }}

Nodes in Viewport: {{ nodesInViewport }}

-

Culled Nodes: {{ performanceMetrics.culledCount }}

-

Cull Percentage: {{ Math.round(((vueNodesCount - nodesInViewport) / Math.max(vueNodesCount, 1)) * 100) }}%

+

+ Culled Nodes: {{ performanceMetrics.culledCount }} +

+

+ Cull Percentage: + {{ + Math.round( + ((vueNodesCount - nodesInViewport) / Math.max(vueNodesCount, 1)) * + 100 + ) + }}% +

-
+

Performance

-

FPS: {{ currentFPS }}

-

Transform Update: {{ Math.round(lastTransformTime) }}ms

-

Lifecycle Update: {{ Math.round(performanceMetrics.updateTime) }}ms

-

RAF Active: {{ rafActive ? 'Yes' : 'No' }}

-

Adaptive Quality: {{ performanceMetrics.adaptiveQuality ? 'On' : 'Off' }}

+

FPS: {{ currentFPS }}

+

+ Transform Update: {{ Math.round(lastTransformTime) }}ms +

+

+ Lifecycle Update: {{ Math.round(performanceMetrics.updateTime) }}ms +

+

+ RAF Active: {{ rafActive ? 'Yes' : 'No' }} +

+

+ Adaptive Quality: + {{ performanceMetrics.adaptiveQuality ? 'On' : 'Off' }} +

+
+ + +
+

Feature Flags

+

+ Vue Nodes: {{ shouldRenderVueNodes ? 'Enabled' : 'Disabled' }} +

+

+ Viewport Culling: + {{ isViewportCullingEnabled ? 'Enabled' : 'Disabled' }} +

+

+ Dev Mode: {{ isDevModeEnabled ? 'Enabled' : 'Disabled' }} +

-
-

Rendering Options

+
+

Debug Overrides

-
+
-
@@ -149,7 +216,16 @@