refactor(core): remove initialized from graph-nodes (#1457)

* refactor(core): remove `initialized` from graph-nodes

* chore(changeset): add

* refactor(node-resizer): replace node initialized check

* chore(changeset): add
This commit is contained in:
Braks
2024-06-13 00:04:51 +02:00
parent 9a7e4ac952
commit 0c5dfddc47
9 changed files with 30 additions and 20 deletions
+3 -5
View File
@@ -183,7 +183,9 @@ export function applyChanges<
const parent = elements[elementIds.indexOf(element.parentNode)]
if (parent && isGraphNode(parent)) {
if (!parent.initialized) {
const parentInit = !!parent.dimensions.width && !!parent.dimensions.height
if (!parentInit) {
nextTick(() => {
handleParentExpand(element, parent)
})
@@ -192,10 +194,6 @@ export function applyChanges<
}
}
}
if (!element.initialized) {
element.initialized = true
}
}
break
}