add baseedge path props
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import type { BaseEdgeProps } from '../../types';
|
import type { BaseEdgeProps } from '../../types';
|
||||||
import EdgeLabel from '../EdgeLabel/EdgeLabel.svelte';
|
import EdgeLabel from '../EdgeLabel/EdgeLabel.svelte';
|
||||||
|
|
||||||
@@ -13,8 +14,9 @@
|
|||||||
markerEnd,
|
markerEnd,
|
||||||
style,
|
style,
|
||||||
interactionWidth = 20,
|
interactionWidth = 20,
|
||||||
class: className
|
class: className,
|
||||||
}: BaseEdgeProps = $props();
|
...rest
|
||||||
|
}: BaseEdgeProps & HTMLAttributes<SVGPathElement> = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<path
|
<path
|
||||||
@@ -34,6 +36,7 @@
|
|||||||
stroke-width={interactionWidth}
|
stroke-width={interactionWidth}
|
||||||
fill="none"
|
fill="none"
|
||||||
class="svelte-flow__edge-interaction"
|
class="svelte-flow__edge-interaction"
|
||||||
|
{...rest}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user