@bian-womp/spark-graph 0.2.83 → 0.2.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.cjs CHANGED
@@ -4021,10 +4021,11 @@ function mergeInputsOutputs(targetInputs, targetOutputs, sourceInputs, sourceOut
4021
4021
  return { mergedInputs, mergedOutputs };
4022
4022
  }
4023
4023
  /**
4024
- * Merge snapshot data (inputs, outputs, UI positions) from source into target.
4024
+ * Merge snapshot data (inputs, outputs) from source into target.
4025
4025
  * Graph definition merging should be done separately using mergeGraphDefinitions.
4026
+ * UI positions are handled separately by mergeUIState.
4026
4027
  */
4027
- function mergeSnapshotData(targetSnapshot, sourceSnapshot, sourceDef, nodeIdMap, anchorPos, converter) {
4028
+ function mergeSnapshotData(targetSnapshot, sourceSnapshot, sourceDef, nodeIdMap, converter) {
4028
4029
  const nodeTypeMap = new Map();
4029
4030
  const handleTypeMap = new Map();
4030
4031
  for (const node of sourceDef.nodes) {
@@ -4055,13 +4056,9 @@ function mergeSnapshotData(targetSnapshot, sourceSnapshot, sourceDef, nodeIdMap,
4055
4056
  }
4056
4057
  }
4057
4058
  const { mergedInputs, mergedOutputs } = mergeInputsOutputs(targetSnapshot.inputs ?? {}, targetSnapshot.outputs ?? {}, sourceSnapshot.inputs ?? {}, sourceSnapshot.outputs ?? {}, nodeIdMap, converter, nodeTypeMap, handleTypeMap);
4058
- const targetUI = targetSnapshot.extData?.ui || {};
4059
- const sourceUI = sourceSnapshot.extData?.ui || {};
4060
- const mergedPositions = offsetImportedPositions(targetUI.positions ?? {}, sourceUI.positions ?? {}, sourceDef, nodeIdMap, anchorPos);
4061
4059
  return {
4062
4060
  mergedInputs,
4063
4061
  mergedOutputs,
4064
- mergedPositions,
4065
4062
  };
4066
4063
  }
4067
4064
  /**