diff --git a/examples/svelte/src/routes/custom-connection-line/+page.svelte b/examples/svelte/src/routes/custom-connection-line/+page.svelte index c5bcab3f..58552225 100644 --- a/examples/svelte/src/routes/custom-connection-line/+page.svelte +++ b/examples/svelte/src/routes/custom-connection-line/+page.svelte @@ -26,7 +26,7 @@
- +
diff --git a/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte b/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte index d88cb728..f8ddc5b3 100644 --- a/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte +++ b/packages/svelte/src/lib/components/ConnectionLine/ConnectionLine.svelte @@ -5,16 +5,18 @@ export let containerStyle: string = ''; export let style: string = ''; + export let usingCustomLine: boolean = false; const { width, height, connection } = useStore(); {#if $connection.path} - + + {#if !usingCustomLine} - + {/if} {/if} diff --git a/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte b/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte index 2f13ac2f..bb450236 100644 --- a/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte +++ b/packages/svelte/src/lib/container/SvelteFlow/SvelteFlow.svelte @@ -162,8 +162,12 @@ - - + +