From 1dfcc7a0d448be1f7788b951420d455d9717dcbf Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Fri, 18 Oct 2024 18:56:53 -0500 Subject: [PATCH] Migrate tooltip tracking to a pinia store While I was concerned that doing this would remove the capability to suppress tooltips on the active node, clearing the hoveredItem when it used for documentation functions without even producing a temporary tooltip. A future commit will likely be made so that disabling tooltips for nodes doesn't also prevent the hovered item from being tracked in the store. --- src/components/graph/NodeTooltip.vue | 56 +++++++++++------- .../sidebar/tabs/DocumentationSidebarTab.vue | 58 +++++++++++-------- src/stores/graphStore.ts | 9 +++ src/types/comfy.d.ts | 6 ++ 4 files changed, 82 insertions(+), 47 deletions(-) diff --git a/src/components/graph/NodeTooltip.vue b/src/components/graph/NodeTooltip.vue index 3089866a2..3d3d3d435 100644 --- a/src/components/graph/NodeTooltip.vue +++ b/src/components/graph/NodeTooltip.vue @@ -10,15 +10,16 @@