@flowgram.ai/free-layout-core 0.1.8 → 0.1.10

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/dist/esm/index.js CHANGED
@@ -2240,6 +2240,9 @@ var WorkflowDragService = class {
2240
2240
  }
2241
2241
  init() {
2242
2242
  this._toDispose.pushAll([this._onDragLineEventEmitter, this._nodesDragEmitter]);
2243
+ if (this.options.onDragLineEnd) {
2244
+ this._toDispose.push(this.onDragLineEnd(this.options.onDragLineEnd));
2245
+ }
2243
2246
  }
2244
2247
  dispose() {
2245
2248
  this._toDispose.dispose();
@@ -2275,6 +2278,7 @@ var WorkflowDragService = class {
2275
2278
  if (altKey) {
2276
2279
  const tryCopyNodes = selectedNodes;
2277
2280
  if (tryCopyNodes.length > 0) {
2281
+ this.selectService.clear();
2278
2282
  this.commandService.executeCommand("PASTE_NODES" /* PASTE_NODES */, tryCopyNodes, true).then((newNodes) => {
2279
2283
  if (newNodes && Array.isArray(newNodes) && newNodes.length > 0) {
2280
2284
  selectedNodes = newNodes;
@@ -2756,6 +2760,9 @@ __decorateClass([
2756
2760
  __decorateClass([
2757
2761
  inject6(FlowOperationBaseService)
2758
2762
  ], WorkflowDragService.prototype, "operationService", 2);
2763
+ __decorateClass([
2764
+ inject6(WorkflowDocumentOptions)
2765
+ ], WorkflowDragService.prototype, "options", 2);
2759
2766
  __decorateClass([
2760
2767
  postConstruct2()
2761
2768
  ], WorkflowDragService.prototype, "init", 1);