Merge pull request #4105 from xyflow/refactor/internal-nodes

React Flow 12: separate user nodes and internal nodes
This commit is contained in:
Moritz Klack
2024-04-09 13:33:25 +02:00
committed by GitHub
57 changed files with 722 additions and 582 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import {
type Writable
} from 'svelte/store';
import {
adoptUserProvidedNodes,
adoptUserNodes,
updateConnectionLookup,
type Viewport,
type PanZoomInstance,
@@ -141,7 +141,7 @@ export const createNodesStore = (
let elevateNodesOnSelect = true;
const _set = (nds: Node[]): Node[] => {
const nextNodes = adoptUserProvidedNodes(nds, nodeLookup, {
const nextNodes = adoptUserNodes(nds, nodeLookup, {
elevateNodesOnSelect,
defaults
});