Refactor/vanilla store utils (#3138)
* feat(stores): use vanilla store utils * fix(store-utils): keep dimensions if possible * feat(utils): add nodeDimension and panBy utils * fix(svelte): use correct updateDim func * refactor(react): cleanup store * chore(tests): use new imports
This commit is contained in:
@@ -63,12 +63,7 @@ export function getEdgeTree(store: SvelteFlowStoreState, onError: OnError) {
|
||||
if (edgePosition) {
|
||||
res.push({
|
||||
...edge,
|
||||
sourceX: edgePosition.sourceX,
|
||||
sourceY: edgePosition.sourceY,
|
||||
targetX: edgePosition.targetX,
|
||||
targetY: edgePosition.targetY,
|
||||
sourcePosition: edgePosition.sourcePosition,
|
||||
targetPosition: edgePosition.targetPosition
|
||||
...edgePosition
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user