refactor(node-internals): only keep width, height and handleBounds

This commit is contained in:
moklick
2022-05-08 13:28:13 +02:00
parent 663024b628
commit 5a0f513c3f
+4 -1
View File
@@ -43,9 +43,12 @@ export function createNodeInternals(nodes: Node[], nodeInternals: NodeInternals)
nodes.forEach((node) => {
const z = isNumeric(node.zIndex) ? node.zIndex : node.dragging || node.selected ? 1000 : 0;
const currInternals = nodeInternals.get(node.id);
const internals: Node = {
...nodeInternals.get(node.id),
width: currInternals?.width,
height: currInternals?.height,
handleBounds: currInternals?.handleBounds,
...node,
positionAbsolute: {
x: node.position.x,