added Edge Reconnection

This commit is contained in:
peterkogo
2025-04-11 15:32:07 +02:00
parent d94f3f490a
commit a3e3055186
17 changed files with 314 additions and 165 deletions
@@ -1,14 +1,11 @@
<script lang="ts">
import type { Snippet } from 'svelte';
import portal from '$lib/actions/portal';
import { useStore } from '$lib/store';
import { portal } from '$lib/actions/portal';
let { children }: { children?: Snippet } = $props();
const store = useStore();
</script>
<div use:portal={{ target: '.svelte-flow__viewport-portal', domNode: store.domNode }}>
<div use:portal={'viewport'}>
{@render children?.()}
</div>