update dependencies & fix keyhandler

This commit is contained in:
peterkogo
2025-01-09 13:38:05 +01:00
parent 3cbb117cf0
commit b56c1c1838
10 changed files with 365 additions and 349 deletions
@@ -3,6 +3,7 @@ import { MarkerType } from '@xyflow/svelte';
export default {
flowProps: {
fitView: true,
multiSelectionKey: ['Meta', 's'],
nodes: [
{
id: '1',
@@ -13,3 +13,4 @@
<SvelteFlowProvider>
<Flow flowConfig={data.flowConfig} />
</SvelteFlowProvider>
w
@@ -3,11 +3,7 @@
import '@xyflow/svelte/dist/style.css';
interface Props {
flowConfig: FlowConfig;
}
let { flowConfig }: Props = $props();
let { flowConfig }: { flowConfig: FlowConfig } = $props();
// Create writables here so it is easier to create test cases
let nodes = $state.raw(flowConfig.flowProps?.nodes ?? []);