mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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) {
|
||||
|
||||
@@ -88,8 +88,7 @@ export const useExperimentalNdvStore = defineStore('experimentalNdv', () => {
|
||||
{
|
||||
duration: 200,
|
||||
zoom: maxCanvasZoom.value,
|
||||
// TODO: restore when re-upgrading vue-flow to >= 1.45
|
||||
// interpolate: 'linear',
|
||||
interpolate: 'linear',
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -107,19 +106,11 @@ export const useExperimentalNdvStore = defineStore('experimentalNdv', () => {
|
||||
function toggleZoomMode(options: ToggleZoomModeOptions) {
|
||||
if (isActive(options.canvasViewport.zoom)) {
|
||||
if (previousViewport.value === undefined) {
|
||||
void options.fitView({
|
||||
duration: 200,
|
||||
// TODO: restore when re-upgrading vue-flow to >= 1.45
|
||||
// interpolate: 'linear',
|
||||
});
|
||||
void options.fitView({ duration: 200, interpolate: 'linear' });
|
||||
return;
|
||||
}
|
||||
|
||||
void options.setViewport(previousViewport.value, {
|
||||
duration: 200,
|
||||
// TODO: restore when re-upgrading vue-flow to >= 1.45
|
||||
// interpolate: 'linear'
|
||||
});
|
||||
void options.setViewport(previousViewport.value, { duration: 200, interpolate: 'linear' });
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -136,11 +127,7 @@ export const useExperimentalNdvStore = defineStore('experimentalNdv', () => {
|
||||
return;
|
||||
}
|
||||
|
||||
void options.zoomTo(maxCanvasZoom.value, {
|
||||
duration: 200,
|
||||
// TODO: restore when re-upgrading vue-flow to >= 1.45
|
||||
// interpolate: 'linear',
|
||||
});
|
||||
void options.zoomTo(maxCanvasZoom.value, { duration: 200, interpolate: 'linear' });
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user