@foblex/flow 1.1.0 → 1.1.2

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 (124) hide show
  1. package/components/f-connection/{f-connection-base.d.ts → common/f-connection-base.d.ts} +4 -6
  2. package/components/f-connection/common/f-connection-common.module.d.ts +13 -0
  3. package/components/f-connection/{f-connection-text → common/f-connection-text}/f-connection-text-path.directive.d.ts +1 -1
  4. package/components/f-connection/{f-connection-text → common/f-connection-text}/f-connection-text.component.d.ts +1 -1
  5. package/components/f-connection/{f-gradient → common/f-gradient}/f-connection-gradient.component.d.ts +1 -1
  6. package/components/f-connection/{f-path → common/f-path}/f-connection-path.component.d.ts +2 -2
  7. package/components/f-connection/{f-selection → common/f-selection}/f-connection-selection.component.d.ts +1 -1
  8. package/components/f-connection/{i-input-output-model.d.ts → common/i-input-output-model.d.ts} +1 -1
  9. package/components/f-connection/common/index.d.ts +10 -0
  10. package/components/f-connection/common/public-api.d.ts +6 -0
  11. package/components/f-connection/{f-connection.component.d.ts → f-connection/f-connection.component.d.ts} +2 -7
  12. package/components/f-connection/f-connection/f-connection.module.d.ts +9 -0
  13. package/components/f-connection/f-connection/index.d.ts +2 -0
  14. package/components/f-connection/f-temp-connection/f-temp-connection.component.d.ts +4 -4
  15. package/components/f-connection/f-temp-connection/f-temp-connection.module.d.ts +9 -0
  16. package/components/f-connection/f-temp-connection/index.d.ts +1 -0
  17. package/components/f-connection/f-temp-connection/temp-connection-input-output-model.d.ts +1 -1
  18. package/components/f-connection/index.d.ts +2 -11
  19. package/components/f-connection/public-api.d.ts +3 -3
  20. package/components/index.d.ts +0 -1
  21. package/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.d.ts +1 -1
  22. package/directives/f-connect-if-intersect/f-connect-if-intersect-base.d.ts +11 -0
  23. package/directives/f-connect-if-intersect/f-connect-if-intersect.directive.d.ts +7 -7
  24. package/directives/f-connect-if-intersect/index.d.ts +1 -0
  25. package/directives/f-connect-if-intersect/public-api.d.ts +1 -0
  26. package/directives/f-containers/f-connections-container/f-connections-container-base.d.ts +1 -1
  27. package/directives/f-containers/f-connections-container/f-connections-container.component.d.ts +1 -1
  28. package/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.d.ts +1 -1
  29. package/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.d.ts +1 -1
  30. package/directives/f-draggable/f-draggable-base.d.ts +4 -3
  31. package/directives/f-draggable/f-draggable.directive.d.ts +5 -4
  32. package/directives/f-draggable/f-draggable.module.d.ts +2 -4
  33. package/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.d.ts +1 -1
  34. package/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.d.ts +1 -1
  35. package/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.d.ts +1 -1
  36. package/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.d.ts +2 -2
  37. package/directives/f-draggable/public-api.d.ts +1 -0
  38. package/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.d.ts +2 -1
  39. package/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.d.ts +2 -1
  40. package/directives/f-line-alignment/f-line-alignment.directive.d.ts +1 -1
  41. package/directives/f-selection/f-selection.directive.d.ts +1 -1
  42. package/esm2022/components/f-connection/common/f-connection-base.mjs +32 -0
  43. package/esm2022/components/f-connection/common/f-connection-common.module.mjs +44 -0
  44. package/esm2022/components/f-connection/common/f-connection-identifiers.mjs +21 -0
  45. package/esm2022/components/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +38 -0
  46. package/esm2022/components/f-connection/common/f-connection-text/f-connection-text.component.mjs +55 -0
  47. package/esm2022/components/f-connection/common/f-connection-text/index.mjs +3 -0
  48. package/esm2022/components/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +30 -0
  49. package/esm2022/components/f-connection/common/f-drag-handle/index.mjs +2 -0
  50. package/esm2022/components/f-connection/common/f-gradient/f-connection-gradient.component.mjs +59 -0
  51. package/esm2022/components/f-connection/common/f-gradient/index.mjs +2 -0
  52. package/esm2022/components/f-connection/common/f-path/f-connection-path.component.mjs +58 -0
  53. package/esm2022/components/f-connection/common/f-path/index.mjs +2 -0
  54. package/esm2022/components/f-connection/common/f-selection/f-connection-selection.component.mjs +34 -0
  55. package/esm2022/components/f-connection/common/f-selection/index.mjs +2 -0
  56. package/esm2022/components/f-connection/common/get-connection-intersect.mjs +10 -0
  57. package/esm2022/components/f-connection/common/i-input-output-model.mjs +2 -0
  58. package/esm2022/components/f-connection/common/index.mjs +11 -0
  59. package/esm2022/components/f-connection/common/public-api.mjs +7 -0
  60. package/esm2022/components/f-connection/f-connection/f-connection.component.mjs +86 -0
  61. package/esm2022/components/f-connection/f-connection/f-connection.module.mjs +28 -0
  62. package/esm2022/components/f-connection/f-connection/index.mjs +3 -0
  63. package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +8 -8
  64. package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.module.mjs +28 -0
  65. package/esm2022/components/f-connection/f-temp-connection/index.mjs +2 -1
  66. package/esm2022/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +1 -1
  67. package/esm2022/components/f-connection/index.mjs +3 -12
  68. package/esm2022/components/f-connection/public-api.mjs +4 -4
  69. package/esm2022/components/index.mjs +1 -2
  70. package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +1 -1
  71. package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect-base.mjs +10 -0
  72. package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +19 -9
  73. package/esm2022/directives/f-connect-if-intersect/index.mjs +2 -1
  74. package/esm2022/directives/f-connect-if-intersect/public-api.mjs +2 -1
  75. package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs +1 -1
  76. package/esm2022/directives/f-containers/f-connections-container/f-connections-container.component.mjs +2 -2
  77. package/esm2022/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +2 -2
  78. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +2 -2
  79. package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +2 -2
  80. package/esm2022/directives/f-draggable/f-draggable-base.mjs +1 -1
  81. package/esm2022/directives/f-draggable/f-draggable.directive.mjs +8 -7
  82. package/esm2022/directives/f-draggable/f-draggable.module.mjs +8 -20
  83. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +2 -2
  84. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +2 -2
  85. package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +2 -2
  86. package/esm2022/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +1 -1
  87. package/esm2022/directives/f-draggable/public-api.mjs +2 -1
  88. package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +1 -1
  89. package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +5 -2
  90. package/esm2022/directives/f-line-alignment/f-line-alignment.directive.mjs +3 -2
  91. package/esm2022/directives/f-selection/f-selection.directive.mjs +3 -2
  92. package/esm2022/f-flow.module.mjs +8 -8
  93. package/esm2022/tokens.mjs +4 -0
  94. package/f-flow.module.d.ts +3 -2
  95. package/fesm2022/foblex-flow.mjs +201 -137
  96. package/fesm2022/foblex-flow.mjs.map +1 -1
  97. package/package.json +1 -1
  98. package/tokens.d.ts +3 -0
  99. package/components/f-connection/f-connection.module.d.ts +0 -15
  100. package/esm2022/components/f-connection/f-connection-base.mjs +0 -33
  101. package/esm2022/components/f-connection/f-connection-identifiers.mjs +0 -21
  102. package/esm2022/components/f-connection/f-connection-text/f-connection-text-path.directive.mjs +0 -38
  103. package/esm2022/components/f-connection/f-connection-text/f-connection-text.component.mjs +0 -55
  104. package/esm2022/components/f-connection/f-connection-text/index.mjs +0 -3
  105. package/esm2022/components/f-connection/f-connection.component.mjs +0 -91
  106. package/esm2022/components/f-connection/f-connection.module.mjs +0 -47
  107. package/esm2022/components/f-connection/f-drag-handle/f-connection-drag-handle.component.mjs +0 -30
  108. package/esm2022/components/f-connection/f-drag-handle/index.mjs +0 -2
  109. package/esm2022/components/f-connection/f-gradient/f-connection-gradient.component.mjs +0 -59
  110. package/esm2022/components/f-connection/f-gradient/index.mjs +0 -2
  111. package/esm2022/components/f-connection/f-path/f-connection-path.component.mjs +0 -58
  112. package/esm2022/components/f-connection/f-path/index.mjs +0 -2
  113. package/esm2022/components/f-connection/f-selection/f-connection-selection.component.mjs +0 -34
  114. package/esm2022/components/f-connection/f-selection/index.mjs +0 -2
  115. package/esm2022/components/f-connection/get-connection-intersect.mjs +0 -10
  116. package/esm2022/components/f-connection/i-input-output-model.mjs +0 -2
  117. /package/components/f-connection/{f-connection-identifiers.d.ts → common/f-connection-identifiers.d.ts} +0 -0
  118. /package/components/f-connection/{f-connection-text → common/f-connection-text}/index.d.ts +0 -0
  119. /package/components/f-connection/{f-drag-handle → common/f-drag-handle}/f-connection-drag-handle.component.d.ts +0 -0
  120. /package/components/f-connection/{f-drag-handle → common/f-drag-handle}/index.d.ts +0 -0
  121. /package/components/f-connection/{f-gradient → common/f-gradient}/index.d.ts +0 -0
  122. /package/components/f-connection/{f-path → common/f-path}/index.d.ts +0 -0
  123. /package/components/f-connection/{f-selection → common/f-selection}/index.d.ts +0 -0
  124. /package/components/f-connection/{get-connection-intersect.d.ts → common/get-connection-intersect.d.ts} +0 -0
