@foblex/flow 17.0.5 → 17.0.6

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.
Files changed (85) hide show
  1. package/domain/f-draggable/providers.d.ts +1 -1
  2. package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.execution.d.ts +2 -4
  3. package/domain/f-node/index.d.ts +2 -0
  4. package/domain/f-node/providers.d.ts +3 -1
  5. package/domain/providers.d.ts +1 -1
  6. package/esm2022/domain/f-node/get-node-padding/get-node-padding.execution.mjs +34 -0
  7. package/esm2022/domain/f-node/get-node-padding/get-node-padding.request.mjs +9 -0
  8. package/esm2022/domain/f-node/get-node-padding/index.mjs +3 -0
  9. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +34 -0
  10. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +7 -0
  11. package/esm2022/domain/f-node/get-parent-nodes/index.mjs +3 -0
  12. package/esm2022/domain/f-node/index.mjs +3 -1
  13. package/esm2022/domain/f-node/providers.mjs +5 -1
  14. package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +6 -6
  15. package/esm2022/f-draggable/domain/index.mjs +1 -4
  16. package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +2 -2
  17. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.request.mjs +1 -1
  18. package/esm2022/f-draggable/domain/providers.mjs +1 -7
  19. package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
  20. package/esm2022/f-draggable/f-draggable.directive.mjs +8 -2
  21. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +32 -35
  22. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +12 -15
  23. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +37 -31
  24. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +41 -43
  25. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +19 -23
  26. package/esm2022/f-draggable/node/node.drag-handler.mjs +25 -10
  27. package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +3 -2
  28. package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +4 -5
  29. package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +3 -3
  30. package/esm2022/f-flow.module.mjs +1 -1
  31. package/esm2022/f-node/f-drag-handle.directive.mjs +22 -0
  32. package/esm2022/f-node/index.mjs +3 -3
  33. package/esm2022/f-node/is-node.mjs +4 -0
  34. package/esm2022/f-node/providers.mjs +2 -2
  35. package/f-backgroud/providers.d.ts +1 -1
  36. package/f-connection/providers.d.ts +1 -1
  37. package/f-connectors/providers.d.ts +1 -1
  38. package/f-draggable/connections/providers.d.ts +1 -1
  39. package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +1 -1
  40. package/f-draggable/domain/index.d.ts +0 -3
  41. package/f-draggable/domain/providers.d.ts +1 -4
  42. package/f-draggable/f-draggable-base.d.ts +2 -0
  43. package/f-draggable/f-draggable.directive.d.ts +4 -2
  44. package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +7 -9
  45. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.d.ts +3 -4
  46. package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  47. package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +11 -11
  48. package/f-draggable/node/node-move-preparation/node-move-preparation.execution.d.ts +11 -14
  49. package/f-draggable/node/node-move-preparation/node-move-preparation.validator.d.ts +6 -9
  50. package/f-draggable/node/node.drag-handler.d.ts +9 -5
  51. package/f-draggable/node/providers.d.ts +1 -1
  52. package/f-draggable/providers.d.ts +1 -1
  53. package/f-flow.module.d.ts +1 -1
  54. package/f-minimap/domain/providers.d.ts +1 -1
  55. package/f-node/{f-drag-handle/f-drag-handle.directive.d.ts → f-drag-handle.directive.d.ts} +1 -1
  56. package/f-node/index.d.ts +2 -2
  57. package/f-node/providers.d.ts +2 -2
  58. package/f-storage/providers.d.ts +1 -1
  59. package/fesm2022/foblex-flow.mjs +229 -245
  60. package/fesm2022/foblex-flow.mjs.map +1 -1
  61. package/package.json +1 -1
  62. package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +0 -34
  63. package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs +0 -9
  64. package/esm2022/f-draggable/domain/get-node-padding/index.mjs +0 -3
  65. package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +0 -30
  66. package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs +0 -7
  67. package/esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs +0 -3
  68. package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +0 -37
  69. package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs +0 -7
  70. package/esm2022/f-draggable/domain/get-parent-nodes/index.mjs +0 -3
  71. package/esm2022/f-node/domain/index.mjs +0 -2
  72. package/esm2022/f-node/domain/is-node.mjs +0 -4
  73. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -22
  74. package/esm2022/f-node/f-drag-handle/index.mjs +0 -2
  75. package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.d.ts +0 -13
  76. package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.d.ts +0 -5
  77. package/f-draggable/domain/get-normalized-node-rect/index.d.ts +0 -2
  78. package/f-node/domain/index.d.ts +0 -1
  79. package/f-node/f-drag-handle/index.d.ts +0 -1
  80. /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.execution.d.ts +0 -0
  81. /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.request.d.ts +0 -0
  82. /package/{f-draggable/domain → domain/f-node}/get-node-padding/index.d.ts +0 -0
  83. /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.request.d.ts +0 -0
  84. /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/index.d.ts +0 -0
  85. /package/f-node/{domain/is-node.d.ts → is-node.d.ts} +0 -0
@@ -1244,30 +1244,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
1244
1244
  type: Directive
1245
1245
  }] });
1246
1246
 
1247
- function isNode(element) {
1248
- return !!element.closest('[fNode]');
1249
- }
1250
-
1251
- const F_DRAG_HANDLE = new InjectionToken('F_DRAG_HANDLE');
1252
- class FDragHandleDirective {
1253
- _elementReference = inject(ElementRef);
1254
- get hostElement() {
1255
- return this._elementReference.nativeElement;
1256
- }
1257
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDragHandleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1258
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.4", type: FDragHandleDirective, selector: "[fDragHandle]", host: { classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 });
1259
- }
1260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDragHandleDirective, decorators: [{
1261
- type: Directive,
1262
- args: [{
1263
- selector: "[fDragHandle]",
1264
- host: {
1265
- class: "f-drag-handle f-component"
1266
- },
1267
- providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }],
1268
- }]
1269
- }] });
1270
-
1271
1247
  var EFResizeHandleType;
