chore(core): cleanup change handler

This commit is contained in:
braks
2022-11-17 17:55:20 +01:00
committed by Braks
parent 4a1cc24bd8
commit a379b4f1cf
2 changed files with 0 additions and 5 deletions
-1
View File
@@ -25,7 +25,6 @@ export interface NodePositionChange {
id: string
type: 'position'
position: XYPosition
computedPosition: XYPosition
from: XYPosition
dragging: boolean
}
-4
View File
@@ -98,10 +98,6 @@ export const applyChanges = <
if (isGraphNode(el)) {
if (typeof change.position !== 'undefined') el.position = change.position
if (typeof change.computedPosition !== 'undefined') {
el.computedPosition = { ...el.computedPosition, ...change.computedPosition }
}
if (el.expandParent && el.parentNode) {
const parent = elements[elementIds.indexOf(el.parentNode)]