@angflow/angular 0.0.1

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 (196) hide show
  1. package/README.md +187 -0
  2. package/dist/base.css +1204 -0
  3. package/dist/esm/index.d.ts +2 -0
  4. package/dist/esm/index.d.ts.map +1 -0
  5. package/dist/esm/index.js +2 -0
  6. package/dist/esm/index.js.map +1 -0
  7. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts +25 -0
  8. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.d.ts.map +1 -0
  9. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +58 -0
  10. package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -0
  11. package/dist/esm/lib/components/attribution/attribution.component.d.ts +6 -0
  12. package/dist/esm/lib/components/attribution/attribution.component.d.ts.map +1 -0
  13. package/dist/esm/lib/components/attribution/attribution.component.js +32 -0
  14. package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -0
  15. package/dist/esm/lib/components/background/background.component.d.ts +31 -0
  16. package/dist/esm/lib/components/background/background.component.d.ts.map +1 -0
  17. package/dist/esm/lib/components/background/background.component.js +209 -0
  18. package/dist/esm/lib/components/background/background.component.js.map +1 -0
  19. package/dist/esm/lib/components/connection-line/connection-line.component.d.ts +36 -0
  20. package/dist/esm/lib/components/connection-line/connection-line.component.d.ts.map +1 -0
  21. package/dist/esm/lib/components/connection-line/connection-line.component.js +146 -0
  22. package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -0
  23. package/dist/esm/lib/components/controls/controls.component.d.ts +25 -0
  24. package/dist/esm/lib/components/controls/controls.component.d.ts.map +1 -0
  25. package/dist/esm/lib/components/controls/controls.component.js +174 -0
  26. package/dist/esm/lib/components/controls/controls.component.js.map +1 -0
  27. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts +6 -0
  28. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.d.ts.map +1 -0
  29. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +24 -0
  30. package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -0
  31. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts +22 -0
  32. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.d.ts.map +1 -0
  33. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +64 -0
  34. package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -0
  35. package/dist/esm/lib/components/edges/base-edge.component.d.ts +11 -0
  36. package/dist/esm/lib/components/edges/base-edge.component.d.ts.map +1 -0
  37. package/dist/esm/lib/components/edges/base-edge.component.js +56 -0
  38. package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -0
  39. package/dist/esm/lib/components/edges/bezier-edge.component.d.ts +30 -0
  40. package/dist/esm/lib/components/edges/bezier-edge.component.d.ts.map +1 -0
  41. package/dist/esm/lib/components/edges/bezier-edge.component.js +68 -0
  42. package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -0
  43. package/dist/esm/lib/components/edges/edge-text.component.d.ts +11 -0
  44. package/dist/esm/lib/components/edges/edge-text.component.d.ts.map +1 -0
  45. package/dist/esm/lib/components/edges/edge-text.component.js +48 -0
  46. package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -0
  47. package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts +21 -0
  48. package/dist/esm/lib/components/edges/simple-bezier-edge.component.d.ts.map +1 -0
  49. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +57 -0
  50. package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -0
  51. package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts +22 -0
  52. package/dist/esm/lib/components/edges/smooth-step-edge.component.d.ts.map +1 -0
  53. package/dist/esm/lib/components/edges/smooth-step-edge.component.js +59 -0
  54. package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -0
  55. package/dist/esm/lib/components/edges/step-edge.component.d.ts +22 -0
  56. package/dist/esm/lib/components/edges/step-edge.component.d.ts.map +1 -0
  57. package/dist/esm/lib/components/edges/step-edge.component.js +60 -0
  58. package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -0
  59. package/dist/esm/lib/components/edges/straight-edge.component.d.ts +18 -0
  60. package/dist/esm/lib/components/edges/straight-edge.component.d.ts.map +1 -0
  61. package/dist/esm/lib/components/edges/straight-edge.component.js +53 -0
  62. package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -0
  63. package/dist/esm/lib/components/handle/handle.component.d.ts +28 -0
  64. package/dist/esm/lib/components/handle/handle.component.d.ts.map +1 -0
  65. package/dist/esm/lib/components/handle/handle.component.js +162 -0
  66. package/dist/esm/lib/components/handle/handle.component.js.map +1 -0
  67. package/dist/esm/lib/components/minimap/minimap.component.d.ts +75 -0
  68. package/dist/esm/lib/components/minimap/minimap.component.d.ts.map +1 -0
  69. package/dist/esm/lib/components/minimap/minimap.component.js +319 -0
  70. package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -0
  71. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts +6 -0
  72. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.d.ts.map +1 -0
  73. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +24 -0
  74. package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -0
  75. package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts +44 -0
  76. package/dist/esm/lib/components/node-resizer/node-resizer.component.d.ts.map +1 -0
  77. package/dist/esm/lib/components/node-resizer/node-resizer.component.js +198 -0
  78. package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -0
  79. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts +19 -0
  80. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts.map +1 -0
  81. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +101 -0
  82. package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -0
  83. package/dist/esm/lib/components/nodes/default-node.component.d.ts +20 -0
  84. package/dist/esm/lib/components/nodes/default-node.component.d.ts.map +1 -0
  85. package/dist/esm/lib/components/nodes/default-node.component.js +52 -0
  86. package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -0
  87. package/dist/esm/lib/components/nodes/group-node.component.d.ts +19 -0
  88. package/dist/esm/lib/components/nodes/group-node.component.d.ts.map +1 -0
  89. package/dist/esm/lib/components/nodes/group-node.component.js +34 -0
  90. package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -0
  91. package/dist/esm/lib/components/nodes/input-node.component.d.ts +20 -0
  92. package/dist/esm/lib/components/nodes/input-node.component.d.ts.map +1 -0
  93. package/dist/esm/lib/components/nodes/input-node.component.js +49 -0
  94. package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -0
  95. package/dist/esm/lib/components/nodes/output-node.component.d.ts +20 -0
  96. package/dist/esm/lib/components/nodes/output-node.component.d.ts.map +1 -0
  97. package/dist/esm/lib/components/nodes/output-node.component.js +48 -0
  98. package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -0
  99. package/dist/esm/lib/components/panel/panel.component.d.ts +13 -0
  100. package/dist/esm/lib/components/panel/panel.component.d.ts.map +1 -0
  101. package/dist/esm/lib/components/panel/panel.component.js +39 -0
  102. package/dist/esm/lib/components/panel/panel.component.js.map +1 -0
  103. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts +12 -0
  104. package/dist/esm/lib/components/selection-box/selection-box.component.d.ts.map +1 -0
  105. package/dist/esm/lib/components/selection-box/selection-box.component.js +56 -0
  106. package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -0
  107. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts +8 -0
  108. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.d.ts.map +1 -0
  109. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +35 -0
  110. package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -0
  111. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts +70 -0
  112. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts.map +1 -0
  113. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +503 -0
  114. package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -0
  115. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts +281 -0
  116. package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts.map +1 -0
  117. package/dist/esm/lib/container/ng-flow/ng-flow.component.js +644 -0
  118. package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -0
  119. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts +56 -0
  120. package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts.map +1 -0
  121. package/dist/esm/lib/container/node-renderer/node-renderer.component.js +312 -0
  122. package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -0
  123. package/dist/esm/lib/container/pane/pane.component.d.ts +35 -0
  124. package/dist/esm/lib/container/pane/pane.component.d.ts.map +1 -0
  125. package/dist/esm/lib/container/pane/pane.component.js +161 -0
  126. package/dist/esm/lib/container/pane/pane.component.js.map +1 -0
  127. package/dist/esm/lib/container/viewport/viewport.component.d.ts +9 -0
  128. package/dist/esm/lib/container/viewport/viewport.component.d.ts.map +1 -0
  129. package/dist/esm/lib/container/viewport/viewport.component.js +35 -0
  130. package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -0
  131. package/dist/esm/lib/directives/drag.directive.d.ts +21 -0
  132. package/dist/esm/lib/directives/drag.directive.d.ts.map +1 -0
  133. package/dist/esm/lib/directives/drag.directive.js +69 -0
  134. package/dist/esm/lib/directives/drag.directive.js.map +1 -0
  135. package/dist/esm/lib/directives/drop-zone.directive.d.ts +30 -0
  136. package/dist/esm/lib/directives/drop-zone.directive.d.ts.map +1 -0
  137. package/dist/esm/lib/directives/drop-zone.directive.js +58 -0
  138. package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -0
  139. package/dist/esm/lib/directives/key-handler.directive.d.ts +29 -0
  140. package/dist/esm/lib/directives/key-handler.directive.d.ts.map +1 -0
  141. package/dist/esm/lib/directives/key-handler.directive.js +176 -0
  142. package/dist/esm/lib/directives/key-handler.directive.js.map +1 -0
  143. package/dist/esm/lib/directives/node-type.directive.d.ts +21 -0
  144. package/dist/esm/lib/directives/node-type.directive.d.ts.map +1 -0
  145. package/dist/esm/lib/directives/node-type.directive.js +32 -0
  146. package/dist/esm/lib/directives/node-type.directive.js.map +1 -0
  147. package/dist/esm/lib/public-api.d.ts +40 -0
  148. package/dist/esm/lib/public-api.d.ts.map +1 -0
  149. package/dist/esm/lib/public-api.js +67 -0
  150. package/dist/esm/lib/public-api.js.map +1 -0
  151. package/dist/esm/lib/services/flow-store.service.d.ts +227 -0
  152. package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -0
  153. package/dist/esm/lib/services/flow-store.service.js +542 -0
  154. package/dist/esm/lib/services/flow-store.service.js.map +1 -0
  155. package/dist/esm/lib/services/ng-flow.service.d.ts +186 -0
  156. package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -0
  157. package/dist/esm/lib/services/ng-flow.service.js +501 -0
  158. package/dist/esm/lib/services/ng-flow.service.js.map +1 -0
  159. package/dist/esm/lib/services/tokens.d.ts +4 -0
  160. package/dist/esm/lib/services/tokens.d.ts.map +1 -0
  161. package/dist/esm/lib/services/tokens.js +4 -0
  162. package/dist/esm/lib/services/tokens.js.map +1 -0
  163. package/dist/esm/lib/types/edges.d.ts +83 -0
  164. package/dist/esm/lib/types/edges.d.ts.map +1 -0
  165. package/dist/esm/lib/types/edges.js +2 -0
  166. package/dist/esm/lib/types/edges.js.map +1 -0
  167. package/dist/esm/lib/types/general.d.ts +128 -0
  168. package/dist/esm/lib/types/general.d.ts.map +1 -0
  169. package/dist/esm/lib/types/general.js +2 -0
  170. package/dist/esm/lib/types/general.js.map +1 -0
  171. package/dist/esm/lib/types/index.d.ts +5 -0
  172. package/dist/esm/lib/types/index.d.ts.map +1 -0
  173. package/dist/esm/lib/types/index.js +5 -0
  174. package/dist/esm/lib/types/index.js.map +1 -0
  175. package/dist/esm/lib/types/nodes.d.ts +53 -0
  176. package/dist/esm/lib/types/nodes.d.ts.map +1 -0
  177. package/dist/esm/lib/types/nodes.js +2 -0
  178. package/dist/esm/lib/types/nodes.js.map +1 -0
  179. package/dist/esm/lib/types/store.d.ts +71 -0
  180. package/dist/esm/lib/types/store.d.ts.map +1 -0
  181. package/dist/esm/lib/types/store.js +2 -0
  182. package/dist/esm/lib/types/store.js.map +1 -0
  183. package/dist/esm/lib/utils/changes.d.ts +12 -0
  184. package/dist/esm/lib/utils/changes.d.ts.map +1 -0
  185. package/dist/esm/lib/utils/changes.js +134 -0
  186. package/dist/esm/lib/utils/changes.js.map +1 -0
  187. package/dist/esm/lib/utils/index.d.ts +2 -0
  188. package/dist/esm/lib/utils/index.d.ts.map +1 -0
  189. package/dist/esm/lib/utils/index.js +2 -0
  190. package/dist/esm/lib/utils/index.js.map +1 -0
  191. package/dist/esm/lib/utils/type-guards.d.ts +12 -0
  192. package/dist/esm/lib/utils/type-guards.d.ts.map +1 -0
  193. package/dist/esm/lib/utils/type-guards.js +16 -0
  194. package/dist/esm/lib/utils/type-guards.js.map +1 -0
  195. package/dist/style.css +1392 -0
  196. package/package.json +60 -0
