add baseedge path props

This commit is contained in:
peterkogo
2025-04-11 15:54:17 +02:00
parent a3e3055186
commit 3e20c2a0ee
@@ -1,4 +1,5 @@
<script lang="ts">
import type { HTMLAttributes } from 'svelte/elements';
import type { BaseEdgeProps } from '../../types';
import EdgeLabel from '../EdgeLabel/EdgeLabel.svelte';
@@ -13,8 +14,9 @@
markerEnd,
style,
interactionWidth = 20,
class: className
}: BaseEdgeProps = $props();
class: className,
...rest
}: BaseEdgeProps & HTMLAttributes<SVGPathElement> = $props();
</script>
<path
@@ -34,6 +36,7 @@
stroke-width={interactionWidth}
fill="none"
class="svelte-flow__edge-interaction"
{...rest}
/>
{/if}