chore(svelte) refactored connectionPath & connection

This commit is contained in:
Peter
2023-09-27 13:40:03 +02:00
parent 854a9d3606
commit 66caa4c8ca
7 changed files with 88 additions and 57 deletions
@@ -1,11 +1,11 @@
<script lang="ts">
import { useStore } from '@xyflow/svelte';
const { connectionPath, connection } = useStore();
const { connection } = useStore();
</script>
{#if $connectionPath}
<g class={$connection.connectionStatus}>
<path d={$connectionPath} fill="none" stroke={$connection.connectionStartHandle?.handleId} />
{#if $connection.path}
<g class={$connection.status}>
<path d={$connection.path} fill="none" stroke={$connection.startHandle?.handleId} />
</g>
{/if}