1272
1248
  (function (EFResizeHandleType) {
1273
1249
  EFResizeHandleType["LEFT_TOP"] = "left-top";
@@ -1338,6 +1314,26 @@ class FRotateHandleDirective {
1338
1314
  }
1339
1315
  }
1340
1316
 
1317
+ const F_DRAG_HANDLE = new InjectionToken('F_DRAG_HANDLE');
1318
+ class FDragHandleDirective {
1319
+ _elementReference = inject(ElementRef);
1320
+ get hostElement() {
1321
+ return this._elementReference.nativeElement;
1322
+ }
1323
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDragHandleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1324
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.4", type: FDragHandleDirective, selector: "[fDragHandle]", host: { classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 });
1325
+ }
1326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDragHandleDirective, decorators: [{
1327
+ type: Directive,
1328
+ args: [{
1329
+ selector: "[fDragHandle]",
1330
+ host: {
1331
+ class: "f-drag-handle f-component"
1332
+ },
1333
+ providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }],
1334
+ }]
1335
+ }] });
1336
+
1341
1337
  const F_SELECTED_CLASS = 'f-selected';
1342
1338
  function mixinChangeSelection(base) {
1343
1339
  return class extends base {
@@ -1659,6 +1655,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
1659
1655
  type: Input
1660
1656
  }] } });
1661
1657
 
1658
+ function isNode(element) {
1659
+ return !!element.closest('[fNode]');
1660
+ }
1661
+
1662
1662
  const F_NODE_PROVIDERS = [
1663
1663
  FGroupDirective,
1664
1664
  FNodeDirective,
@@ -4355,71 +4355,6 @@ const CONNECTIONS_PROVIDERS = [
4355
4355
  ReassignConnectionPreparationValidator,
4356
4356
  ];
4357
4357
 
4358
- class GetNodePaddingRequest {
4359
- fNode;
4360
- rect;
4361
- constructor(fNode, rect) {
4362
- this.fNode = fNode;
4363
- this.rect = rect;
4364
- }
4365
- }
4366
-
4367
- let GetNodePaddingExecution = class GetNodePaddingExecution {
4368
- fBrowser;
4369
- constructor(fBrowser) {
4370
- this.fBrowser = fBrowser;
4371
- }
4372
- handle(request) {
4373
- return request.fNode.fIncludePadding ? this.getPaddingData(request.fNode, request.rect) : [0, 0, 0, 0];
4374
- }
4375
- getPaddingData(node, rect) {
4376
- const style = this.fBrowser.window.getComputedStyle(node.hostElement);
4377
- return [
4378
- this.fBrowser.toPixels(style.paddingLeft, rect.width, rect.height, style.fontSize),
4379
- this.fBrowser.toPixels(style.paddingTop, rect.width, rect.height, style.fontSize),
4380
- this.fBrowser.toPixels(style.paddingRight, rect.width, rect.height, style.fontSize),
4381
- this.fBrowser.toPixels(style.paddingBottom, rect.width, rect.height, style.fontSize)
4382
- ];
4383
- }
4384
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution, deps: [{ token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
4385
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution });
4386
- };
4387
- GetNodePaddingExecution = __decorate([
4388
- FExecutionRegister(GetNodePaddingRequest)
4389
- ], GetNodePaddingExecution);
4390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution, decorators: [{
4391
- type: Injectable
4392
- }], ctorParameters: () => [{ type: i1.BrowserService }] });
4393
-
4394
- class GetNormalizedNodeRectRequest {
4395
- fNode;
4396
- constructor(fNode) {
4397
- this.fNode = fNode;
4398
- }
4399
- }
4400
-
4401
- let GetNormalizedNodeRectExecution = class GetNormalizedNodeRectExecution {
4402
- fComponentsStore;
4403
- constructor(fComponentsStore) {
4404
- this.fComponentsStore = fComponentsStore;
4405
- }
4406
- handle(request) {
4407
- return this.normalizeRect(RectExtensions.fromElement(request.fNode.hostElement), request.fNode.position);
4408
- }
4409
- normalizeRect(scaledRect, position) {
4410
- const rect = RectExtensions.div(scaledRect, this.fComponentsStore.fCanvas.transform.scale);
4411
- return RectExtensions.initialize(position.x, position.y, rect.width, rect.height);
4412
- }
4413
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedNodeRectExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4414
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedNodeRectExecution });
4415
- };
4416
- GetNormalizedNodeRectExecution = __decorate([
4417
- FExecutionRegister(GetNormalizedNodeRectRequest)
4418
- ], GetNormalizedNodeRectExecution);
4419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedNodeRectExecution, decorators: [{
4420
- type: Injectable
4421
- }], ctorParameters: () => [{ type: FComponentsStore }] });
4422
-
4423
4358
  class GetNormalizedParentNodeRectRequest {
4424
4359
  fNode;
4425
4360
  constructor(fNode) {
@@ -4446,12 +4381,12 @@ let GetNormalizedParentNodeRectExecution = class GetNormalizedParentNodeRectExec
4446
4381
  return this.fComponentsStore.fNodes.find((x) => x.fId === fId);
4447
4382
  }
4448
4383
  getParentRect(node) {
4449
- const rect = this.getNormalizedNodeRect(node);
4384
+ const rect = this._getNodeRect(node);
4450
4385
  const padding = this.getNodePadding(node, rect);
4451
4386
  return RectExtensions.initialize(rect.x + padding[0], rect.y + padding[1], rect.width - padding[0] - padding[2], rect.height - padding[1] - padding[3]);
4452
4387
  }
4453
- getNormalizedNodeRect(node) {
4454
- return this.fMediator.send(new GetNormalizedNodeRectRequest(node));
4388
+ _getNodeRect(fNode) {
4389
+ return this.fMediator.send(new GetNormalizedElementRectRequest(fNode.hostElement));
4455
4390
  }
4456
4391
  getNodePadding(node, rect) {
4457
4392
  return this.fMediator.send(new GetNodePaddingRequest(node, rect));
@@ -4466,6 +4401,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
4466
4401
  type: Injectable
4467
4402
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: i2.FMediator }] });
4468
4403
 
