refactor(core): immediately set node dimensions in store action
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -141,6 +141,7 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
if (doUpdate) {
|
if (doUpdate) {
|
||||||
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
|
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
|
||||||
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
|
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
|
||||||
|
node.dimensions = dimensions
|
||||||
|
|
||||||
res.push({
|
res.push({
|
||||||
id: node.id,
|
id: node.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user