refactor(nodes): rename computed to measured, add helpers

This commit is contained in:
moklick
2024-04-03 14:54:24 +02:00
parent f45f50671d
commit ea18e46a1a
32 changed files with 159 additions and 226 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
});