enh: scroll to message from overview

This commit is contained in:
Timothy J. Baek
2024-09-18 03:13:37 +02:00
parent 8d92093570
commit 67f704c98d
5 changed files with 38 additions and 4 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
<script>
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
import { theme } from '$lib/stores';
import { Background, Controls, SvelteFlow, BackgroundVariant } from '@xyflow/svelte';
@@ -22,7 +26,7 @@
: 'light'}
nodesConnectable={false}
nodesDraggable={false}
on:nodeclick={(event) => console.log('on node click', event.detail.node)}
on:nodeclick={(e) => dispatch('nodeclick', e.detail)}
oninit={() => {
console.log('Flow initialized');
}}