refactor(core): immediately set node dimensions in store action

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-10 16:00:17 +01:00
committed by Braks
parent 3f21dc764d
commit 9d342511f5
+1
View File
@@ -141,6 +141,7 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
if (doUpdate) {
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
node.dimensions = dimensions
res.push({
id: node.id,