cleanup paneClickDistance remnants

This commit is contained in:
peterkogo
2025-10-28 11:46:33 +01:00
parent 2fb4933506
commit 5d0887c9db
2 changed files with 2 additions and 3 deletions
@@ -107,7 +107,6 @@ const initPrevValues = {
elementsSelectable: true, elementsSelectable: true,
noPanClassName: 'nopan', noPanClassName: 'nopan',
rfId: '1', rfId: '1',
paneClickDistance: 0,
}; };
export function StoreUpdater<NodeType extends Node = Node, EdgeType extends Edge = Edge>( export function StoreUpdater<NodeType extends Node = Node, EdgeType extends Edge = Edge>(
+2 -2
View File
@@ -21,6 +21,7 @@ type PaneProps = {
isSelecting: boolean; isSelecting: boolean;
selectionKeyPressed: boolean; selectionKeyPressed: boolean;
children: ReactNode; children: ReactNode;
paneClickDistance: number;
} & Partial< } & Partial<
Pick< Pick<
ReactFlowProps, ReactFlowProps,
@@ -35,7 +36,6 @@ type PaneProps = {
| 'onPaneMouseMove' | 'onPaneMouseMove'
| 'onPaneMouseLeave' | 'onPaneMouseLeave'
| 'selectionOnDrag' | 'selectionOnDrag'
| 'paneClickDistance'
> >
>; >;
@@ -63,7 +63,7 @@ export function Pane({
selectionKeyPressed, selectionKeyPressed,
selectionMode = SelectionMode.Full, selectionMode = SelectionMode.Full,
panOnDrag, panOnDrag,
paneClickDistance = 0, paneClickDistance,
selectionOnDrag, selectionOnDrag,
onSelectionStart, onSelectionStart,
onSelectionEnd, onSelectionEnd,