refactor(nodes): re-init when sourcePos, targetPos or type changes

This commit is contained in:
moklick
2022-01-28 14:48:14 +01:00
parent 8d5231b043
commit 7e915ad39f
3 changed files with 33 additions and 6 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ export interface WrapNodeProps<T = any> {
onNodeDragStop?: NodeMouseHandler;
style?: CSSProperties;
className?: string;
sourcePosition?: Position;
targetPosition?: Position;
sourcePosition: Position;
targetPosition: Position;
hidden?: boolean;
snapToGrid?: boolean;
snapGrid?: SnapGrid;