feat(svelte) added connectionLineContainerStyle and connectionLineStyle props
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
|
||||
import { useStore } from '$lib/store';
|
||||
|
||||
export let containerStyle: string = '';
|
||||
export let style: string = '';
|
||||
|
||||
const { connectionPath, width, height, connection } = useStore();
|
||||
</script>
|
||||
|
||||
{#if $connectionPath}
|
||||
<svg width={$width} height={$height} class="svelte-flow__connectionline">
|
||||
<svg width={$width} height={$height} class="svelte-flow__connectionline" style={containerStyle}>
|
||||
<slot name="connectionLineComponent">
|
||||
<g class={cc(['svelte-flow__connection', $connection.connectionStatus])}>
|
||||
<g class={cc(['svelte-flow__connection', $connection.connectionStatus])} {style}>
|
||||
<path d={$connectionPath} fill="none" class="svelte-flow__connection-path" />
|
||||
</g>
|
||||
</slot>
|
||||
|
||||
Reference in New Issue
Block a user