fix(svelte-flow) style is now applied properly to the connectionLine

This commit is contained in:
Peter
2023-10-04 10:37:39 +02:00
parent 53c04e2546
commit 969fa8280a
@@ -12,11 +12,11 @@
{#if $connection.path} {#if $connection.path}
<svg width={$width} height={$height} class="svelte-flow__connectionline" style={containerStyle}> <svg width={$width} height={$height} class="svelte-flow__connectionline" style={containerStyle}>
<g class={cc(['svelte-flow__connection', $connection.status])} {style}> <g class={cc(['svelte-flow__connection', $connection.status])}>
<slot name="connectionLine" /> <slot name="connectionLine" />
<!-- slot fallbacks do not work if slots are forwarded in parent --> <!-- slot fallbacks do not work if slots are forwarded in parent -->
{#if !isCustomComponent} {#if !isCustomComponent}
<path d={$connection.path} fill="none" class="svelte-flow__connection-path" /> <path d={$connection.path} {style} fill="none" class="svelte-flow__connection-path" />
{/if} {/if}
</g> </g>
</svg> </svg>