4404
+ class IsArrayHasParentNodeRequest {
4405
+ fNode;
4406
+ fNodes;
4407
+ constructor(fNode, fNodes) {
4408
+ this.fNode = fNode;
4409
+ this.fNodes = fNodes;
4410
+ }
4411
+ }
4412
+
4469
4413
  class GetParentNodesRequest {
4470
4414
  fNode;
4471
4415
  constructor(fNode) {
@@ -4474,26 +4418,23 @@ class GetParentNodesRequest {
4474
4418
  }
4475
4419
 
4476
4420
  let GetParentNodesExecution = class GetParentNodesExecution {
4477
- fComponentsStore;
4478
- constructor(fComponentsStore) {
4479
- this.fComponentsStore = fComponentsStore;
4480
- }
4421
+ _fComponentsStore = inject(FComponentsStore);
4481
4422
  handle(request) {
4482
- return this.getParentNodes(request.fNode, new Set(), []);
4423
+ return this._getParentNodes(request.fNode, new Set(), []);
4483
4424
  }
4484
- getParentNodes(fNode, visited, result) {
4425
+ _getParentNodes(fNode, visited, result) {
4485
4426
  if (visited.has(fNode.fId)) {
4486
4427
  throw new Error('Circular reference detected in the node hierarchy. Node id: ' + fNode.fId);
4487
4428
  }
4488
4429
  visited.add(fNode.fId);
4489
- const parent = this.fComponentsStore.fNodes.find((x) => x.fId === fNode.fParentId);
4430
+ const parent = this._fComponentsStore.fNodes.find((x) => x.fId === fNode.fParentId);
4490
4431
  if (!parent) {
4491
4432
  return result;
4492
4433
  }
4493
4434
  result.push(parent);
4494
- return this.getParentNodes(parent, visited, result);
4435
+ return this._getParentNodes(parent, visited, result);
4495
4436
  }
4496
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetParentNodesExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
4437
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetParentNodesExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4497
4438
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetParentNodesExecution });
4498
4439
  };
4499
4440
  GetParentNodesExecution = __decorate([
@@ -4501,16 +4442,7 @@ GetParentNodesExecution = __decorate([
4501
4442
  ], GetParentNodesExecution);
4502
4443
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetParentNodesExecution, decorators: [{
4503
4444
  type: Injectable
4504
- }], ctorParameters: () => [{ type: FComponentsStore }] });
4505
-
4506
- class IsArrayHasParentNodeRequest {
4507
- fNode;
4508
- fNodes;
4509
- constructor(fNode, fNodes) {
4510
- this.fNode = fNode;
4511
- this.fNodes = fNodes;
4512
- }
4513
- }
4445
+ }] });
4514
4446
 
4515
4447
  let IsArrayHasParentNodeExecution = class IsArrayHasParentNodeExecution {
4516
4448
  fMediator;
@@ -4632,10 +4564,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
4632
4564
  }] });
4633
4565
 
