refactor(useReactFlow): pass generic nodedata and edgedata closes #1944

This commit is contained in:
moklick
2022-03-05 12:49:26 +01:00
parent 7fc7dc3f9d
commit 414d7ec993
4 changed files with 24 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { Selection as D3Selection } from 'd3';
import { boxToRect, clamp, getBoundsOfBoxes, rectToBox } from '../utils';
import { boxToRect, clamp, getBoundsOfBoxes, rectToBox } from '../utils';
import { Node, Edge, Connection, EdgeMarkerType, Transform, XYPosition, Rect, NodeInternals } from '../types';
export const isEdge = (element: Node | Connection | Edge): element is Edge =>