chore(react-draggable): remove ts-ignore
This commit is contained in:
@@ -232,7 +232,6 @@ export default (NodeComponent: ComponentType<NodeProps>) => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// @ts-ignore
|
|
||||||
<DraggableCore
|
<DraggableCore
|
||||||
onStart={onDragStart}
|
onStart={onDragStart}
|
||||||
onDrag={onDrag}
|
onDrag={onDrag}
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ const selector = (s: ReactFlowState) => ({
|
|||||||
transform: s.transform,
|
transform: s.transform,
|
||||||
selectedNodesBbox: s.selectedNodesBbox,
|
selectedNodesBbox: s.selectedNodesBbox,
|
||||||
userSelectionActive: s.userSelectionActive,
|
userSelectionActive: s.userSelectionActive,
|
||||||
selectedNodes: Array.from(s.nodeInternals)
|
selectedNodes: Array.from(s.nodeInternals.values()).filter((n) => n.selected),
|
||||||
.filter(([_, n]) => n.selected)
|
|
||||||
.map(([_, n]) => n),
|
|
||||||
snapToGrid: s.snapToGrid,
|
snapToGrid: s.snapToGrid,
|
||||||
snapGrid: s.snapGrid,
|
snapGrid: s.snapGrid,
|
||||||
updateNodePosition: s.updateNodePosition,
|
updateNodePosition: s.updateNodePosition,
|
||||||
@@ -113,7 +111,6 @@ function NodesSelection({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])} style={style}>
|
<div className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])} style={style}>
|
||||||
{/* @ts-ignore */}
|
|
||||||
<DraggableCore
|
<DraggableCore
|
||||||
scale={tScale}
|
scale={tScale}
|
||||||
grid={grid}
|
grid={grid}
|
||||||
|
|||||||
Reference in New Issue
Block a user