chore(editor): Bump vue-flow with necessary workaround (#18245)

Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
Suguru Inoue
2025-09-01 11:54:51 +02:00
committed by GitHub
parent 7f64baebd2
commit 056418307a
6 changed files with 38 additions and 42 deletions

View File

@@ -447,11 +447,7 @@ function onSelectNodes({ ids, panIntoView }: CanvasEventBusEvents['nodes:select'
const newViewport = updateViewportToContainNodes(viewport.value, dimensions.value, nodes, 100);
void setViewport(newViewport, {
duration: 200,
// TODO: restore when re-upgrading vue-flow to >= 1.45
// interpolate: 'linear',
});
void setViewport(newViewport, { duration: 200, interpolate: 'linear' });
}
}
@@ -469,10 +465,16 @@ function onUpdateNodeParameters(id: string, parameters: Record<string, unknown>)
function onUpdateNodeInputs(id: string) {
emit('update:node:inputs', id);
// Let VueFlow update connection paths to match the new handle position
void nextTick(() => vueFlow.updateNodeInternals([id]));
}
function onUpdateNodeOutputs(id: string) {
emit('update:node:outputs', id);
// Let VueFlow update connection paths to match the new handle position
void nextTick(() => vueFlow.updateNodeInternals([id]));
}
function onFocusNode(id: string) {