4634
4566
  const DRAG_AND_DROP_COMMON_PROVIDERS = [
4635
- GetNodePaddingExecution,
4636
- GetNormalizedNodeRectExecution,
4637
4567
  GetNormalizedParentNodeRectExecution,
4638
- GetParentNodesExecution,
4639
4568
  IsArrayHasParentNodeExecution,
4640
4569
  IsConnectionUnderNodeExecution,
4641
4570
  IsConnectionUnderNodeValidator,
@@ -4916,14 +4845,11 @@ class GetNodeMoveRestrictionsRequest {
4916
4845
  }
4917
4846
 
4918
4847
  let GetNodeMoveRestrictionsExecution = class GetNodeMoveRestrictionsExecution {
4919
- fMediator;
4920
- constructor(fMediator) {
4921
- this.fMediator = fMediator;
4922
- }
4848
+ _fMediator = inject(FMediator);
4923
4849
  handle(request) {
4924
4850
  if (request.fNode.fParentId && !request.hasParentNodeInSelected) {
4925
4851
  const fParentNodeRect = this.getParentNodeRect(request.fNode);
4926
- const fCurrentNodeRect = this.getCurrentNodeRect(request.fNode);
4852
+ const fCurrentNodeRect = this._getNodeRect(request.fNode);
4927
4853
  return {
4928
4854
  min: PointExtensions.initialize(fParentNodeRect.x - fCurrentNodeRect.x, fParentNodeRect.y - fCurrentNodeRect.y),
4929
4855
  max: PointExtensions.initialize((fParentNodeRect.x + fParentNodeRect.width) - (fCurrentNodeRect.x + fCurrentNodeRect.width), (fParentNodeRect.y + fParentNodeRect.height) - (fCurrentNodeRect.y + fCurrentNodeRect.height))
@@ -4931,13 +4857,13 @@ let GetNodeMoveRestrictionsExecution = class GetNodeMoveRestrictionsExecution {
4931
4857
  }
4932
4858
  return { ...DEFAULT_RESTRICTIONS };
4933
4859
  }
4934
- getCurrentNodeRect(fNode) {
4935
- return this.fMediator.send(new GetNormalizedNodeRectRequest(fNode));
4860
+ _getNodeRect(fNode) {
4861
+ return this._fMediator.send(new GetNormalizedElementRectRequest(fNode.hostElement));
4936
4862
  }
4937
4863
  getParentNodeRect(fNode) {
4938
- return this.fMediator.send(new GetNormalizedParentNodeRectRequest(fNode));
4864
+ return this._fMediator.send(new GetNormalizedParentNodeRectRequest(fNode));
4939
4865
  }
4940
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodeMoveRestrictionsExecution, deps: [{ token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
4866
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodeMoveRestrictionsExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4941
4867
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodeMoveRestrictionsExecution });
4942
4868
  };
4943
4869
  GetNodeMoveRestrictionsExecution = __decorate([
@@ -4945,7 +4871,7 @@ GetNodeMoveRestrictionsExecution = __decorate([
4945
4871
  ], GetNodeMoveRestrictionsExecution);
4946
4872
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodeMoveRestrictionsExecution, decorators: [{
4947
4873
  type: Injectable
4948
- }], ctorParameters: () => [{ type: i2.FMediator }] });
4874
+ }] });
4949
4875
  const DEFAULT_RESTRICTIONS = {
4950
4876
  min: PointExtensions.initialize(-Infinity, -Infinity),
4951
4877
  max: PointExtensions.initialize(Infinity, Infinity)
@@ -4960,38 +4886,53 @@ class CreateMoveNodesDragModelFromSelectionRequest {
4960
4886
 
4961
4887
  class NodeDragHandler {
4962
4888
  fDraggableDataContext;
4889
+ fComponentsStore;
4963
4890
  fNode;
4964
4891
  minDistance;
4965
4892
  maxDistance;
4966
- onPointerDownPosition = PointExtensions.initialize();
4967
- constructor(fDraggableDataContext, fNode, minDistance, maxDistance) {
4893
+ _onPointerDownPosition = PointExtensions.initialize();
4894
+ constructor(fDraggableDataContext, fComponentsStore, fNode, minDistance, maxDistance) {
4968
4895
  this.fDraggableDataContext = fDraggableDataContext;
4896
+ this.fComponentsStore = fComponentsStore;
4969
4897
  this.fNode = fNode;
4970
4898
  this.minDistance = minDistance;
4971
4899
  this.maxDistance = maxDistance;
4972
- this.onPointerDownPosition = { ...fNode.position };
4900
+ this._onPointerDownPosition = { ...fNode.position };
4973
4901
  }
4974
4902
  onPointerMove(difference) {
4975
- const restrictedDifference = this.getDifference(difference, { min: this.minDistance, max: this.maxDistance });
4976
- this.redrawNode(this.getNewPosition(restrictedDifference));
4903
+ const restrictedDifference = this._getDifference(difference, { min: this.minDistance, max: this.maxDistance });
4904
+ this._redraw(this._getPosition(restrictedDifference));
4977
4905
  this.fDraggableDataContext.fLineAlignment?.handle(restrictedDifference);
4978
4906
  }
4979
- getNewPosition(difference) {
4980
- return Point.fromPoint(this.onPointerDownPosition).add(difference);
4907
+ _getPosition(difference) {
4908
+ return Point.fromPoint(this._onPointerDownPosition).add(difference);
4981
4909
  }
4982
- getDifference(difference, restrictions) {
4910
+ _getDifference(difference, restrictions) {
4983
4911
  return {
4984
4912
  x: Math.min(Math.max(difference.x, restrictions.min.x), restrictions.max.x),
4985
4913
  y: Math.min(Math.max(difference.y, restrictions.min.y), restrictions.max.y)
4986
4914
  };
4987
4915
  }
4988
- redrawNode(position) {
4916
+ _redraw(position) {
4989
4917
  this.fNode.updatePosition(position);
4990
4918
  this.fNode.redraw();
4991
4919
  }
4992
4920
  onPointerUp() {
4993
4921
  this.fNode.positionChange.emit(this.fNode.position);
4994
4922
  }
4923
+ getDifferenceWithCellSize(difference) {
4924
+ const restrictedDifference = this._getDifference(difference, { min: this.minDistance, max: this.maxDistance });
4925
+ const position = this._getPosition(restrictedDifference);
4926
+ return Point.fromPoint(this._applyCellSize(position)).sub(this._onPointerDownPosition);
4927
+ }
4928
+ _applyCellSize(position) {
4929
+ const hCellSize = this.fComponentsStore.fDraggable.hCellSize;
4930
+ const vCellSize = this.fComponentsStore.fDraggable.vCellSize;
4931
+ return {
4932
+ x: Math.round(position.x / hCellSize) * hCellSize,
4933
+ y: Math.round(position.y / vCellSize) * vCellSize
4934
+ };
4935
+ }
4995
4936
  }
4996
4937
 
4997
4938
  //TODO: Implement this class
@@ -5010,36 +4951,34 @@ class NodeResizeByChildDragHandler {
5010
4951
  }
5011
4952
 
5012
4953
  let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragModelFromSelectionExecution {
5013
- fComponentsStore;
5014
- fDraggableDataContext;
5015
- fMediator;
5016
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
5017
- this.fComponentsStore = fComponentsStore;
5018
- this.fDraggableDataContext = fDraggableDataContext;
5019
- this.fMediator = fMediator;
5020
- }
4954
+ _fMediator = inject(FMediator);
4955
+ _fComponentsStore = inject(FComponentsStore);
4956
+ _fDraggableDataContext = inject(FDraggableDataContext);
5021
4957
  handle(request) {
5022
- const itemsToDrag = this.getNodesWithRestrictions(this.getSelectedNodes(request.nodeWithDisabledSelection));
4958
+ const itemsToDrag = this._getNodesWithRestrictions(this._getSelectedNodes(request.nodeWithDisabledSelection));
5023
4959
  return this.getDragHandlersWithConnections(this.getDragHandlersFromNodes(itemsToDrag), this.getAllOutputIds(itemsToDrag), this.getAllInputIds(itemsToDrag));
5024
4960
  }
5025
- getSelectedNodes(nodeWithDisabledSelection) {
5026
- const result = this.fDraggableDataContext.selectedItems
5027
- .map((x) => this._findNode(x.hostElement))
5028
- .filter((x) => !!x);
4961
+ _getSelectedNodes(nodeWithDisabledSelection) {
4962
+ const result = this._getNodesFromSelection();
5029
4963
  if (nodeWithDisabledSelection) {
5030
4964
  result.push(nodeWithDisabledSelection);
5031
4965
  }
5032
4966
  return result;
5033
4967
  }
4968
+ _getNodesFromSelection() {
4969
+ return this._fDraggableDataContext.selectedItems
4970
+ .map((x) => this._findNode(x.hostElement))
4971
+ .filter((x) => !!x);
4972
+ }
5034
4973
  _findNode(hostElement) {
5035
- return this.fComponentsStore.fNodes.find(n => n.isContains(hostElement));
4974
+ return this._fComponentsStore.fNodes.find(n => n.isContains(hostElement));
5036
4975
  }
5037
- getNodesWithRestrictions(selectedNodes) {
4976
+ _getNodesWithRestrictions(nodesToDrag) {
5038
4977
  const result = [];
5039
- selectedNodes.forEach((x) => {
5040
- const hasParentNodeInSelected = this.fMediator.send(new IsArrayHasParentNodeRequest(x, selectedNodes));
5041
- const restrictions = this.fMediator.send(new GetNodeMoveRestrictionsRequest(x, hasParentNodeInSelected));
5042
- const parentNodes = this.fMediator.send(new GetParentNodesRequest(x));
4978
+ nodesToDrag.forEach((x) => {
4979
+ const hasParentNodeInSelected = this._fMediator.send(new IsArrayHasParentNodeRequest(x, nodesToDrag));
4980
+ const restrictions = this._fMediator.send(new GetNodeMoveRestrictionsRequest(x, hasParentNodeInSelected));
4981
+ const parentNodes = this._fMediator.send(new GetParentNodesRequest(x));
5043
4982
  result.push({ node: x, parentNodes, ...restrictions }, ...this.getChildrenItemsToDrag(x, restrictions));
5044
4983
  });
5045
4984
  return result;
@@ -5048,36 +4987,36 @@ let CreateMoveNodesDragModelFromSelectionExecution = class CreateMoveNodesDragMo
5048
4987
  return this.getChildrenNodes(node.fId).map((x) => ({ node: x, ...restrictions }));
5049
4988
  }
5050
4989
  getChildrenNodes(fId) {
5051
- return this.fMediator.send(new GetDeepChildrenNodesAndGroupsRequest(fId));
4990
+ return this._fMediator.send(new GetDeepChildrenNodesAndGroupsRequest(fId));
5052
4991
  }
5053
4992
  getAllOutputIds(items) {
5054
4993
  return flatMap(items, (item) => this.getOutputsForNode(item.node).map((x) => x.fId));
5055
4994
  }
5056
4995
  getOutputsForNode(node) {
5057
- return this.fComponentsStore.fOutputs.filter((x) => node.isContains(x.hostElement));
4996
+ return this._fComponentsStore.fOutputs.filter((x) => node.isContains(x.hostElement));
5058
4997
  }
5059
4998
  getAllInputIds(items) {
5060
4999
  return flatMap(items, (item) => this.getInputsForNode(item.node).map((x) => x.fId));
5061
5000
  }
5062
5001
  getInputsForNode(node) {
5063
- return this.fComponentsStore.fInputs.filter((x) => node.isContains(x.hostElement));
5002
+ return this._fComponentsStore.fInputs.filter((x) => node.isContains(x.hostElement));
5064
5003
  }
5065
5004
  getDragHandlersFromNodes(items) {
5066
5005
  let result = [];
5067
5006
  items.forEach((node) => {
5068
- result.push(new NodeDragHandler(this.fDraggableDataContext, node.node, node.min, node.max), ...(node.parentNodes || []).map(() => new NodeResizeByChildDragHandler(this.fDraggableDataContext)));
5007
+ result.push(new NodeDragHandler(this._fDraggableDataContext, this._fComponentsStore, node.node, node.min, node.max), ...(node.parentNodes || []).map(() => new NodeResizeByChildDragHandler(this._fDraggableDataContext)));
5069
5008
  });
5070
5009
  return result;
5071
5010
  }
5072
5011
  getDragHandlersWithConnections(handlers, outputIds, inputIds) {
5073
5012
  let result = handlers;
5074
5013
  handlers.filter((x) => x instanceof NodeDragHandler).forEach((dragHandler) => {
5075
- this.fMediator.send(new PutOutputConnectionHandlersToArrayRequest(dragHandler, inputIds, result));
5076
- this.fMediator.send(new PutInputConnectionHandlersToArrayRequest(dragHandler, outputIds, result));
5014
+ this._fMediator.send(new PutOutputConnectionHandlersToArrayRequest(dragHandler, inputIds, result));
5015
+ this._fMediator.send(new PutInputConnectionHandlersToArrayRequest(dragHandler, outputIds, result));
5077
5016
  });
5078
5017
  return result;
5079
5018
  }
5080
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5019
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5081
5020
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution });
5082
5021
  };
5083
5022
  CreateMoveNodesDragModelFromSelectionExecution = __decorate([
@@ -5085,7 +5024,7 @@ CreateMoveNodesDragModelFromSelectionExecution = __decorate([
5085
5024
  ], CreateMoveNodesDragModelFromSelectionExecution);
5086
5025
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateMoveNodesDragModelFromSelectionExecution, decorators: [{
5087
5026
  type: Injectable
5088
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
5027
+ }] });
5089
5028
 
5090
5029
  const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS = [
5091
5030
  GetNodeMoveRestrictionsExecution,
@@ -5316,56 +5255,55 @@ class NodeMovePreparationRequest {
5316
5255
  }
5317
5256
 
5318
5257
  let NodeMovePreparationExecution = class NodeMovePreparationExecution {
5319
- fComponentsStore;
5320
- fDraggableDataContext;
5321
- fMediator;
5322
- get transform() {
5323
- return this.fComponentsStore.fCanvas.transform;
5324
- }
5325
- get flowHost() {
5326
- return this.fComponentsStore.fFlow.hostElement;
5258
+ _fMediator = inject(FMediator);
5259
+ _fComponentsStore = inject(FComponentsStore);
5260
+ _fDraggableDataContext = inject(FDraggableDataContext);
5261
+ get _transform() {
5262
+ return this._fComponentsStore.fCanvas.transform;
5327
5263
  }
5328
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
5329
- this.fComponentsStore = fComponentsStore;
5330
- this.fDraggableDataContext = fDraggableDataContext;
5331
- this.fMediator = fMediator;
5264
+ get _fHost() {
5265
+ return this._fComponentsStore.fFlow.hostElement;
5332
5266
  }
5333
5267
  handle(request) {
5334
- const node = this.getNode(request.event.targetElement);
5335
- if (!node) {
5268
+ const itemsToDrag = this._calculateDraggableItems(this._getNode(request.event.targetElement));
5269
+ this._initializeLineAlignment(itemsToDrag);
5270
+ this._fDraggableDataContext.onPointerDownScale = this._transform.scale;
5271
+ this._fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
5272
+ .elementTransform(this._fHost).div(this._transform.scale);
5273
+ this._fDraggableDataContext.draggableItems = itemsToDrag;
5274
+ }
5275
+ _getNode(targetElement) {
5276
+ const result = this._fComponentsStore.fNodes.find(n => n.isContains(targetElement));
5277
+ if (!result) {
5336
5278
  throw new Error('Node not found');
5337
5279
  }
5338
- let itemsToDrag = [];
5339
- if (!node.fSelectionDisabled) {
5340
- this.selectAndUpdateNodeLayer(node);
5341
- itemsToDrag = this.createDragModelFromSelection();
5280
+ return result;
5281
+ }
5282
+ //We drag nodes from selection model
5283
+ _calculateDraggableItems(fNode) {
5284
+ let result = [];
5285
+ if (!fNode.fSelectionDisabled) {
5286
+ // Need to select node before drag
5287
+ this._fMediator.send(new SelectAndUpdateNodeLayerRequest(fNode));
5288
+ result = this._dragModelFromSelection();
5342
5289
  }
5343
5290
  else {
5344
- itemsToDrag = this.createDragModelFromSelection(node);
5291
+ // User can drag node that can't be selected
5292
+ result = this._dragModelFromSelection(fNode);
5345
5293
  }
5346
- this.initializeLineAlignment(this.filterNodesFromDraggableItems(itemsToDrag));
5347
- this.fDraggableDataContext.onPointerDownScale = this.transform.scale;
5348
- this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
5349
- .elementTransform(this.flowHost).div(this.transform.scale);
5350
- this.fDraggableDataContext.draggableItems = itemsToDrag;
5351
- }
5352
- selectAndUpdateNodeLayer(node) {
5353
- this.fMediator.send(new SelectAndUpdateNodeLayerRequest(node));
5354
- }
5355
- getNode(targetElement) {
5356
- return this.fComponentsStore.fNodes.find(n => n.isContains(targetElement));
5294
+ return result;
5357
5295
  }
5358
- createDragModelFromSelection(nodeWithDisabledSelection) {
5359
- return this.fMediator.send(new CreateMoveNodesDragModelFromSelectionRequest(nodeWithDisabledSelection));
5296
+ _dragModelFromSelection(nodeWithDisabledSelection) {
5297
+ return this._fMediator.send(new CreateMoveNodesDragModelFromSelectionRequest(nodeWithDisabledSelection));
5360
5298
  }
5361
- initializeLineAlignment(nodesToDrag) {
5362
- this.fDraggableDataContext.fLineAlignment?.initialize(this.fComponentsStore.fNodes, nodesToDrag);
5299
+ _initializeLineAlignment(itemsToDrag) {
5300
+ this._fDraggableDataContext.fLineAlignment?.initialize(this._fComponentsStore.fNodes, this._filterNodesFromDraggableItems(itemsToDrag));
5363
5301
  }
5364
- filterNodesFromDraggableItems(items) {
5302
+ _filterNodesFromDraggableItems(items) {
5365
5303
  return items.filter((x) => x instanceof NodeDragHandler)
5366
5304
  .map(x => x.fNode);
5367
5305
  }
5368
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5306
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5369
5307
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationExecution });
5370
5308
  };
5371
5309
  NodeMovePreparationExecution = __decorate([
@@ -5373,33 +5311,29 @@ NodeMovePreparationExecution = __decorate([
5373
5311
  ], NodeMovePreparationExecution);
5374
5312
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationExecution, decorators: [{
5375
5313
  type: Injectable
5376
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
5314
+ }] });
5377
5315
 
5378
5316
  let NodeMovePreparationValidator = class NodeMovePreparationValidator {
5379
- fComponentsStore;
5380
- fDraggableDataContext;
5381
- constructor(fComponentsStore, fDraggableDataContext) {
5382
- this.fComponentsStore = fComponentsStore;
5383
- this.fDraggableDataContext = fDraggableDataContext;
5384
- }
5317
+ _fComponentsStore = inject(FComponentsStore);
5318
+ _fDraggableDataContext = inject(FDraggableDataContext);
5385
5319
  handle(request) {
5386
- return this.isDragHandlesEmpty()
5387
- && this.isDragHandleElement(request.event.targetElement)
5388
- && this.isNodeCanBeDragged(this.getNode(request.event.targetElement));
5320
+ return this._isDragHandlesEmpty()
5321
+ && this._isDragHandleElement(request.event.targetElement)
5322
+ && this._isNodeCanBeDragged(this._getNode(request.event.targetElement));
5389
5323
  }
5390
- isDragHandlesEmpty() {
5391
- return !this.fDraggableDataContext.draggableItems.length;
5324
+ _isDragHandlesEmpty() {
5325
+ return !this._fDraggableDataContext.draggableItems.length;
5392
5326
  }
5393
- getNode(targetElement) {
5394
- return this.fComponentsStore.fNodes.find(n => n.isContains(targetElement));
5327
+ _isDragHandleElement(element) {
5328
+ return isClosestElementHasClass(element, '.f-drag-handle');
5395
5329
  }
5396
- isNodeCanBeDragged(node) {
5397
- return !!node && !node.fDraggingDisabled;
5330
+ _isNodeCanBeDragged(fNode) {
5331
+ return !!fNode && !fNode.fDraggingDisabled;
5398
5332
  }
5399
- isDragHandleElement(targetElement) {
5400
- return isClosestElementHasClass(targetElement, '.f-drag-handle');
5333
+ _getNode(element) {
5334
+ return this._fComponentsStore.fNodes.find(x => x.isContains(element));
5401
5335
  }
5402
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationValidator, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
5336
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationValidator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5403
5337
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationValidator });
5404
5338
  };
5405
5339
  NodeMovePreparationValidator = __decorate([
@@ -5407,7 +5341,7 @@ NodeMovePreparationValidator = __decorate([
5407
5341
  ], NodeMovePreparationValidator);
5408
5342
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMovePreparationValidator, decorators: [{
5409
5343
  type: Injectable
5410
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }] });
5344
+ }] });
5411
5345
 
5412
5346
  const NODE_MOVE_PREPARATION_PROVIDERS = [
5413
5347
  NodeMovePreparationExecution,
@@ -5422,44 +5356,50 @@ class NodeMoveFinalizeRequest {
5422
5356
  }
5423
5357
 
5424
5358
  let NodeMoveFinalizeExecution = class NodeMoveFinalizeExecution {
5425
- fComponentsStore;
5426
- fDraggableDataContext;
5427
- fMediator;
5428
- get flowHost() {
5429
- return this.fComponentsStore.fFlow.hostElement;
5430
- }
5431
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
5432
- this.fComponentsStore = fComponentsStore;
5433
- this.fDraggableDataContext = fDraggableDataContext;
5434
- this.fMediator = fMediator;
5359
+ _fMediator = inject(FMediator);
5360
+ _fComponentsStore = inject(FComponentsStore);
5361
+ _fDraggableDataContext = inject(FDraggableDataContext);
5362
+ get _fHost() {
5363
+ return this._fComponentsStore.fFlow.hostElement;
5435
5364
  }
5436
5365
  handle(request) {
5437
- const difference = this.getDifferenceWithLineAlignment(this.getDifferenceBetweenPreparationAndFinalize(request.event.getPosition()));
5438
- this.getItems().forEach((x) => {
5366
+ const difference = this._getDifferenceWithLineAlignment(this._getDifferenceBetweenPreparationAndFinalize(request.event.getPosition()));
5367
+ const firstNodeOrGroup = this._fDraggableDataContext.draggableItems
5368
+ .find((x) => x instanceof NodeDragHandler);
5369
+ const differenceWithCellSize = firstNodeOrGroup.getDifferenceWithCellSize(difference);
5370
+ this._finalizeMove(differenceWithCellSize);
5371
+ this._fMediator.send(new IsConnectionUnderNodeRequest());
5372
+ this._fDraggableDataContext.fLineAlignment?.complete();
5373
+ }
5374
+ _finalizeMove(difference) {
5375
+ this._getItems().forEach((x) => {
5439
5376
  x.onPointerMove({ ...difference });
5440
5377
  x.onPointerUp?.();
5441
5378
  });
5442
- this.fMediator.send(new IsConnectionUnderNodeRequest());
5443
- this.fDraggableDataContext.fLineAlignment?.complete();
5444
5379
  }
5445
- getItems() {
5446
- return this.fDraggableDataContext.draggableItems
5380
+ _getItems() {
5381
+ return this._fDraggableDataContext.draggableItems
5447
5382
  .filter((x) => !(x instanceof NodeDragToParentDragHandler));
5448
5383
  }
5449
- getDifferenceBetweenPreparationAndFinalize(position) {
5450
- return Point.fromPoint(position).elementTransform(this.flowHost)
5451
- .div(this.fDraggableDataContext.onPointerDownScale)
5452
- .sub(this.fDraggableDataContext.onPointerDownPosition);
5384
+ _getDifferenceBetweenPreparationAndFinalize(position) {
5385
+ return Point.fromPoint(position).elementTransform(this._fHost)
5386
+ .div(this._fDraggableDataContext.onPointerDownScale)
5387
+ .sub(this._fDraggableDataContext.onPointerDownPosition);
5388
+ }
5389
+ _getDifferenceWithLineAlignment(difference) {
5390
+ return this._applyLineAlignmentDifference(difference, this._getLineAlignmentDifference(difference));
5453
5391
  }
5454
- getDifferenceWithLineAlignment(difference) {
5455
- const intersection = this.fDraggableDataContext.fLineAlignment?.findNearestCoordinate(difference);
5392
+ _getLineAlignmentDifference(difference) {
5393
+ return this._fDraggableDataContext.fLineAlignment?.findNearestCoordinate(difference);
5394
+ }
5395
+ _applyLineAlignmentDifference(difference, intersection) {
5456
5396
  if (intersection) {
5457
5397
  difference.x = intersection.xResult.value ? (difference.x - intersection.xResult.distance) : difference.x;
5458
5398
  difference.y = intersection.yResult.value ? (difference.y - intersection.yResult.distance) : difference.y;
5459
5399
  }
5460
5400
  return difference;
5461
5401
  }
5462
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
5402
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5463
5403
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution });
5464
5404
  };
5465
5405
  NodeMoveFinalizeExecution = __decorate([
@@ -5467,7 +5407,7 @@ NodeMoveFinalizeExecution = __decorate([
5467
5407
  ], NodeMoveFinalizeExecution);
5468
5408
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: NodeMoveFinalizeExecution, decorators: [{
5469
5409
  type: Injectable
5470
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
5410
+ }] });
5471
5411
 
5472
5412
  let NodeMoveFinalizeValidator = class NodeMoveFinalizeValidator {
5473
5413
  fDraggableDataContext;
@@ -5700,8 +5640,8 @@ let GetNormalizedChildrenNodesRectExecution = class GetNormalizedChildrenNodesRe
5700
5640
  getChildrenNodes(fId) {
5701
5641
  return this.fMediator.send(new GetDeepChildrenNodesAndGroupsRequest(fId));
5702
5642
  }
5703
- normalizeRect(node) {
5704
- return this.fMediator.send(new GetNormalizedNodeRectRequest(node));
5643
+ normalizeRect(fNode) {
5644
+ return this.fMediator.send(new GetNormalizedElementRectRequest(fNode.hostElement));
5705
5645
  }
5706
5646
  concatRectWithParentPadding(rect, padding) {
5707
5647
  return RectExtensions.initialize(rect.x - padding[0], rect.y - padding[1], rect.width + padding[0] + padding[2], rect.height + +padding[1] + padding[3]);
@@ -5794,7 +5734,7 @@ class NodeResizeDragHandler {
5794
5734
  this.fResizeHandleType = fResizeHandleType;
5795
5735
  }
5796
5736
  prepareDragSequence() {
5797
- this.originalRect = this.fMediator.send(new GetNormalizedNodeRectRequest(this.fNode));
5737
+ this.originalRect = this.fMediator.send(new GetNormalizedElementRectRequest(this.fNode.hostElement));
5798
5738
  this.restrictions = this.fMediator.send(new GetNodeResizeRestrictionsRequest(this.fNode, this.originalRect));
5799
5739
  if (this.restrictions.childRect) {
5800
5740
  this.childRestrictions = (rect, restrictionsRect) => {
@@ -6432,6 +6372,8 @@ class FDraggableDirective extends FDraggableBase {
6432
6372
  fReassignConnection = new EventEmitter();
6433
6373
  fCreateConnection = new EventEmitter();
6434
6374
  fDropToGroup = new EventEmitter();
6375
+ vCellSize = 1;
6376
+ hCellSize = 1;
6435
6377
  plugins;
6436
6378
  constructor(ngZone, _fBrowser) {
6437
6379
  super(ngZone);
@@ -6490,7 +6432,7 @@ class FDraggableDirective extends FDraggableBase {
6490
6432
  super.unsubscribe();
6491
6433
  }
6492
6434
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDraggableDirective, deps: [{ token: NgZone, optional: true }, { token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Directive });
6493
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.4", type: FDraggableDirective, selector: "f-flow[fDraggable]", inputs: { disabled: ["fDraggableDisabled", "disabled"] }, outputs: { fSelectionChange: "fSelectionChange", fNodeIntersectedWithConnections: "fNodeIntersectedWithConnections", fCreateNode: "fCreateNode", fReassignConnection: "fReassignConnection", fCreateConnection: "fCreateConnection", fDropToGroup: "fDropToGroup" }, queries: [{ propertyName: "plugins", predicate: F_DRAG_AND_DROP_PLUGIN, descendants: true }], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 });
6435
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.4", type: FDraggableDirective, selector: "f-flow[fDraggable]", inputs: { disabled: ["fDraggableDisabled", "disabled"], vCellSize: "vCellSize", hCellSize: "hCellSize" }, outputs: { fSelectionChange: "fSelectionChange", fNodeIntersectedWithConnections: "fNodeIntersectedWithConnections", fCreateNode: "fCreateNode", fReassignConnection: "fReassignConnection", fCreateConnection: "fCreateConnection", fDropToGroup: "fDropToGroup" }, queries: [{ propertyName: "plugins", predicate: F_DRAG_AND_DROP_PLUGIN, descendants: true }], exportAs: ["fDraggable"], usesInheritance: true, ngImport: i0 });
6494
6436
  }
6495
6437
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FDraggableDirective, decorators: [{
6496
6438
  type: Directive,
@@ -6518,6 +6460,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
6518
6460
  type: Output
6519
6461
  }], fDropToGroup: [{
6520
6462
  type: Output
6463
+ }], vCellSize: [{
6464
+ type: Input
6465
+ }], hCellSize: [{
6466
+ type: Input
6521
6467
  }], plugins: [{
6522
6468
  type: ContentChildren,
6523
6469
  args: [F_DRAG_AND_DROP_PLUGIN, { descendants: true }]
@@ -8079,6 +8025,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
8079
8025
  type: Injectable
8080
8026
  }] });
8081
8027
 
8028
+ class GetNodePaddingRequest {
8029
+ fNode;
8030
+ rect;
8031
+ constructor(fNode, rect) {
8032
+ this.fNode = fNode;
8033
+ this.rect = rect;
8034
+ }
8035
+ }
8036
+
8037
+ let GetNodePaddingExecution = class GetNodePaddingExecution {
8038
+ fBrowser;
8039
+ constructor(fBrowser) {
8040
+ this.fBrowser = fBrowser;
8041
+ }
8042
+ handle(request) {
8043
+ return request.fNode.fIncludePadding ? this.getPaddingData(request.fNode, request.rect) : [0, 0, 0, 0];
8044
+ }
8045
+ getPaddingData(node, rect) {
8046
+ const style = this.fBrowser.window.getComputedStyle(node.hostElement);
8047
+ return [
8048
+ this.fBrowser.toPixels(style.paddingLeft, rect.width, rect.height, style.fontSize),
8049
+ this.fBrowser.toPixels(style.paddingTop, rect.width, rect.height, style.fontSize),
8050
+ this.fBrowser.toPixels(style.paddingRight, rect.width, rect.height, style.fontSize),
8051
+ this.fBrowser.toPixels(style.paddingBottom, rect.width, rect.height, style.fontSize)
8052
+ ];
8053
+ }
8054
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution, deps: [{ token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
8055
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution });
8056
+ };
8057
+ GetNodePaddingExecution = __decorate([
8058
+ FExecutionRegister(GetNodePaddingRequest)
8059
+ ], GetNodePaddingExecution);
8060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNodePaddingExecution, decorators: [{
8061
+ type: Injectable
8062
+ }], ctorParameters: () => [{ type: i1.BrowserService }] });
8063
+
8082
8064
  class GetNodesRequest {
8083
8065
  }
8084
8066
 
@@ -8156,7 +8138,9 @@ const F_NODE_FEATURES = [
8156
8138
  AddNodeToStoreExecution,
8157
8139
  CalculateNodesBoundingBoxExecution,
8158
8140
  CalculateNodesBoundingBoxNormalizedPositionExecution,
8141
+ GetNodePaddingExecution,
8159
8142
  GetNodesExecution,
8143
+ GetParentNodesExecution,
8160
8144
  UpdateNodeWhenStateOrSizeChangedExecution,
8161
8145
  RemoveNodeFromStoreExecution
8162
8146
  ];
@@ -9429,5 +9413,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
9429
9413
  * Generated bundle index. Do not edit.
9430
9414
  */
9431
9415
 
9432
- export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectionLineByBehaviorExecution, CalculateConnectionLineByBehaviorRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxNormalizedPositionExecution, CalculateNodesBoundingBoxNormalizedPositionRequest, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputUsingSnapThresholdExecution, FindClosestInputUsingSnapThresholdRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanBeSelectedItemsRequest, GetCanvasExecution, GetCanvasRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetCurrentSelectionExecution, GetCurrentSelectionRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRoundedRectExecution, GetElementRoundedRectRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedElementRectExecution, GetNormalizedElementRectRequest, GetNormalizedNodeRectExecution, GetNormalizedNodeRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetNormalizedPointExecution, GetNormalizedPointRequest, GetParentNodesExecution, GetParentNodesRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsConnectionUnderNodeValidator, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentFinalizeValidator, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, fixedCenterBehavior, fixedOutboundBehavior, floatingBehavior, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9416
+ export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectionLineByBehaviorExecution, CalculateConnectionLineByBehaviorRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxNormalizedPositionExecution, CalculateNodesBoundingBoxNormalizedPositionRequest, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputUsingSnapThresholdExecution, FindClosestInputUsingSnapThresholdRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanBeSelectedItemsRequest, GetCanvasExecution, GetCanvasRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetCurrentSelectionExecution, GetCurrentSelectionRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRoundedRectExecution, GetElementRoundedRectRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedElementRectExecution, GetNormalizedElementRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetNormalizedPointExecution, GetNormalizedPointRequest, GetParentNodesExecution, GetParentNodesRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsConnectionUnderNodeValidator, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentFinalizeValidator, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, fixedCenterBehavior, fixedOutboundBehavior, floatingBehavior, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9433
9417
  //# sourceMappingURL=foblex-flow.mjs.map