cleanup useSvelteFlow

This commit is contained in:
peterkogo
2024-12-10 12:54:18 +01:00
parent b99e5dd403
commit dca2eb6f37
4 changed files with 54 additions and 87 deletions
@@ -4,7 +4,7 @@
import portal from '$lib/actions/portal';
import { useStore } from '$lib/store';
import { useSvelteFlow } from '$lib/hooks';
import { useSvelteFlow } from '$lib/hooks/useSvelteFlow';
import type { InternalNode } from '$lib/types';
import type { NodeToolbarProps } from './types';
@@ -19,7 +19,7 @@
}: NodeToolbarProps = $props();
const store = useStore();
// const { nodes } = store;
const { getNodesBounds } = useSvelteFlow();
const contextNodeId = getContext<string>('svelteflow__node_id');