mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
chore(editor): Bump vue-flow with necessary workaround (#18245)
Co-authored-by: Csaba Tuncsik <csaba.tuncsik@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user