refactor(nodes): minimize position change loops
# What's changed? * Only loop selected nodes instead of all nodes when determining position changes
This commit is contained in:
@@ -104,9 +104,7 @@ onMounted(() => {
|
||||
onBeforeUnmount(() => observer.stop())
|
||||
|
||||
updateNodeDimensions([{ id: node.id, nodeElement: nodeElement.value, forceUpdate: true }])
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
watch(
|
||||
[() => node.position, () => parent?.computedPosition, () => node.selected, () => parent?.selected],
|
||||
([pos, parent]) => {
|
||||
|
||||
Reference in New Issue
Block a user