Files
xyflow/examples/svelte/src/routes/custom-connection-line/ConnectionLine.svelte
T

10 lines
226 B
Svelte

<script lang="ts">
import { useStore } from '@xyflow/svelte';
const { connection } = useStore();
</script>
{#if $connection.path}
<path d={$connection.path} fill="none" stroke={$connection.startHandle?.handleId} />
{/if}