feat(editor): Add support for fallback nodes and new addNodes node render type in new canvas (no-changelog) (#10004)

This commit is contained in:
Alex Grozav
2024-07-11 13:03:46 +03:00
committed by GitHub
parent f9e9d274b9
commit 57dfefd0f6
24 changed files with 509 additions and 224 deletions

View File

@@ -3,7 +3,7 @@
* @TODO Remove this notice when Canvas V2 is the only one in use
*/
import type { CanvasElement } from '@/types';
import type { CanvasNode } from '@/types';
import { CanvasConnectionMode } from '@/types';
import type {
AddedNodesAndConnections,
@@ -105,7 +105,7 @@ export function useCanvasOperations({
function updateNodePosition(
id: string,
position: CanvasElement['position'],
position: CanvasNode['position'],
{ trackHistory = false, trackBulk = true } = {},
) {
const node = workflowsStore.getNodeById(id);