fix(svelte) corrected <g> positioning
This commit is contained in:
@@ -5,7 +5,5 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $connection.path}
|
{#if $connection.path}
|
||||||
<g class={$connection.status}>
|
<path d={$connection.path} fill="none" stroke={$connection.startHandle?.handleId} />
|
||||||
<path d={$connection.path} fill="none" stroke={$connection.startHandle?.handleId} />
|
|
||||||
</g>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -12,11 +12,12 @@
|
|||||||
|
|
||||||
{#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}>
|
||||||
<slot name="connectionLine" />
|
<g class={cc(['svelte-flow__connection', $connection.status])} {style}>
|
||||||
{#if !usingCustomLine}
|
<slot name="connectionLine" />
|
||||||
<g class={cc(['svelte-flow__connection', $connection.status])} {style}>
|
<!-- slot fallbacks do not work if slots are forwarded in parent -->
|
||||||
|
{#if !usingCustomLine}
|
||||||
<path d={$connection.path} fill="none" class="svelte-flow__connection-path" />
|
<path d={$connection.path} fill="none" class="svelte-flow__connection-path" />
|
||||||
</g>
|
{/if}
|
||||||
{/if}
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user