diff --git a/examples/svelte/src/components/Header/Header.svelte b/examples/svelte/src/components/Header/Header.svelte index 6fa79b68..3d0c9ff5 100644 --- a/examples/svelte/src/components/Header/Header.svelte +++ b/examples/svelte/src/components/Header/Header.svelte @@ -13,7 +13,8 @@ 'subflows', 'usesvelteflow', 'useupdatenodeinternals', - 'validation' + 'validation', + 'custom-connection-line' ]; const onChange = (event: Event) => { diff --git a/examples/svelte/src/routes/custom-connection-line/+page.svelte b/examples/svelte/src/routes/custom-connection-line/+page.svelte new file mode 100644 index 00000000..c5bcab3f --- /dev/null +++ b/examples/svelte/src/routes/custom-connection-line/+page.svelte @@ -0,0 +1,35 @@ + + +
+ + + + +
+ + diff --git a/examples/svelte/src/routes/custom-connection-line/ConnectionLine.svelte b/examples/svelte/src/routes/custom-connection-line/ConnectionLine.svelte new file mode 100644 index 00000000..977359f1 --- /dev/null +++ b/examples/svelte/src/routes/custom-connection-line/ConnectionLine.svelte @@ -0,0 +1,11 @@ + + +{#if $connectionPath} + + + +{/if} diff --git a/examples/svelte/src/routes/custom-connection-line/CustomNode.svelte b/examples/svelte/src/routes/custom-connection-line/CustomNode.svelte new file mode 100644 index 00000000..0f4cc6bd --- /dev/null +++ b/examples/svelte/src/routes/custom-connection-line/CustomNode.svelte @@ -0,0 +1,34 @@ + + +
+
Node
+ + + +
diff --git a/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte b/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte index f2abe041..31d67711 100644 --- a/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte +++ b/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte @@ -8,8 +8,10 @@ {#if $connectionPath} - - - + + + + + {/if} diff --git a/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte b/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte index 600622ce..c77c0b29 100644 --- a/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte +++ b/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte @@ -154,7 +154,9 @@ - + + +