removed console print and fixed updatePosition
This commit is contained in:
@@ -57,7 +57,7 @@ export function useMoveSelectedNodes() {
|
|||||||
return node;
|
return node;
|
||||||
});
|
});
|
||||||
|
|
||||||
updateNodePositions(nodeUpdates, true, false);
|
updateNodePositions(nodeUpdates);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return moveSelectedNodes;
|
return moveSelectedNodes;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { EdgeLookup, NodeLookup } from '@xyflow/system';
|
|||||||
import type { Node, Edge, EdgeChange, NodeChange, NodeSelectionChange, EdgeSelectionChange } from '../types';
|
import type { Node, Edge, EdgeChange, NodeChange, NodeSelectionChange, EdgeSelectionChange } from '../types';
|
||||||
|
|
||||||
export function handleParentExpand(updatedElements: any[], updateItem: any) {
|
export function handleParentExpand(updatedElements: any[], updateItem: any) {
|
||||||
console.log(updatedElements, updateItem);
|
|
||||||
for (const [index, item] of updatedElements.entries()) {
|
for (const [index, item] of updatedElements.entries()) {
|
||||||
if (item.id === updateItem.parentNode) {
|
if (item.id === updateItem.parentNode) {
|
||||||
const parent = { ...item };
|
const parent = { ...item };
|
||||||
|
|||||||
Reference in New Issue
Block a user