feat(nested-nodes): simplify nested node rendering

This commit is contained in:
Christopher Möller
2021-10-27 15:38:29 +02:00
parent 3e0b673e90
commit 241f604125
7 changed files with 47 additions and 65 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ import {
OnNodesChange,
OnEdgesChange,
EdgeChange,
NodePositionChange,
NodeDimensionChange,
} from '../types';
import { isNode, isEdge, getRectOfNodes, getNodesInside, getConnectedEdges } from '../utils/graph';
import { getHandleBounds } from '../components/Nodes/utils';
@@ -194,9 +194,9 @@ const createStore = () =>
if (matchingNodes?.length) {
onNodesChange(
matchingNodes.map((n) => {
const change: NodePositionChange = {
const change: NodeDimensionChange = {
id: n.id,
type: 'position',
type: 'dimensions',
isDragging: !!isDragging,
};