@@ -1,13 +1,11 @@
1
- import { InjectionToken } from '@angular/core';
2
1
  import { IHasHostElement, IVector } from '@foblex/core';
3
- import { FNodeOutputBase } from '../f-connectors';
2
+ import { FNodeOutputBase } from '../../f-connectors';
4
3
  import { IInputOutputModel } from './i-input-output-model';
5
- import { ISelectable } from '../../i-selectable';
6
- import { FConnectionPathComponent } from './f-path/f-connection-path.component';
7
- import { IHasStateChanges } from '../../i-has-state-changes';
4
+ import { ISelectable } from '../../../i-selectable';
5
+ import { FConnectionPathComponent } from './f-path';
6
+ import { IHasStateChanges } from '../../../i-has-state-changes';
8
7
  import { Subject } from 'rxjs';
9
8
  import * as i0 from "@angular/core";
10
- export declare const F_CONNECTION_COMPONENT: InjectionToken<FConnectionBase<FNodeOutputBase>>;
11
9
  export declare abstract class FConnectionBase<TOutput = FNodeOutputBase> implements IHasHostElement, ISelectable, IHasStateChanges {
12
10
  abstract id: any;
13
11
  abstract hostElement: SVGGElement;
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./f-drag-handle/f-connection-drag-handle.component";
3
+ import * as i2 from "./f-gradient/f-connection-gradient.component";
4
+ import * as i3 from "./f-path/f-connection-path.component";
5
+ import * as i4 from "./f-connection-text/f-connection-text.component";
6
+ import * as i5 from "./f-connection-text/f-connection-text-path.directive";
7
+ import * as i6 from "./f-selection/f-connection-selection.component";
8
+ import * as i7 from "@angular/common";
9
+ export declare class FConnectionCommonModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionCommonModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FConnectionCommonModule, [typeof i1.FConnectionDragHandleComponent, typeof i2.FConnectionGradientComponent, typeof i3.FConnectionPathComponent, typeof i4.FConnectionTextComponent, typeof i5.FConnectionTextPathDirective, typeof i6.FConnectionSelectionComponent], [typeof i7.CommonModule], [typeof i1.FConnectionDragHandleComponent, typeof i2.FConnectionGradientComponent, typeof i3.FConnectionPathComponent, typeof i4.FConnectionTextComponent, typeof i5.FConnectionTextPathDirective, typeof i6.FConnectionSelectionComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<FConnectionCommonModule>;
13
+ }
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
2
  import { IHasHostElement } from '@foblex/core';
3
3
  import { IInputOutputModel } from '../i-input-output-model';
4
- import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
4
+ import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FConnectionTextPathDirective implements IHasHostElement, OnInit {
7
7
  private elementReference;
@@ -2,7 +2,7 @@ import { ElementRef } from "@angular/core";
2
2
  import { IHasHostElement, IVector } from '@foblex/core';
3
3
  import { FConnectionTextPathDirective } from './f-connection-text-path.directive';
4
4
  import { IInputOutputModel } from '../i-input-output-model';
5
- import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
5
+ import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FConnectionTextComponent implements IHasHostElement {
8
8
  private elementReference;
@@ -1,7 +1,7 @@
1
1
  import { AfterContentInit, ElementRef } from "@angular/core";
2
2
  import { IHasHostElement, IVector } from '@foblex/core';
3
3
  import { IInputOutputModel } from '../i-input-output-model';
4
- import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
4
+ import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FConnectionGradientComponent implements IHasHostElement, AfterContentInit {
7
7
  private elementReference;
@@ -1,8 +1,8 @@
1
1
  import { ElementRef, OnInit } from "@angular/core";
2
2
  import { IHasHostElement } from '@foblex/core';
3
3
  import { IInputOutputModel } from '../i-input-output-model';
4
- import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
5
- import { ISelectable } from '../../../i-selectable';
4
+ import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
5
+ import { ISelectable } from '../../../../i-selectable';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FConnectionPathComponent implements IHasHostElement, ISelectable, OnInit {
8
8
  private elementReference;
@@ -1,7 +1,7 @@
1
1
  import { ElementRef } from "@angular/core";
2
2
  import { IHasHostElement } from '@foblex/core';
3
3
  import { IInputOutputModel } from '../i-input-output-model';
4
- import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
4
+ import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FConnectionSelectionComponent implements IHasHostElement {
7
7
  private elementReference;
@@ -1,4 +1,4 @@
1
- import { FNodeInputBase, FNodeOutputBase } from '../f-connectors';
1
+ import { FNodeInputBase, FNodeOutputBase } from '../../f-connectors';
2
2
  export interface IInputOutputModel<TOutput = FNodeOutputBase, TInput = FNodeInputBase> {
3
3
  input: TInput;
4
4
  output: TOutput;
@@ -0,0 +1,10 @@
1
+ export * from './f-connection-text';
2
+ export * from './f-drag-handle';
3
+ export * from './f-gradient';
4
+ export * from './f-path';
5
+ export * from './f-selection';
6
+ export * from './f-connection-base';
7
+ export * from './f-connection-common.module';
8
+ export * from './f-connection-identifiers';
9
+ export * from './get-connection-intersect';
10
+ export * from './i-input-output-model';
@@ -0,0 +1,6 @@
1
+ export * from './f-connection-text';
2
+ export * from './f-drag-handle';
3
+ export * from './f-gradient';
4
+ export * from './f-path';
5
+ export * from './f-selection';
6
+ export * from './f-connection-common.module';
@@ -1,12 +1,7 @@
1
1
  import { ElementRef } from "@angular/core";
2
2
  import { IVector } from '@foblex/core';
3
- import { FConnectionBase } from './f-connection-base';
4
- import { FConnectionTextComponent } from './f-connection-text/f-connection-text.component';
5
- import { FConnectionDragHandleComponent } from './f-drag-handle';
6
- import { FConnectionSelectionComponent } from './f-selection/f-connection-selection.component';
7
- import { FConnectionGradientComponent } from './f-gradient/f-connection-gradient.component';
8
- import { FConnectionPathComponent } from './f-path/f-connection-path.component';
9
- import { FFlowBase } from '../f-flow';
3
+ import { FConnectionBase, FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent } from '../common';
4
+ import { FFlowBase } from '../../f-flow';
10
5
  import * as i0 from "@angular/core";
11
6
  export declare class FConnectionComponent extends FConnectionBase {
12
7
  private elementReference;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./f-connection.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../common/f-connection-common.module";
5
+ export declare class FConnectionModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FConnectionModule, [typeof i1.FConnectionComponent], [typeof i2.CommonModule, typeof i3.FConnectionCommonModule], [typeof i1.FConnectionComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FConnectionModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './f-connection.component';
2
+ export * from './f-connection.module';
@@ -1,9 +1,9 @@
1
1
  import { AfterViewInit, ElementRef, InjectionToken } from "@angular/core";
2
- import { FConnectionBase } from '../f-connection-base';
2
+ import { FConnectionBase } from '../common/f-connection-base';
3
3
  import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
4
- import { FConnectionPathComponent } from '../f-path/f-connection-path.component';
5
- import { FConnectionGradientComponent } from '../f-gradient/f-connection-gradient.component';
6
- import { FConnectionTextComponent } from '../f-connection-text/f-connection-text.component';
4
+ import { FConnectionPathComponent } from '../common/f-path';
5
+ import { FConnectionGradientComponent } from '../common/f-gradient';
6
+ import { FConnectionTextComponent } from '../common/f-connection-text';
7
7
  import { IVector } from '@foblex/core';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare const F_TEMP_CONNECTION_COMPONENT: InjectionToken<FConnectionBase<FNodeOutputBase>>;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./f-temp-connection.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../common/f-connection-common.module";
5
+ export declare class FTempConnectionModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FTempConnectionModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FTempConnectionModule, [typeof i1.FTempConnectionComponent], [typeof i2.CommonModule, typeof i3.FConnectionCommonModule], [typeof i1.FTempConnectionComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<FTempConnectionModule>;
9
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './f-temp-connection.component';
2
2
  export * from './temp-connection-input-output-model';
3
+ export * from './f-temp-connection.module';
@@ -1,4 +1,4 @@
1
- import { IInputOutputModel } from '../i-input-output-model';
1
+ import { IInputOutputModel } from '../common/i-input-output-model';
2
2
  import { FNodeOutletBase, FNodeOutputBase } from '../../f-connectors';
3
3
  export declare class TempConnectionInputOutputModel implements IInputOutputModel<FNodeOutputBase | FNodeOutletBase, null> {
4
4
  output: FNodeOutputBase | FNodeOutletBase;
@@ -1,12 +1,3 @@
1
- export * from './f-connection-text';
2
- export * from './f-drag-handle';
3
- export * from './f-gradient';
4
- export * from './f-path';
5
- export * from './f-selection';
1
+ export * from './common';
6
2
  export * from './f-temp-connection';
7
- export * from './f-connection.component';
8
- export * from './f-connection.module';
9
- export * from './f-connection-base';
10
- export * from './f-connection-identifiers';
11
- export * from './get-connection-intersect';
12
- export * from './i-input-output-model';
3
+ export * from './f-connection';
@@ -1,3 +1,3 @@
1
- export * from './f-temp-connection/f-temp-connection.component';
2
- export * from './f-connection.component';
3
- export * from './f-connection.module';
1
+ export * from './f-temp-connection';
2
+ export * from './f-connection';
3
+ export * from './common/public-api';
@@ -2,4 +2,3 @@ export * from './f-connection';
2
2
  export * from './f-connectors';
3
3
  export * from './f-flow';
4
4
  export * from './f-node';
5
- export * from '../directives/f-selection';
@@ -1,6 +1,6 @@
1
1
  import { IHandler } from '@foblex/core';
2
2
  import { ConnectIfIntersectRequest } from './connect-if-intersect.request';
3
- import { FConnectionBase } from '../../../components/f-connection/f-connection-base';
3
+ import { FConnectionBase } from '../../../components';
4
4
  import { FFlowBase, FNodeOutputBase } from '../../../components';
5
5
  import { FItemsContainerBase } from '../../f-containers';
6
6
  export declare class ConnectIfIntersectHandler implements IHandler<ConnectIfIntersectRequest> {
@@ -0,0 +1,11 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { FConnectionBase, FNodeOutputBase } from '../../components';
3
+ import { IDraggableItem } from '../f-draggable';
4
+ import * as i0 from "@angular/core";
5
+ export declare abstract class FConnectIfIntersectBase {
6
+ abstract id: any;
7
+ abstract fConnections: QueryList<FConnectionBase<FNodeOutputBase>> | undefined;
8
+ abstract handle(draggableItems: IDraggableItem[]): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FConnectIfIntersectBase, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectIfIntersectBase, never, never, {}, {}, never, never, false, never>;
11
+ }
@@ -1,16 +1,16 @@
1
- import { InjectionToken, QueryList } from '@angular/core';
2
- import { FConnectionBase } from '../../components/f-connection/f-connection-base';
3
- import { FFlowBase, FNodeOutputBase } from '../../components';
4
- import { FItemsContainerBase } from '../f-containers';
1
+ import { QueryList } from '@angular/core';
5
2
  import { IDraggableItem } from '../f-draggable';
3
+ import { FConnectIfIntersectBase } from './f-connect-if-intersect-base';
4
+ import { FConnectionBase, FFlowBase, FNodeOutputBase } from '../../components';
5
+ import { FItemsContainerBase } from '../f-containers';
6
6
  import * as i0 from "@angular/core";
7
- export declare const F_CONNECT_IF_INTERSECT: InjectionToken<FConnectIfIntersectDirective>;
8
- export declare class FConnectIfIntersectDirective {
7
+ export declare class FConnectIfIntersectDirective extends FConnectIfIntersectBase {
9
8
  private fFlow;
10
9
  private fItemsContainer;
10
+ id: string;
11
11
  fConnections: QueryList<FConnectionBase<FNodeOutputBase>>;
12
12
  constructor(fFlow: FFlowBase, fItemsContainer: FItemsContainerBase);
13
13
  handle(draggableItems: IDraggableItem[]): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FConnectIfIntersectDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectIfIntersectDirective, "g[fConnectIfIntersect]", never, {}, {}, ["fConnections"], never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectIfIntersectDirective, "g[fConnectIfIntersect]", never, { "id": { "alias": "id"; "required": false; }; }, {}, ["fConnections"], never, true, never>;
16
16
  }
@@ -1,2 +1,3 @@
1
1
  export * from './connect-if-intersect';
2
2
  export * from './f-connect-if-intersect.directive';
3
+ export * from './f-connect-if-intersect-base';
@@ -1 +1,2 @@
1
1
  export * from './f-connect-if-intersect.directive';
2
+ export * from './f-connect-if-intersect-base';
@@ -1,6 +1,6 @@
1
1
  import { IHasHostElement } from '@foblex/core';
2
2
  import { InjectionToken, QueryList } from '@angular/core';
3
- import { FConnectionBase } from '../../../components/f-connection/f-connection-base';
3
+ import { FConnectionBase } from '../../../components/f-connection/common/f-connection-base';
4
4
  import { FNodeInputBase, FNodeOutletBase, FNodeOutputBase } from '../../../components';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const F_CONNECTIONS_CONTAINER: InjectionToken<FConnectionsContainerBase>;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, QueryList } from "@angular/core";
2
2
  import { FConnectionsContainerBase } from './f-connections-container-base';
3
- import { FConnectionBase } from '../../../components/f-connection/f-connection-base';
3
+ import { FConnectionBase } from '../../../components/f-connection/common/f-connection-base';
4
4
  import { FNodeOutletBase, FNodeOutputBase } from '../../../components';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FConnectionsContainerComponent extends FConnectionsContainerBase {
@@ -1,5 +1,5 @@
1
1
  import { IPoint, ITransformModel } from '@foblex/core';
2
- import { FConnectionBase } from '../../../../components/f-connection/f-connection-base';
2
+ import { FConnectionBase } from '../../../../components/f-connection/common/f-connection-base';
3
3
  import { FNodeOutletBase, FNodeOutputBase } from '../../../../components';
4
4
  import { IDraggableItem } from '../../i-draggable-item';
5
5
  import { EDraggableType } from '../../e-draggable-type';
@@ -1,5 +1,5 @@
1
1
  import { IPoint, ITransformModel } from '@foblex/core';
2
- import { FConnectionBase } from '../../../../../components/f-connection/f-connection-base';
2
+ import { FConnectionBase } from '../../../../../components/f-connection/common/f-connection-base';
3
3
  import { FNodeOutputBase } from '../../../../../components';
4
4
  import { IDraggableItem } from '../../../i-draggable-item';
5
5
  import { EDraggableType } from '../../../e-draggable-type';
@@ -1,13 +1,14 @@
1
1
  import { IDragAndDropBase, IHasHostElement, IPointerEvent } from '@foblex/core';
2
2
  import { AfterViewInit, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy } from '@angular/core';
3
- import { FFlowBase, FSelectionDirective } from '../../components';
3
+ import { FFlowBase } from '../../components';
4
4
  import { ReassignConnectionEvent } from './connections';
5
5
  import { CreateConnectionEvent } from './connections';
6
- import { FConnectIfIntersectDirective } from '../f-connect-if-intersect';
6
+ import { FConnectIfIntersectBase } from '../f-connect-if-intersect';
7
7
  import { FLineAlignmentDirective } from '../f-line-alignment';
8
8
  import { FExternalItemService } from '../f-external-item';
9
9
  import { FDraggableService } from './f-draggable.service';
10
10
  import { CreateNodeEvent } from './external-item';
11
+ import { FSelectionDirective } from '../f-selection';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare const F_DND_DIRECTIVE: InjectionToken<FDraggableBase>;
13
14
  export declare abstract class FDraggableBase extends IDragAndDropBase implements IHasHostElement, AfterViewInit, OnDestroy {
@@ -31,7 +32,7 @@ export declare abstract class FDraggableBase extends IDragAndDropBase implements
31
32
  abstract onReassignConnection: EventEmitter<ReassignConnectionEvent>;
32
33
  abstract onCreateNode: EventEmitter<CreateNodeEvent>;
33
34
  abstract fLineAlignment: FLineAlignmentDirective | undefined;
34
- abstract fConnectIfIntersect: FConnectIfIntersectDirective | undefined;
35
+ abstract fConnectIfIntersect: FConnectIfIntersectBase | undefined;
35
36
  abstract fSelection: FSelectionDirective | undefined;
36
37
  private selectedItems;
37
38
  protected constructor(fFlow: FFlowBase, fDNDService: FDraggableService, fExternalItemService: FExternalItemService, elementReference: ElementRef<SVGSVGElement>, ngZone: NgZone);
@@ -1,22 +1,23 @@
1
1
  import { ElementRef, EventEmitter, NgZone } from "@angular/core";
2
2
  import { FDraggableBase } from './f-draggable-base';
3
- import { FFlowBase, FSelectionDirective } from '../../components';
4
- import { FConnectIfIntersectDirective } from '../f-connect-if-intersect';
3
+ import { FFlowBase } from '../../components';
5
4
  import { FLineAlignmentDirective } from '../f-line-alignment';
6
5
  import { FExternalItemService } from '../f-external-item';
7
6
  import { FDraggableService } from './f-draggable.service';
8
7
  import { CreateConnectionEvent, ReassignConnectionEvent } from './connections';
9
8
  import { CreateNodeEvent } from './external-item';
9
+ import { FSelectionDirective } from '../f-selection';
10
+ import { FConnectIfIntersectBase } from '../f-connect-if-intersect';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class FDraggableDirective extends FDraggableBase {
12
13
  disabled: boolean;
13
14
  fLineAlignment: FLineAlignmentDirective | undefined;
14
- fConnectIfIntersect: FConnectIfIntersectDirective | undefined;
15
15
  fSelection: FSelectionDirective | undefined;
16
+ fConnectIfIntersect: FConnectIfIntersectBase | undefined;
16
17
  onCreateConnection: EventEmitter<CreateConnectionEvent>;
17
18
  onReassignConnection: EventEmitter<ReassignConnectionEvent>;
18
19
  onCreateNode: EventEmitter<CreateNodeEvent>;
19
20
  constructor(fFlow: FFlowBase, fDNDService: FDraggableService, fExternalItemService: FExternalItemService, elementReference: ElementRef<SVGSVGElement>, ngZone: NgZone);
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "svg[fDraggable]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "onCreateConnection": "onCreateConnection"; "onReassignConnection": "onReassignConnection"; "onCreateNode": "onCreateNode"; }, ["fLineAlignment", "fConnectIfIntersect", "fSelection"], never, false, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "svg[fDraggable]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, { "onCreateConnection": "onCreateConnection"; "onReassignConnection": "onReassignConnection"; "onCreateNode": "onCreateNode"; }, ["fLineAlignment", "fSelection", "fConnectIfIntersect"], never, false, never>;
22
23
  }
@@ -1,11 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./f-draggable.directive";
3
3
  import * as i2 from "../f-external-item/f-external-item.directive";
4
- import * as i3 from "../f-line-alignment/f-line-alignment.directive";
5
- import * as i4 from "../f-selection/f-selection.directive";
6
- import * as i5 from "../f-connect-if-intersect/f-connect-if-intersect.directive";
4
+ import * as i3 from "@angular/common";
7
5
  export declare class FDraggableModule {
8
6
  static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<FDraggableModule, [typeof i1.FDraggableDirective, typeof i2.FExternalItemDirective, typeof i3.FLineAlignmentDirective, typeof i4.FSelectionDirective, typeof i5.FConnectIfIntersectDirective], never, [typeof i1.FDraggableDirective, typeof i2.FExternalItemDirective, typeof i3.FLineAlignmentDirective, typeof i4.FSelectionDirective, typeof i5.FConnectIfIntersectDirective]>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FDraggableModule, [typeof i1.FDraggableDirective, typeof i2.FExternalItemDirective], [typeof i3.CommonModule], [typeof i1.FDraggableDirective, typeof i2.FExternalItemDirective]>;
10
8
  static ɵinj: i0.ɵɵInjectorDeclaration<FDraggableModule>;
11
9
  }
@@ -1,7 +1,7 @@
1
1
  import { IPoint, ITransformModel } from '@foblex/core';
2
2
  import { IDraggableItem } from '../../i-draggable-item';
3
3
  import { EDraggableType } from '../../e-draggable-type';
4
- import { FConnectionBase } from '../../../../components/f-connection/f-connection-base';
4
+ import { FConnectionBase } from '../../../../components/f-connection/common/f-connection-base';
5
5
  import { FNodeOutputBase } from '../../../../components';
6
6
  export declare class FConnectionSourceDragHandler implements IDraggableItem {
7
7
  private connection;
@@ -1,7 +1,7 @@
1
1
  import { IPoint, ITransformModel } from '@foblex/core';
2
2
  import { IDraggableItem } from '../../i-draggable-item';
3
3
  import { EDraggableType } from '../../e-draggable-type';
4
- import { FConnectionBase } from '../../../../components/f-connection/f-connection-base';
4
+ import { FConnectionBase } from '../../../../components/f-connection/common/f-connection-base';
5
5
  import { FNodeOutputBase } from '../../../../components';
6
6
  export declare class FConnectionTargetDragHandler implements IDraggableItem {
7
7
  private connection;
@@ -1,7 +1,7 @@
1
1
  import { IPoint, ITransformModel } from '@foblex/core';
2
2
  import { IDraggableItem } from '../../i-draggable-item';
3
3
  import { EDraggableType } from '../../e-draggable-type';
4
- import { FConnectionBase } from '../../../../components/f-connection/f-connection-base';
4
+ import { FConnectionBase } from '../../../../components/f-connection/common/f-connection-base';
5
5
  import { FNodeOutputBase } from '../../../../components';
6
6
  export declare class FConnectionDragHandler implements IDraggableItem {
7
7
  connection: FConnectionBase<FNodeOutputBase>;
@@ -1,11 +1,11 @@
1
1
  import { IHandler } from '@foblex/core';
2
2
  import { NodeOnPointerUpRequest } from './node-on-pointer-up.request';
3
- import { FConnectIfIntersectDirective } from '../../../f-connect-if-intersect';
3
+ import { FConnectIfIntersectBase } from '../../../f-connect-if-intersect';
4
4
  import { FLineAlignmentDirective } from '../../../f-line-alignment';
5
5
  export declare class NodeOnPointerUp implements IHandler<NodeOnPointerUpRequest, void> {
6
6
  private fLineAlignment;
7
7
  private fConnectIfIntersect;
8
8
  hostElement: SVGSVGElement;
9
- constructor(fLineAlignment: FLineAlignmentDirective | undefined, fConnectIfIntersect: FConnectIfIntersectDirective | undefined, hostElement: SVGSVGElement);
9
+ constructor(fLineAlignment: FLineAlignmentDirective | undefined, fConnectIfIntersect: FConnectIfIntersectBase | undefined, hostElement: SVGSVGElement);
10
10
  handle(payload: NodeOnPointerUpRequest): void;
11
11
  }
@@ -1 +1,2 @@
1
1
  export * from './f-draggable.directive';
2
+ export * from './f-draggable.module';
@@ -1,7 +1,8 @@
1
1
  import { IHandler } from '@foblex/core';
2
- import { FFlowBase, FSelectionDirective } from '../../../../components';
2
+ import { FFlowBase } from '../../../../components';
3
3
  import { SelectionOnPointerDownRequest } from './selection-on-pointer-down.request';
4
4
  import { IDragHandler } from '../../i-drag-handler';
5
+ import { FSelectionDirective } from '../../../f-selection';
5
6
  export declare class SelectionOnPointerDown implements IHandler<SelectionOnPointerDownRequest, IDragHandler> {
6
7
  private fFlow;
7
8
  private fSelection;
@@ -11,7 +11,8 @@ export declare class SelectionOnPointerMove implements IDraggableItem {
11
11
  private onPointerDownPosition;
12
12
  readonly type: EDraggableType;
13
13
  selectedItems: ISelectable[];
14
- private items;
14
+ private readonly items;
15
+ private canvasPosition;
15
16
  constructor(fFlow: FFlowBase, fSelection: FSelectionDirective | undefined, selectedOnStart: ISelectable[], onPointerDownPosition?: IPoint);
16
17
  initialize(): void;
17
18
  move(difference: IPoint): void;
@@ -21,5 +21,5 @@ export declare class FLineAlignmentDirective {
21
21
  findNearestCoordinate(difference: IPoint): ILineAlignmentResult;
22
22
  complete(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FLineAlignmentDirective, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<FLineAlignmentDirective, "g[fLineAlignment]", never, {}, {}, never, never, false, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FLineAlignmentDirective, "g[fLineAlignment]", never, {}, {}, never, never, true, never>;
25
25
  }
@@ -11,5 +11,5 @@ export declare class FSelectionDirective {
11
11
  show(): void;
12
12
  draw(object: Partial<IRectElementModel>): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FSelectionDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<FSelectionDirective, "g[fSelection]", never, {}, {}, never, never, false, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FSelectionDirective, "g[fSelection]", never, {}, {}, never, never, true, never>;
15
15
  }
@@ -0,0 +1,32 @@
1
+ import { Directive } from '@angular/core';
2
+ import { VectorExtensions } from '@foblex/core';
3
+ import { F_SELECTED_CLASS } from '../../../i-selectable';
4
+ import { Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export class FConnectionBase {
7
+ constructor() {
8
+ this.path = '';
9
+ this.vector = VectorExtensions.initialize();
10
+ this.stateChanges = new Subject();
11
+ }
12
+ initialize() {
13
+ }
14
+ isContains(element) {
15
+ return this.hostElement.contains(element);
16
+ }
17
+ deselect() {
18
+ this.hostElement.classList.remove(F_SELECTED_CLASS);
19
+ }
20
+ select() {
21
+ this.hostElement.classList.add(F_SELECTED_CLASS);
22
+ }
23
+ isSelected() {
24
+ return this.hostElement.classList.contains(F_SELECTED_CLASS);
25
+ }
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
27
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectionBase, ngImport: i0 }); }
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionBase, decorators: [{
30
+ type: Directive
31
+ }] });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2NvbXBvbmVudHMvZi1jb25uZWN0aW9uL2NvbW1vbi9mLWNvbm5lY3Rpb24tYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzFDLE9BQU8sRUFBNEIsZ0JBQWdCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFHMUUsT0FBTyxFQUFFLGdCQUFnQixFQUFlLE1BQU0sdUJBQXVCLENBQUM7QUFHdEUsT0FBTyxFQUF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oYW5nZXM6IFN1YmplY3Q8dm9pZD4gPSBuZXcgU3ViamVjdDx2b2lkPigpO1xuXG4gIHB1YmxpYyBpbml0aWFsaXplKCk6IHZvaWQge1xuXG4gIH1cblxuICBwdWJsaWMgaXNDb250YWlucyhlbGVtZW50OiBIVE1MRWxlbWVudCB8IFNWR0VsZW1lbnQpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5ob3N0RWxlbWVudC5jb250YWlucyhlbGVtZW50KTtcbiAgfVxuXG4gIHB1YmxpYyBhYnN0cmFjdCBpbml0aWFsaXplRHJhZygpOiB2b2lkO1xuXG4gIHB1YmxpYyBhYnN0cmFjdCByZWRyYXcoKTogdm9pZDtcblxuICBwdWJsaWMgYWJzdHJhY3Qgc2V0VmVjdG9yKHZlY3RvcjogSVZlY3Rvcik6IHZvaWQ7XG5cbiAgcHVibGljIGFic3RyYWN0IGNvbXBsZXRlRHJhZygpOiB2b2lkO1xuXG4gIHB1YmxpYyBkZXNlbGVjdCgpOiB2b2lkIHtcbiAgICB0aGlzLmhvc3RFbGVtZW50LmNsYXNzTGlzdC5yZW1vdmUoRl9TRUxFQ1RFRF9DTEFTUyk7XG4gIH1cblxuICBwdWJsaWMgc2VsZWN0KCk6IHZvaWQge1xuICAgIHRoaXMuaG9zdEVsZW1lbnQuY2xhc3NMaXN0LmFkZChGX1NFTEVDVEVEX0NMQVNTKTtcbiAgfVxuXG4gIHB1YmxpYyBpc1NlbGVjdGVkKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmhvc3RFbGVtZW50LmNsYXNzTGlzdC5jb250YWlucyhGX1NFTEVDVEVEX0NMQVNTKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,44 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FConnectionDragHandleComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective } from './index';
4
+ import * as i0 from "@angular/core";
5
+ export class FConnectionCommonModule {
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, declarations: [FConnectionDragHandleComponent,
8
+ FConnectionGradientComponent,
9
+ FConnectionPathComponent,
10
+ FConnectionTextComponent,
11
+ FConnectionTextPathDirective,
12
+ FConnectionSelectionComponent], imports: [CommonModule], exports: [FConnectionDragHandleComponent,
13
+ FConnectionGradientComponent,
14
+ FConnectionPathComponent,
15
+ FConnectionTextComponent,
16
+ FConnectionTextPathDirective,
17
+ FConnectionSelectionComponent] }); }
18
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, imports: [CommonModule] }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionCommonModule, decorators: [{
21
+ type: NgModule,
22
+ args: [{
23
+ declarations: [
24
+ FConnectionDragHandleComponent,
25
+ FConnectionGradientComponent,
26
+ FConnectionPathComponent,
27
+ FConnectionTextComponent,
28
+ FConnectionTextPathDirective,
29
+ FConnectionSelectionComponent,
30
+ ],
31
+ imports: [
32
+ CommonModule
33
+ ],
34
+ exports: [
35
+ FConnectionDragHandleComponent,
36
+ FConnectionGradientComponent,
37
+ FConnectionPathComponent,
38
+ FConnectionTextComponent,
39
+ FConnectionTextPathDirective,
40
+ FConnectionSelectionComponent,
41
+ ]
42
+ }]
43
+ }] });
44
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLWNvbW1vbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8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mVjdGlvblRleHRDb21wb25lbnQsXG4gICAgRkNvbm5lY3Rpb25UZXh0UGF0aERpcmVjdGl2ZSxcbiAgICBGQ29ubmVjdGlvblNlbGVjdGlvbkNvbXBvbmVudCxcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBGQ29ubmVjdGlvbkNvbW1vbk1vZHVsZSB7XG59XG4iXX0=
@@ -0,0 +1,21 @@
1
+ export const F_CONNECTION_IDENTIFIERS = {
2
+ textId(connectionId) {
3
+ return 'connection_text_' + connectionId;
4
+ },
5
+ connectionForSelectionId(connectionId) {
6
+ return 'connection_for_selection_' + connectionId;
7
+ },
8
+ connectionId(connectionId) {
9
+ return 'connection_' + connectionId;
10
+ },
11
+ gradientId(connectionId) {
12
+ return 'connection_gradient_' + connectionId;
13
+ },
14
+ linkToGradient(connectionId) {
15
+ return `url(#${F_CONNECTION_IDENTIFIERS.gradientId(connectionId)})`;
16
+ },
17
+ linkToConnection(connectionId) {
18
+ return `#${F_CONNECTION_IDENTIFIERS.connectionId(connectionId)}`;
19
+ }
20
+ };
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLWlkZW50aWZpZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9jb21wb25lbnRzL2YtY29ubmVjdGlvbi9jb21tb24vZi1jb25uZWN0aW9uLWlkZW50aWZpZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLHdCQUF3QixHQUFHO0lBRXRDLE1BQU0sQ0FBQyxZQUFvQjtRQUN6QixPQUFPLGtCQUFrQixHQUFHLFlBQVksQ0FBQztJQUMzQyxDQUFDO0lBQ0Qsd0JBQXdCLENBQUMsWUFBb0I7UUFDM0MsT0FBTywyQkFBMkIsR0FBRyxZQUFZLENBQUM7S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