From a379b4f1cf32754fdf837e45a97152f5f21ccc9e Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:36:26 +0100 Subject: [PATCH] chore(core): cleanup change handler --- packages/core/src/types/changes.ts | 1 - packages/core/src/utils/changes.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/packages/core/src/types/changes.ts b/packages/core/src/types/changes.ts index b81e312c..baedb030 100644 --- a/packages/core/src/types/changes.ts +++ b/packages/core/src/types/changes.ts @@ -25,7 +25,6 @@ export interface NodePositionChange { id: string type: 'position' position: XYPosition - computedPosition: XYPosition from: XYPosition dragging: boolean } diff --git a/packages/core/src/utils/changes.ts b/packages/core/src/utils/changes.ts index 21d1a0c9..fea0bab1 100644 --- a/packages/core/src/utils/changes.ts +++ b/packages/core/src/utils/changes.ts @@ -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)]