streamline onselectionchange

This commit is contained in:
peterkogo
2025-05-13 15:44:44 +02:00
parent 08ce321d4c
commit a05b6ad61e
10 changed files with 31 additions and 29 deletions
@@ -22,7 +22,8 @@
clientWidth?: number;
clientHeight?: number;
children?: Snippet;
rest: SvelteFlowRestProps<NodeType, EdgeType> & HTMLAttributes<HTMLDivElement>;
rest: SvelteFlowRestProps<NodeType, EdgeType> &
Omit<HTMLAttributes<HTMLDivElement>, 'onselectionchange'>;
} = $props();
// Unfortunately we have to destructure the props here this way,
@@ -52,7 +53,7 @@
onclickconnectstart,
onclickconnectend,
oninit,
onselectionchanged,
onselectionchange,
clickConnect,
fitView,
fitViewOptions,