@flowgram.ai/free-layout-core 0.1.22 → 0.1.23

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
@@ -2297,7 +2297,6 @@ var WorkflowDragService = class {
2297
2297
  if (sameParent && sameParent.flowNodeType !== FlowNodeBaseType2.ROOT) {
2298
2298
  selectedNodes = [sameParent];
2299
2299
  }
2300
- const { altKey } = triggerEvent;
2301
2300
  let startPosition = this.getNodesPosition(selectedNodes);
2302
2301
  let startPositions = selectedNodes.map((node) => {
2303
2302
  const transform = node.getData(TransformData9);
@@ -2311,7 +2310,6 @@ var WorkflowDragService = class {
2311
2310
  type: "onDragStart",
2312
2311
  nodes: selectedNodes,
2313
2312
  startPositions,
2314
- altKey,
2315
2313
  dragEvent,
2316
2314
  triggerEvent,
2317
2315
  dragger
@@ -2320,25 +2318,6 @@ var WorkflowDragService = class {
2320
2318
  onDrag: (dragEvent) => {
2321
2319
  if (!dragSuccess && checkDragSuccess(Date.now() - startTime, dragEvent)) {
2322
2320
  dragSuccess = true;
2323
- if (altKey) {
2324
- const tryCopyNodes = selectedNodes;
2325
- if (tryCopyNodes.length > 0) {
2326
- this.selectService.clear();
2327
- this.commandService.executeCommand("PASTE_NODES" /* PASTE_NODES */, tryCopyNodes, true).then((newNodes) => {
2328
- if (newNodes && Array.isArray(newNodes) && newNodes.length > 0) {
2329
- selectedNodes = newNodes;
2330
- startPosition = this.getNodesPosition(tryCopyNodes);
2331
- startPositions = tryCopyNodes.filter((n) => !n.getNodeMeta().copyDisable).map((node) => {
2332
- const transform = node.getData(TransformData9);
2333
- return {
2334
- x: transform.position.x,
2335
- y: transform.position.y
2336
- };
2337
- });
2338
- }
2339
- });
2340
- }
2341
- }
2342
2321
  }
2343
2322
  const offset = this.getDragPosOffset({
2344
2323
  event: dragEvent,
@@ -2369,7 +2348,6 @@ var WorkflowDragService = class {
2369
2348
  nodes: selectedNodes,
2370
2349
  startPositions,
2371
2350
  positions,
2372
- altKey,
2373
2351
  dragEvent,
2374
2352
  triggerEvent,
2375
2353
  dragger
@@ -2381,7 +2359,6 @@ var WorkflowDragService = class {
2381
2359
  type: "onDragEnd",
2382
2360
  nodes: selectedNodes,
2383
2361
  startPositions,
2384
- altKey,
2385
2362
  dragEvent,
2386
2363
  triggerEvent,
2387
2364
  dragger