cleanup paneClickDistance remnants
This commit is contained in:
@@ -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>(
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user