feat(svelte) added connectionLineComponent

This commit is contained in:
Peter
2023-09-26 15:45:06 +02:00
parent c251b9ee29
commit bba97aa01a
6 changed files with 90 additions and 5 deletions
@@ -0,0 +1,11 @@
<script lang="ts">
import { useStore } from '@xyflow/svelte';
const { connectionPath, connection } = useStore();
</script>
{#if $connectionPath}
<g class={$connection.connectionStatus}>
<path d={$connectionPath} fill="none" stroke="red" />
</g>
{/if}