feat(svelte) added connectionLineContainerStyle and connectionLineStyle props

This commit is contained in:
Peter
2023-09-26 16:01:00 +02:00
parent beecd9623b
commit 854a9d3606
3 changed files with 10 additions and 3 deletions
@@ -39,6 +39,8 @@
export let connectionRadius: $$Props['connectionRadius'] = undefined;
export let connectionLineType: $$Props['connectionLineType'] = undefined;
export let connectionMode: $$Props['connectionMode'] = ConnectionMode.Strict;
export let connectionLineStyle: $$Props['connectionLineStyle'] = '';
export let connectionLineContainerStyle: $$Props['connectionLineContainerStyle'] = '';
export let onMoveStart: $$Props['onMoveStart'] = undefined;
export let onMove: $$Props['onMove'] = undefined;
export let onMoveEnd: $$Props['onMoveEnd'] = undefined;
@@ -154,7 +156,7 @@
<Pane on:paneclick panOnDrag={panOnDrag === undefined ? true : panOnDrag}>
<ViewportComponent>
<EdgeRenderer on:edgeclick on:edgecontextmenu />
<ConnectionLine>
<ConnectionLine containerStyle={connectionLineContainerStyle} style={connectionLineStyle}>
<slot name="connectionLineComponent" slot="connectionLineComponent" />
</ConnectionLine>
<div class="svelte-flow__edgelabel-renderer" />
@@ -39,6 +39,8 @@ export type SvelteFlowProps = DOMAttributes<HTMLDivElement> & {
initialViewport?: Viewport;
connectionRadius?: number;
connectionMode?: ConnectionMode;
connectionLineStyle?: string;
connectionLineContainerStyle?: string;
selectionMode?: SelectionMode;
snapGrid?: SnapGrid;
defaultMarkerColor?: string;