refector viewport to use signals

This commit is contained in:
peterkogo
2024-12-06 15:35:43 +01:00
parent f29898f0bd
commit 4fcde6f6bf
19 changed files with 87 additions and 90 deletions

View File

@@ -27,7 +27,7 @@
let id = 1;
const getId = () => `${id++}`;
const { screenToFlowPosition, flowToScreenPosition } = useSvelteFlow();
const { screenToFlowPosition, flowToScreenPosition } = $derived(useSvelteFlow());
const handleConnectEnd: OnConnectEnd = (event) => {
if (!connectingNodeId) return;