feat(svelte): add selectionMode prop

This commit is contained in:
moklick
2023-03-14 15:25:46 +01:00
parent 233e6aedca
commit ae244526bd
7 changed files with 19 additions and 18 deletions
@@ -25,6 +25,7 @@
export let nodeTypes: $$Props['nodeTypes'] = undefined;
export let edgeTypes: $$Props['edgeTypes'] = undefined;
export let selectionKey: $$Props['selectionKey'] = undefined;
export let selectionMode: $$Props['selectionMode'] = undefined;
export let deleteKey: $$Props['deleteKey'] = undefined;
export let connectionRadius: $$Props['connectionRadius'] = undefined;
export let connectionLineType: $$Props['connectionLineType'] = undefined;
@@ -54,6 +55,7 @@
id,
connectionLineType,
connectionRadius,
selectionMode,
isValidConnection
};
@@ -3,7 +3,8 @@ import type {
ConnectionLineType,
NodeOrigin,
OnConnectStartParams,
Viewport
Viewport,
SelectionMode
} from '@reactflow/system';
import type {
@@ -27,6 +28,7 @@ export type SvelteFlowProps = {
maxZoom?: number;
initialViewport?: Viewport;
connectionRadius?: number;
selectionMode?: SelectionMode;
class?: string;
style?: string;