@@ -0,0 +1,48 @@
1
+ import { Component, ChangeDetectionStrategy, input } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class EdgeTextComponent {
4
+ constructor() {
5
+ this.x = input(0, ...(ngDevMode ? [{ debugName: "x" }] : /* istanbul ignore next */ []));
6
+ this.y = input(0, ...(ngDevMode ? [{ debugName: "y" }] : /* istanbul ignore next */ []));
7
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
8
+ this.width = input(40, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
9
+ this.height = input(20, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
10
+ }
11
+ static { this.ɵfac = function EdgeTextComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EdgeTextComponent)(); }; }
12
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EdgeTextComponent, selectors: [["ng-flow-edge-text"]], inputs: { x: [1, "x"], y: [1, "y"], label: [1, "label"], width: [1, "width"], height: [1, "height"] }, decls: 4, vars: 5, consts: [["requiredExtensions", "http://www.w3.org/1999/xhtml", 1, "xy-flow__edge-textwrapper"], ["xmlns", "http://www.w3.org/1999/xhtml", 1, "xy-flow__edge-textbg"], [1, "xy-flow__edge-text"]], template: function EdgeTextComponent_Template(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵnamespaceSVG();
14
+ i0.ɵɵdomElementStart(0, "foreignObject", 0);
15
+ i0.ɵɵnamespaceHTML();
16
+ i0.ɵɵdomElementStart(1, "div", 1)(2, "span", 2);
17
+ i0.ɵɵtext(3);
18
+ i0.ɵɵdomElementEnd()()();
19
+ } if (rf & 2) {
20
+ i0.ɵɵattribute("width", ctx.width())("height", ctx.height())("x", ctx.x() - ctx.width() / 2)("y", ctx.y() - ctx.height() / 2);
21
+ i0.ɵɵadvance(3);
22
+ i0.ɵɵtextInterpolate(ctx.label());
23
+ } }, encapsulation: 2, changeDetection: 0 }); }
24
+ }
25
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EdgeTextComponent, [{
26
+ type: Component,
27
+ args: [{
28
+ selector: 'ng-flow-edge-text',
29
+ standalone: true,
30
+ changeDetection: ChangeDetectionStrategy.OnPush,
31
+ template: `
32
+ <foreignObject
33
+ [attr.width]="width()"
34
+ [attr.height]="height()"
35
+ [attr.x]="x() - width() / 2"
36
+ [attr.y]="y() - height() / 2"
37
+ class="xy-flow__edge-textwrapper"
38
+ requiredExtensions="http://www.w3.org/1999/xhtml"
39
+ >
40
+ <div class="xy-flow__edge-textbg" xmlns="http://www.w3.org/1999/xhtml">
41
+ <span class="xy-flow__edge-text">{{ label() }}</span>
42
+ </div>
43
+ </foreignObject>
44
+ `,
45
+ }]
46
+ }], null, { x: [{ type: i0.Input, args: [{ isSignal: true, alias: "x", required: false }] }], y: [{ type: i0.Input, args: [{ isSignal: true, alias: "y", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }] }); })();
47
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EdgeTextComponent, { className: "EdgeTextComponent", filePath: "lib/components/edges/edge-text.component.ts", lineNumber: 22 }); })();
48
+ //# sourceMappingURL=edge-text.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edge-text.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/edge-text.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;AAqB1E,MAAM,OAAO,iBAAiB;IAnB9B;QAoBW,MAAC,GAAG,KAAK,CAAC,CAAC,wEAAC,CAAC;QACb,MAAC,GAAG,KAAK,CAAC,CAAC,wEAAC,CAAC;QACb,UAAK,GAAG,KAAK,sFAAU,CAAC;QACxB,UAAK,GAAG,KAAK,CAAC,EAAE,4EAAC,CAAC;QAClB,WAAM,GAAG,KAAK,CAAC,EAAE,6EAAC,CAAC;KAC7B;kHANY,iBAAiB;oEAAjB,iBAAiB;;YAd1B,2CAOC;;YAEG,AADF,iCAAuE,cACpC;YAAA,YAAa;YAElD,AADE,AADgD,oBAAO,EACjD,EACQ;;;YAFqB,eAAa;YAAb,iCAAa;;;iFAKzC,iBAAiB;cAnB7B,SAAS;eAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;GAaT;aACF;;kFACY,iBAAiB"}
@@ -0,0 +1,21 @@
1
+ import { Position } from '@angflow/system';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SimpleBezierEdgeComponent {
4
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
5
+ readonly sourceX: import("@angular/core").InputSignal<number>;
6
+ readonly sourceY: import("@angular/core").InputSignal<number>;
7
+ readonly targetX: import("@angular/core").InputSignal<number>;
8
+ readonly targetY: import("@angular/core").InputSignal<number>;
9
+ readonly sourcePosition: import("@angular/core").InputSignal<Position>;
10
+ readonly targetPosition: import("@angular/core").InputSignal<Position>;
11
+ readonly data: import("@angular/core").InputSignal<any>;
12
+ readonly selected: import("@angular/core").InputSignal<boolean>;
13
+ readonly markerStart: import("@angular/core").InputSignal<string | undefined>;
14
+ readonly markerEnd: import("@angular/core").InputSignal<string | undefined>;
15
+ readonly interactionWidth: import("@angular/core").InputSignal<number | undefined>;
16
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
17
+ readonly edgePath: import("@angular/core").Signal<string>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SimpleBezierEdgeComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SimpleBezierEdgeComponent, "ng-flow-simple-bezier-edge", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "sourceX": { "alias": "sourceX"; "required": false; "isSignal": true; }; "sourceY": { "alias": "sourceY"; "required": false; "isSignal": true; }; "targetX": { "alias": "targetX"; "required": false; "isSignal": true; }; "targetY": { "alias": "targetY"; "required": false; "isSignal": true; }; "sourcePosition": { "alias": "sourcePosition"; "required": false; "isSignal": true; }; "targetPosition": { "alias": "targetPosition"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "markerStart": { "alias": "markerStart"; "required": false; "isSignal": true; }; "markerEnd": { "alias": "markerEnd"; "required": false; "isSignal": true; }; "interactionWidth": { "alias": "interactionWidth"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
+ }
21
+ //# sourceMappingURL=simple-bezier-edge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-bezier-edge.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edges/simple-bezier-edge.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAG1D,qBAca,yBAAyB;IACpC,QAAQ,CAAC,EAAE,0DAAmB;IAC9B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,cAAc,gDAAoC;IAC3D,QAAQ,CAAC,cAAc,gDAAiC;IACxD,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,WAAW,0DAAmB;IACvC,QAAQ,CAAC,SAAS,0DAAmB;IACrC,QAAQ,CAAC,gBAAgB,0DAAmB;IAC5C,QAAQ,CAAC,KAAK,0DAAmB;IAEjC,QAAQ,CAAC,QAAQ,yCAUd;yCAzBQ,yBAAyB;2CAAzB,yBAAyB;CA0BrC"}
@@ -0,0 +1,57 @@
1
+ import { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';
2
+ import { getBezierPath, Position } from '@angflow/system';
3
+ import { BaseEdgeComponent } from './base-edge.component';
4
+ import * as i0 from "@angular/core";
5
+ export class SimpleBezierEdgeComponent {
6
+ constructor() {
7
+ this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
8
+ this.sourceX = input(0, ...(ngDevMode ? [{ debugName: "sourceX" }] : /* istanbul ignore next */ []));
9
+ this.sourceY = input(0, ...(ngDevMode ? [{ debugName: "sourceY" }] : /* istanbul ignore next */ []));
10
+ this.targetX = input(0, ...(ngDevMode ? [{ debugName: "targetX" }] : /* istanbul ignore next */ []));
11
+ this.targetY = input(0, ...(ngDevMode ? [{ debugName: "targetY" }] : /* istanbul ignore next */ []));
12
+ this.sourcePosition = input(Position.Bottom, ...(ngDevMode ? [{ debugName: "sourcePosition" }] : /* istanbul ignore next */ []));
13
+ this.targetPosition = input(Position.Top, ...(ngDevMode ? [{ debugName: "targetPosition" }] : /* istanbul ignore next */ []));
14
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
15
+ this.selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
16
+ this.markerStart = input(...(ngDevMode ? [undefined, { debugName: "markerStart" }] : /* istanbul ignore next */ []));
17
+ this.markerEnd = input(...(ngDevMode ? [undefined, { debugName: "markerEnd" }] : /* istanbul ignore next */ []));
18
+ this.interactionWidth = input(...(ngDevMode ? [undefined, { debugName: "interactionWidth" }] : /* istanbul ignore next */ []));
19
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
20
+ this.edgePath = computed(() => {
21
+ const [path] = getBezierPath({
22
+ sourceX: this.sourceX(),
23
+ sourceY: this.sourceY(),
24
+ targetX: this.targetX(),
25
+ targetY: this.targetY(),
26
+ sourcePosition: this.sourcePosition(),
27
+ targetPosition: this.targetPosition(),
28
+ });
29
+ return path;
30
+ }, ...(ngDevMode ? [{ debugName: "edgePath" }] : /* istanbul ignore next */ []));
31
+ }
32
+ static { this.ɵfac = function SimpleBezierEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SimpleBezierEdgeComponent)(); }; }
33
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SimpleBezierEdgeComponent, selectors: [["ng-flow-simple-bezier-edge"]], inputs: { id: [1, "id"], sourceX: [1, "sourceX"], sourceY: [1, "sourceY"], targetX: [1, "targetX"], targetY: [1, "targetY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], data: [1, "data"], selected: [1, "selected"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], interactionWidth: [1, "interactionWidth"], label: [1, "label"] }, decls: 1, vars: 4, consts: [[3, "path", "markerStart", "markerEnd", "interactionWidth"]], template: function SimpleBezierEdgeComponent_Template(rf, ctx) { if (rf & 1) {
34
+ i0.ɵɵelement(0, "ng-flow-base-edge", 0);
35
+ } if (rf & 2) {
36
+ i0.ɵɵproperty("path", ctx.edgePath())("markerStart", ctx.markerStart())("markerEnd", ctx.markerEnd())("interactionWidth", ctx.interactionWidth() ?? 20);
37
+ } }, dependencies: [BaseEdgeComponent], encapsulation: 2, changeDetection: 0 }); }
38
+ }
39
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SimpleBezierEdgeComponent, [{
40
+ type: Component,
41
+ args: [{
42
+ selector: 'ng-flow-simple-bezier-edge',
43
+ standalone: true,
44
+ imports: [BaseEdgeComponent],
45
+ changeDetection: ChangeDetectionStrategy.OnPush,
46
+ template: `
47
+ <ng-flow-base-edge
48
+ [path]="edgePath()"
49
+ [markerStart]="markerStart()"
50
+ [markerEnd]="markerEnd()"
51
+ [interactionWidth]="interactionWidth() ?? 20"
52
+ />
53
+ `,
54
+ }]
55
+ }], null, { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] }); })();
56
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SimpleBezierEdgeComponent, { className: "SimpleBezierEdgeComponent", filePath: "lib/components/edges/simple-bezier-edge.component.ts", lineNumber: 19 }); })();
57
+ //# sourceMappingURL=simple-bezier-edge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-bezier-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/simple-bezier-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAgB1D,MAAM,OAAO,yBAAyB;IAdtC;QAeW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,MAAM,qFAAC,CAAC;QAClD,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,GAAG,qFAAC,CAAC;QAC/C,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,qBAAgB,GAAG,KAAK,iGAAU,CAAC;QACnC,UAAK,GAAG,KAAK,sFAAU,CAAC;QAExB,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC;gBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;gBACrC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;aACtC,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC,+EAAC,CAAC;KACJ;0HA1BY,yBAAyB;oEAAzB,yBAAyB;YARlC,uCAKE;;YADA,AADA,AADA,AADA,qCAAmB,kCACU,8BACJ,kDACoB;4BAPvC,iBAAiB;;iFAWhB,yBAAyB;cAdrC,SAAS;eAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;GAOT;aACF;;kFACY,yBAAyB"}
@@ -0,0 +1,22 @@
1
+ import { Position, type SmoothStepPathOptions } from '@angflow/system';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SmoothStepEdgeComponent {
4
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
5
+ readonly sourceX: import("@angular/core").InputSignal<number>;
6
+ readonly sourceY: import("@angular/core").InputSignal<number>;
7
+ readonly targetX: import("@angular/core").InputSignal<number>;
8
+ readonly targetY: import("@angular/core").InputSignal<number>;
9
+ readonly sourcePosition: import("@angular/core").InputSignal<Position>;
10
+ readonly targetPosition: import("@angular/core").InputSignal<Position>;
11
+ readonly data: import("@angular/core").InputSignal<any>;
12
+ readonly selected: import("@angular/core").InputSignal<boolean>;
13
+ readonly markerStart: import("@angular/core").InputSignal<string | undefined>;
14
+ readonly markerEnd: import("@angular/core").InputSignal<string | undefined>;
15
+ readonly interactionWidth: import("@angular/core").InputSignal<number | undefined>;
16
+ readonly pathOptions: import("@angular/core").InputSignal<SmoothStepPathOptions | undefined>;
17
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
18
+ readonly edgePath: import("@angular/core").Signal<string>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmoothStepEdgeComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmoothStepEdgeComponent, "ng-flow-smooth-step-edge", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "sourceX": { "alias": "sourceX"; "required": false; "isSignal": true; }; "sourceY": { "alias": "sourceY"; "required": false; "isSignal": true; }; "targetX": { "alias": "targetX"; "required": false; "isSignal": true; }; "targetY": { "alias": "targetY"; "required": false; "isSignal": true; }; "sourcePosition": { "alias": "sourcePosition"; "required": false; "isSignal": true; }; "targetPosition": { "alias": "targetPosition"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "markerStart": { "alias": "markerStart"; "required": false; "isSignal": true; }; "markerEnd": { "alias": "markerEnd"; "required": false; "isSignal": true; }; "interactionWidth": { "alias": "interactionWidth"; "required": false; "isSignal": true; }; "pathOptions": { "alias": "pathOptions"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
+ }
22
+ //# sourceMappingURL=smooth-step-edge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smooth-step-edge.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edges/smooth-step-edge.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;;AAG1F,qBAca,uBAAuB;IAClC,QAAQ,CAAC,EAAE,0DAAmB;IAC9B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,cAAc,gDAAoC;IAC3D,QAAQ,CAAC,cAAc,gDAAiC;IACxD,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,WAAW,0DAAmB;IACvC,QAAQ,CAAC,SAAS,0DAAmB;IACrC,QAAQ,CAAC,gBAAgB,0DAAmB;IAC5C,QAAQ,CAAC,WAAW,yEAAkC;IACtD,QAAQ,CAAC,KAAK,0DAAmB;IAEjC,QAAQ,CAAC,QAAQ,yCAWd;yCA3BQ,uBAAuB;2CAAvB,uBAAuB;CA4BnC"}
@@ -0,0 +1,59 @@
1
+ import { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';
2
+ import { getSmoothStepPath, Position } from '@angflow/system';
3
+ import { BaseEdgeComponent } from './base-edge.component';
4
+ import * as i0 from "@angular/core";
5
+ export class SmoothStepEdgeComponent {
6
+ constructor() {
7
+ this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
8
+ this.sourceX = input(0, ...(ngDevMode ? [{ debugName: "sourceX" }] : /* istanbul ignore next */ []));
9
+ this.sourceY = input(0, ...(ngDevMode ? [{ debugName: "sourceY" }] : /* istanbul ignore next */ []));
10
+ this.targetX = input(0, ...(ngDevMode ? [{ debugName: "targetX" }] : /* istanbul ignore next */ []));
11
+ this.targetY = input(0, ...(ngDevMode ? [{ debugName: "targetY" }] : /* istanbul ignore next */ []));
12
+ this.sourcePosition = input(Position.Bottom, ...(ngDevMode ? [{ debugName: "sourcePosition" }] : /* istanbul ignore next */ []));
13
+ this.targetPosition = input(Position.Top, ...(ngDevMode ? [{ debugName: "targetPosition" }] : /* istanbul ignore next */ []));
14
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
15
+ this.selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
16
+ this.markerStart = input(...(ngDevMode ? [undefined, { debugName: "markerStart" }] : /* istanbul ignore next */ []));
17
+ this.markerEnd = input(...(ngDevMode ? [undefined, { debugName: "markerEnd" }] : /* istanbul ignore next */ []));
18
+ this.interactionWidth = input(...(ngDevMode ? [undefined, { debugName: "interactionWidth" }] : /* istanbul ignore next */ []));
19
+ this.pathOptions = input(...(ngDevMode ? [undefined, { debugName: "pathOptions" }] : /* istanbul ignore next */ []));
20
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
21
+ this.edgePath = computed(() => {
22
+ const [path] = getSmoothStepPath({
23
+ sourceX: this.sourceX(),
24
+ sourceY: this.sourceY(),
25
+ targetX: this.targetX(),
26
+ targetY: this.targetY(),
27
+ sourcePosition: this.sourcePosition(),
28
+ targetPosition: this.targetPosition(),
29
+ ...this.pathOptions(),
30
+ });
31
+ return path;
32
+ }, ...(ngDevMode ? [{ debugName: "edgePath" }] : /* istanbul ignore next */ []));
33
+ }
34
+ static { this.ɵfac = function SmoothStepEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SmoothStepEdgeComponent)(); }; }
35
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SmoothStepEdgeComponent, selectors: [["ng-flow-smooth-step-edge"]], inputs: { id: [1, "id"], sourceX: [1, "sourceX"], sourceY: [1, "sourceY"], targetX: [1, "targetX"], targetY: [1, "targetY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], data: [1, "data"], selected: [1, "selected"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], interactionWidth: [1, "interactionWidth"], pathOptions: [1, "pathOptions"], label: [1, "label"] }, decls: 1, vars: 4, consts: [[3, "path", "markerStart", "markerEnd", "interactionWidth"]], template: function SmoothStepEdgeComponent_Template(rf, ctx) { if (rf & 1) {
36
+ i0.ɵɵelement(0, "ng-flow-base-edge", 0);
37
+ } if (rf & 2) {
38
+ i0.ɵɵproperty("path", ctx.edgePath())("markerStart", ctx.markerStart())("markerEnd", ctx.markerEnd())("interactionWidth", ctx.interactionWidth() ?? 20);
39
+ } }, dependencies: [BaseEdgeComponent], encapsulation: 2, changeDetection: 0 }); }
40
+ }
41
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmoothStepEdgeComponent, [{
42
+ type: Component,
43
+ args: [{
44
+ selector: 'ng-flow-smooth-step-edge',
45
+ standalone: true,
46
+ imports: [BaseEdgeComponent],
47
+ changeDetection: ChangeDetectionStrategy.OnPush,
48
+ template: `
49
+ <ng-flow-base-edge
50
+ [path]="edgePath()"
51
+ [markerStart]="markerStart()"
52
+ [markerEnd]="markerEnd()"
53
+ [interactionWidth]="interactionWidth() ?? 20"
54
+ />
55
+ `,
56
+ }]
57
+ }], null, { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], pathOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathOptions", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] }); })();
58
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SmoothStepEdgeComponent, { className: "SmoothStepEdgeComponent", filePath: "lib/components/edges/smooth-step-edge.component.ts", lineNumber: 19 }); })();
59
+ //# sourceMappingURL=smooth-step-edge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smooth-step-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/smooth-step-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAA8B,MAAM,iBAAiB,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAgB1D,MAAM,OAAO,uBAAuB;IAdpC;QAeW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,MAAM,qFAAC,CAAC;QAClD,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,GAAG,qFAAC,CAAC;QAC/C,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,qBAAgB,GAAG,KAAK,iGAAU,CAAC;QACnC,gBAAW,GAAG,KAAK,4FAAyB,CAAC;QAC7C,UAAK,GAAG,KAAK,sFAAU,CAAC;QAExB,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC;gBAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;gBACrC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;gBACrC,GAAG,IAAI,CAAC,WAAW,EAAE;aACtB,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC,+EAAC,CAAC;KACJ;wHA5BY,uBAAuB;oEAAvB,uBAAuB;YARhC,uCAKE;;YADA,AADA,AADA,AADA,qCAAmB,kCACU,8BACJ,kDACoB;4BAPvC,iBAAiB;;iFAWhB,uBAAuB;cAdnC,SAAS;eAAC;gBACT,QAAQ,EAAE,0BAA0B;gBACpC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;GAOT;aACF;;kFACY,uBAAuB"}
@@ -0,0 +1,22 @@
1
+ import { Position, type StepPathOptions } from '@angflow/system';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StepEdgeComponent {
4
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
5
+ readonly sourceX: import("@angular/core").InputSignal<number>;
6
+ readonly sourceY: import("@angular/core").InputSignal<number>;
7
+ readonly targetX: import("@angular/core").InputSignal<number>;
8
+ readonly targetY: import("@angular/core").InputSignal<number>;
9
+ readonly sourcePosition: import("@angular/core").InputSignal<Position>;
10
+ readonly targetPosition: import("@angular/core").InputSignal<Position>;
11
+ readonly data: import("@angular/core").InputSignal<any>;
12
+ readonly selected: import("@angular/core").InputSignal<boolean>;
13
+ readonly markerStart: import("@angular/core").InputSignal<string | undefined>;
14
+ readonly markerEnd: import("@angular/core").InputSignal<string | undefined>;
15
+ readonly interactionWidth: import("@angular/core").InputSignal<number | undefined>;
16
+ readonly pathOptions: import("@angular/core").InputSignal<StepPathOptions | undefined>;
17
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
18
+ readonly edgePath: import("@angular/core").Signal<string>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepEdgeComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepEdgeComponent, "ng-flow-step-edge", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "sourceX": { "alias": "sourceX"; "required": false; "isSignal": true; }; "sourceY": { "alias": "sourceY"; "required": false; "isSignal": true; }; "targetX": { "alias": "targetX"; "required": false; "isSignal": true; }; "targetY": { "alias": "targetY"; "required": false; "isSignal": true; }; "sourcePosition": { "alias": "sourcePosition"; "required": false; "isSignal": true; }; "targetPosition": { "alias": "targetPosition"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "markerStart": { "alias": "markerStart"; "required": false; "isSignal": true; }; "markerEnd": { "alias": "markerEnd"; "required": false; "isSignal": true; }; "interactionWidth": { "alias": "interactionWidth"; "required": false; "isSignal": true; }; "pathOptions": { "alias": "pathOptions"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
+ }
22
+ //# sourceMappingURL=step-edge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-edge.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edges/step-edge.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;;AAGpF,qBAca,iBAAiB;IAC5B,QAAQ,CAAC,EAAE,0DAAmB;IAC9B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,cAAc,gDAAoC;IAC3D,QAAQ,CAAC,cAAc,gDAAiC;IACxD,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,WAAW,0DAAmB;IACvC,QAAQ,CAAC,SAAS,0DAAmB;IACrC,QAAQ,CAAC,gBAAgB,0DAAmB;IAC5C,QAAQ,CAAC,WAAW,mEAA4B;IAChD,QAAQ,CAAC,KAAK,0DAAmB;IAEjC,QAAQ,CAAC,QAAQ,yCAYd;yCA5BQ,iBAAiB;2CAAjB,iBAAiB;CA6B7B"}
@@ -0,0 +1,60 @@
1
+ import { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';
2
+ import { getSmoothStepPath, Position } from '@angflow/system';
3
+ import { BaseEdgeComponent } from './base-edge.component';
4
+ import * as i0 from "@angular/core";
5
+ export class StepEdgeComponent {
6
+ constructor() {
7
+ this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
8
+ this.sourceX = input(0, ...(ngDevMode ? [{ debugName: "sourceX" }] : /* istanbul ignore next */ []));
9
+ this.sourceY = input(0, ...(ngDevMode ? [{ debugName: "sourceY" }] : /* istanbul ignore next */ []));
10
+ this.targetX = input(0, ...(ngDevMode ? [{ debugName: "targetX" }] : /* istanbul ignore next */ []));
11
+ this.targetY = input(0, ...(ngDevMode ? [{ debugName: "targetY" }] : /* istanbul ignore next */ []));
12
+ this.sourcePosition = input(Position.Bottom, ...(ngDevMode ? [{ debugName: "sourcePosition" }] : /* istanbul ignore next */ []));
13
+ this.targetPosition = input(Position.Top, ...(ngDevMode ? [{ debugName: "targetPosition" }] : /* istanbul ignore next */ []));
14
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
15
+ this.selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
16
+ this.markerStart = input(...(ngDevMode ? [undefined, { debugName: "markerStart" }] : /* istanbul ignore next */ []));
17
+ this.markerEnd = input(...(ngDevMode ? [undefined, { debugName: "markerEnd" }] : /* istanbul ignore next */ []));
18
+ this.interactionWidth = input(...(ngDevMode ? [undefined, { debugName: "interactionWidth" }] : /* istanbul ignore next */ []));
19
+ this.pathOptions = input(...(ngDevMode ? [undefined, { debugName: "pathOptions" }] : /* istanbul ignore next */ []));
20
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
21
+ this.edgePath = computed(() => {
22
+ const [path] = getSmoothStepPath({
23
+ sourceX: this.sourceX(),
24
+ sourceY: this.sourceY(),
25
+ targetX: this.targetX(),
26
+ targetY: this.targetY(),
27
+ sourcePosition: this.sourcePosition(),
28
+ targetPosition: this.targetPosition(),
29
+ borderRadius: 0,
30
+ ...this.pathOptions(),
31
+ });
32
+ return path;
33
+ }, ...(ngDevMode ? [{ debugName: "edgePath" }] : /* istanbul ignore next */ []));
34
+ }
35
+ static { this.ɵfac = function StepEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StepEdgeComponent)(); }; }
36
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StepEdgeComponent, selectors: [["ng-flow-step-edge"]], inputs: { id: [1, "id"], sourceX: [1, "sourceX"], sourceY: [1, "sourceY"], targetX: [1, "targetX"], targetY: [1, "targetY"], sourcePosition: [1, "sourcePosition"], targetPosition: [1, "targetPosition"], data: [1, "data"], selected: [1, "selected"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], interactionWidth: [1, "interactionWidth"], pathOptions: [1, "pathOptions"], label: [1, "label"] }, decls: 1, vars: 4, consts: [[3, "path", "markerStart", "markerEnd", "interactionWidth"]], template: function StepEdgeComponent_Template(rf, ctx) { if (rf & 1) {
37
+ i0.ɵɵelement(0, "ng-flow-base-edge", 0);
38
+ } if (rf & 2) {
39
+ i0.ɵɵproperty("path", ctx.edgePath())("markerStart", ctx.markerStart())("markerEnd", ctx.markerEnd())("interactionWidth", ctx.interactionWidth() ?? 20);
40
+ } }, dependencies: [BaseEdgeComponent], encapsulation: 2, changeDetection: 0 }); }
41
+ }
42
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StepEdgeComponent, [{
43
+ type: Component,
44
+ args: [{
45
+ selector: 'ng-flow-step-edge',
46
+ standalone: true,
47
+ imports: [BaseEdgeComponent],
48
+ changeDetection: ChangeDetectionStrategy.OnPush,
49
+ template: `
50
+ <ng-flow-base-edge
51
+ [path]="edgePath()"
52
+ [markerStart]="markerStart()"
53
+ [markerEnd]="markerEnd()"
54
+ [interactionWidth]="interactionWidth() ?? 20"
55
+ />
56
+ `,
57
+ }]
58
+ }], null, { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], sourcePosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcePosition", required: false }] }], targetPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetPosition", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], pathOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathOptions", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] }); })();
59
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StepEdgeComponent, { className: "StepEdgeComponent", filePath: "lib/components/edges/step-edge.component.ts", lineNumber: 19 }); })();
60
+ //# sourceMappingURL=step-edge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/step-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAwB,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAgB1D,MAAM,OAAO,iBAAiB;IAd9B;QAeW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,MAAM,qFAAC,CAAC;QAClD,mBAAc,GAAG,KAAK,CAAW,QAAQ,CAAC,GAAG,qFAAC,CAAC;QAC/C,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,qBAAgB,GAAG,KAAK,iGAAU,CAAC;QACnC,gBAAW,GAAG,KAAK,4FAAmB,CAAC;QACvC,UAAK,GAAG,KAAK,sFAAU,CAAC;QAExB,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC;gBAC/B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;gBACrC,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE;gBACrC,YAAY,EAAE,CAAC;gBACf,GAAG,IAAI,CAAC,WAAW,EAAE;aACtB,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC,+EAAC,CAAC;KACJ;kHA7BY,iBAAiB;oEAAjB,iBAAiB;YAR1B,uCAKE;;YADA,AADA,AADA,AADA,qCAAmB,kCACU,8BACJ,kDACoB;4BAPvC,iBAAiB;;iFAWhB,iBAAiB;cAd7B,SAAS;eAAC;gBACT,QAAQ,EAAE,mBAAmB;gBAC7B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;GAOT;aACF;;kFACY,iBAAiB"}
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class StraightEdgeComponent {
3
+ readonly id: import("@angular/core").InputSignal<string | undefined>;
4
+ readonly sourceX: import("@angular/core").InputSignal<number>;
5
+ readonly sourceY: import("@angular/core").InputSignal<number>;
6
+ readonly targetX: import("@angular/core").InputSignal<number>;
7
+ readonly targetY: import("@angular/core").InputSignal<number>;
8
+ readonly data: import("@angular/core").InputSignal<any>;
9
+ readonly selected: import("@angular/core").InputSignal<boolean>;
10
+ readonly markerStart: import("@angular/core").InputSignal<string | undefined>;
11
+ readonly markerEnd: import("@angular/core").InputSignal<string | undefined>;
12
+ readonly interactionWidth: import("@angular/core").InputSignal<number | undefined>;
13
+ readonly label: import("@angular/core").InputSignal<string | undefined>;
14
+ readonly edgePath: import("@angular/core").Signal<string>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<StraightEdgeComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<StraightEdgeComponent, "ng-flow-straight-edge", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "sourceX": { "alias": "sourceX"; "required": false; "isSignal": true; }; "sourceY": { "alias": "sourceY"; "required": false; "isSignal": true; }; "targetX": { "alias": "targetX"; "required": false; "isSignal": true; }; "targetY": { "alias": "targetY"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "markerStart": { "alias": "markerStart"; "required": false; "isSignal": true; }; "markerEnd": { "alias": "markerEnd"; "required": false; "isSignal": true; }; "interactionWidth": { "alias": "interactionWidth"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
+ }
18
+ //# sourceMappingURL=straight-edge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"straight-edge.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/edges/straight-edge.component.ts"],"names":[],"mappings":";AAIA,qBAca,qBAAqB;IAChC,QAAQ,CAAC,EAAE,0DAAmB;IAC9B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,OAAO,8CAAY;IAC5B,QAAQ,CAAC,IAAI,2CAAgB;IAC7B,QAAQ,CAAC,QAAQ,+CAAgB;IACjC,QAAQ,CAAC,WAAW,0DAAmB;IACvC,QAAQ,CAAC,SAAS,0DAAmB;IACrC,QAAQ,CAAC,gBAAgB,0DAAmB;IAC5C,QAAQ,CAAC,KAAK,0DAAmB;IAEjC,QAAQ,CAAC,QAAQ,yCAQd;yCArBQ,qBAAqB;2CAArB,qBAAqB;CAsBjC"}
@@ -0,0 +1,53 @@
1
+ import { Component, ChangeDetectionStrategy, input, computed } from '@angular/core';
2
+ import { getStraightPath } from '@angflow/system';
3
+ import { BaseEdgeComponent } from './base-edge.component';
4
+ import * as i0 from "@angular/core";
5
+ export class StraightEdgeComponent {
6
+ constructor() {
7
+ this.id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
8
+ this.sourceX = input(0, ...(ngDevMode ? [{ debugName: "sourceX" }] : /* istanbul ignore next */ []));
9
+ this.sourceY = input(0, ...(ngDevMode ? [{ debugName: "sourceY" }] : /* istanbul ignore next */ []));
10
+ this.targetX = input(0, ...(ngDevMode ? [{ debugName: "targetX" }] : /* istanbul ignore next */ []));
11
+ this.targetY = input(0, ...(ngDevMode ? [{ debugName: "targetY" }] : /* istanbul ignore next */ []));
12
+ this.data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
13
+ this.selected = input(false, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
14
+ this.markerStart = input(...(ngDevMode ? [undefined, { debugName: "markerStart" }] : /* istanbul ignore next */ []));
15
+ this.markerEnd = input(...(ngDevMode ? [undefined, { debugName: "markerEnd" }] : /* istanbul ignore next */ []));
16
+ this.interactionWidth = input(...(ngDevMode ? [undefined, { debugName: "interactionWidth" }] : /* istanbul ignore next */ []));
17
+ this.label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
18
+ this.edgePath = computed(() => {
19
+ const [path] = getStraightPath({
20
+ sourceX: this.sourceX(),
21
+ sourceY: this.sourceY(),
22
+ targetX: this.targetX(),
23
+ targetY: this.targetY(),
24
+ });
25
+ return path;
26
+ }, ...(ngDevMode ? [{ debugName: "edgePath" }] : /* istanbul ignore next */ []));
27
+ }
28
+ static { this.ɵfac = function StraightEdgeComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || StraightEdgeComponent)(); }; }
29
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: StraightEdgeComponent, selectors: [["ng-flow-straight-edge"]], inputs: { id: [1, "id"], sourceX: [1, "sourceX"], sourceY: [1, "sourceY"], targetX: [1, "targetX"], targetY: [1, "targetY"], data: [1, "data"], selected: [1, "selected"], markerStart: [1, "markerStart"], markerEnd: [1, "markerEnd"], interactionWidth: [1, "interactionWidth"], label: [1, "label"] }, decls: 1, vars: 4, consts: [[3, "path", "markerStart", "markerEnd", "interactionWidth"]], template: function StraightEdgeComponent_Template(rf, ctx) { if (rf & 1) {
30
+ i0.ɵɵelement(0, "ng-flow-base-edge", 0);
31
+ } if (rf & 2) {
32
+ i0.ɵɵproperty("path", ctx.edgePath())("markerStart", ctx.markerStart())("markerEnd", ctx.markerEnd())("interactionWidth", ctx.interactionWidth() ?? 20);
33
+ } }, dependencies: [BaseEdgeComponent], encapsulation: 2, changeDetection: 0 }); }
34
+ }
35
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StraightEdgeComponent, [{
36
+ type: Component,
37
+ args: [{
38
+ selector: 'ng-flow-straight-edge',
39
+ standalone: true,
40
+ imports: [BaseEdgeComponent],
41
+ changeDetection: ChangeDetectionStrategy.OnPush,
42
+ template: `
43
+ <ng-flow-base-edge
44
+ [path]="edgePath()"
45
+ [markerStart]="markerStart()"
46
+ [markerEnd]="markerEnd()"
47
+ [interactionWidth]="interactionWidth() ?? 20"
48
+ />
49
+ `,
50
+ }]
51
+ }], null, { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], sourceX: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceX", required: false }] }], sourceY: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceY", required: false }] }], targetX: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetX", required: false }] }], targetY: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetY", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], markerStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerStart", required: false }] }], markerEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "markerEnd", required: false }] }], interactionWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactionWidth", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] }); })();
52
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StraightEdgeComponent, { className: "StraightEdgeComponent", filePath: "lib/components/edges/straight-edge.component.ts", lineNumber: 19 }); })();
53
+ //# sourceMappingURL=straight-edge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"straight-edge.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/edges/straight-edge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,eAAe,EAAY,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;;AAgB1D,MAAM,OAAO,qBAAqB;IAdlC;QAeW,OAAE,GAAG,KAAK,mFAAU,CAAC;QACrB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC,CAAC,8EAAC,CAAC;QACnB,SAAI,GAAG,KAAK,qFAAO,CAAC;QACpB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,gBAAW,GAAG,KAAK,4FAAU,CAAC;QAC9B,cAAS,GAAG,KAAK,0FAAU,CAAC;QAC5B,qBAAgB,GAAG,KAAK,iGAAU,CAAC;QACnC,UAAK,GAAG,KAAK,sFAAU,CAAC;QAExB,aAAQ,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;aACxB,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC,+EAAC,CAAC;KACJ;sHAtBY,qBAAqB;oEAArB,qBAAqB;YAR9B,uCAKE;;YADA,AADA,AADA,AADA,qCAAmB,kCACU,8BACJ,kDACoB;4BAPvC,iBAAiB;;iFAWhB,qBAAqB;cAdjC,SAAS;eAAC;gBACT,QAAQ,EAAE,uBAAuB;gBACjC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,iBAAiB,CAAC;gBAC5B,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;GAOT;aACF;;kFACY,qBAAqB"}
@@ -0,0 +1,28 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { Position, type HandleType, type Connection } from '@angflow/system';
3
+ import { FlowStore } from '../../services/flow-store.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HandleComponent implements OnInit, OnDestroy {
6
+ readonly Position: typeof Position;
7
+ readonly type: import("@angular/core").InputSignal<HandleType>;
8
+ readonly position: import("@angular/core").InputSignal<Position>;
9
+ readonly handleId: import("@angular/core").InputSignal<string | null>;
10
+ readonly isConnectable: import("@angular/core").InputSignal<boolean>;
11
+ readonly isConnectableStart: import("@angular/core").InputSignal<boolean>;
12
+ readonly isConnectableEnd: import("@angular/core").InputSignal<boolean>;
13
+ readonly isValidConnection: import("@angular/core").InputSignal<((connection: Connection) => boolean) | undefined>;
14
+ /** Emitted when a connection is completed on this handle. */
15
+ readonly handleConnect: import("@angular/core").OutputEmitterRef<Connection>;
16
+ readonly store: FlowStore<import("../../types").Node, import("../../types").Edge>;
17
+ private readonly el;
18
+ nodeId: string;
19
+ readonly dataId: import("@angular/core").Signal<string>;
20
+ constructor(nodeId: string | null);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ onPointerDown(event: MouseEvent | PointerEvent): void;
24
+ onClick(event: MouseEvent): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<HandleComponent, [{ optional: true; }]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<HandleComponent, "ng-flow-handle", never, { "type": { "alias": "type"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "handleId": { "alias": "id"; "required": false; "isSignal": true; }; "isConnectable": { "alias": "isConnectable"; "required": false; "isSignal": true; }; "isConnectableStart": { "alias": "isConnectableStart"; "required": false; "isSignal": true; }; "isConnectableEnd": { "alias": "isConnectableEnd"; "required": false; "isSignal": true; }; "isValidConnection": { "alias": "isValidConnection"; "required": false; "isSignal": true; }; }, { "handleConnect": "onConnect"; }, never, ["*"], true, never>;
27
+ }
28
+ //# sourceMappingURL=handle.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/handle/handle.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,MAAM,EACN,SAAS,EAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAY,KAAK,UAAU,EAAE,KAAK,UAAU,EAAwB,MAAM,iBAAiB,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;;AAG9D,qBA0Ba,eAAgB,YAAW,MAAM,EAAE,SAAS;IACvD,QAAQ,CAAC,QAAQ,kBAAY;IAE7B,QAAQ,CAAC,IAAI,kDAAgC;IAC7C,QAAQ,CAAC,QAAQ,gDAAiC;IAClD,QAAQ,CAAC,QAAQ,qDAA+C;IAChE,QAAQ,CAAC,aAAa,+CAAe;IACrC,QAAQ,CAAC,kBAAkB,+CAAe;IAC1C,QAAQ,CAAC,gBAAgB,+CAAe;IACxC,QAAQ,CAAC,iBAAiB,oDAAuB,UAAU,KAAK,OAAO,eAA0B;IAEjG,6DAA6D;IAC7D,QAAQ,CAAC,aAAa,uDAA8C;IAEpE,QAAQ,CAAC,KAAK,oEAAqB;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAmC;IAGtD,MAAM,EAAE,MAAM,CAAM;IAGpB,QAAQ,CAAC,MAAM,yCAA2F;gBAEjE,MAAM,EAAE,MAAM,GAAG,IAAI;IAI9D,QAAQ,IAAI,IAAI;IAEhB,WAAW,IAAI,IAAI;IAEnB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,GAAG,IAAI;IA8CrD,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCA7ErB,eAAe;2CAAf,eAAe;CA6H3B"}