@dou-ui/flow 0.1.0-alpha.13 → 0.1.0-alpha.15
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.
|
@@ -2704,8 +2704,10 @@ var flow_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
2704
2704
|
clearPress();
|
|
2705
2705
|
cancelAnimationFrame(autoPanFrame);
|
|
2706
2706
|
if (g && root.value?.hasPointerCapture(g.id)) root.value.releasePointerCapture(g.id);
|
|
2707
|
-
if ((g?.kind === "drag" || g?.kind === "bend") && g.started)
|
|
2708
|
-
|
|
2707
|
+
if ((g?.kind === "drag" || g?.kind === "bend") && g.started || g?.kind === "resize") {
|
|
2708
|
+
if (customHistory) customHistory.close?.();
|
|
2709
|
+
else history.close();
|
|
2710
|
+
}
|
|
2709
2711
|
gesture.value = null;
|
|
2710
2712
|
guides.value = [];
|
|
2711
2713
|
dropTarget.value = null;
|
|
@@ -2719,7 +2721,8 @@ var flow_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
2719
2721
|
if (g.kind === "bend") tr.updateEdge(g.edge, { data: g.origin });
|
|
2720
2722
|
else for (const [id, o] of g.origins) tr.moveNode(id, o.x, o.y);
|
|
2721
2723
|
if (tr.changed) commit(tr);
|
|
2722
|
-
|
|
2724
|
+
if (customHistory) customHistory.drop?.(g.group);
|
|
2725
|
+
else history.drop(g.group);
|
|
2723
2726
|
syncHistory();
|
|
2724
2727
|
endGesture();
|
|
2725
2728
|
return true;
|