ngx-vflow 1.12.1 → 1.13.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.
@@ -17,4 +17,5 @@ export interface Edge<T = unknown> extends Connection {
17
17
  end?: Marker;
18
18
  };
19
19
  reconnectable?: boolean | 'source' | 'target';
20
+ floating?: boolean;
20
21
  }
@@ -14,6 +14,7 @@ export declare class EdgeModel implements FlowEntity, Contextable<EdgeContext> {
14
14
  curve: Curve;
15
15
  type: EdgeType;
16
16
  reconnectable: boolean | 'source' | 'target';
17
+ floating: boolean;
17
18
  selected: import("@angular/core").WritableSignal<boolean>;
18
19
  selected$: import("rxjs").Observable<boolean>;
19
20
  renderOrder: import("@angular/core").WritableSignal<number>;
@@ -22,6 +23,10 @@ export declare class EdgeModel implements FlowEntity, Contextable<EdgeContext> {
22
23
  path: import("@angular/core").Signal<import("../interfaces/curve-factory.interface").CurveLayout>;
23
24
  sourceHandle: import("@angular/core").Signal<HandleModel | null>;
24
25
  targetHandle: import("@angular/core").Signal<HandleModel | null>;
26
+ closestHandles: import("@angular/core").Signal<{
27
+ sourceHandle: HandleModel | null;
28
+ targetHandle: HandleModel | null;
29
+ }>;
25
30
  /**
26
31
  * TODO: not reactive
27
32
  */
@@ -27,7 +27,7 @@ export declare class HandleModel {
27
27
  }>;
28
28
  private sizeOffset;
29
29
  hostReference: Element;
30
- template: import("@angular/core").TemplateRef<any> | undefined;
30
+ template: import("@angular/core").TemplateRef<any> | null | undefined;
31
31
  templateContext: {
32
32
  $implicit: {
33
33
  point: import("@angular/core").Signal<{
@@ -18,8 +18,10 @@ export declare class HandleComponent implements OnInit {
18
18
  * Should be used if node has more than one source/target
19
19
  */
20
20
  id: import("@angular/core").InputSignal<string | undefined>;
21
- template: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
21
+ template: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
22
+ offsetX: import("@angular/core").InputSignal<number>;
23
+ offsetY: import("@angular/core").InputSignal<number>;
22
24
  ngOnInit(): void;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<HandleComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<HandleComponent, "handle", never, { "position": { "alias": "position"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<HandleComponent, "handle", never, { "position": { "alias": "position"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
27
  }
@@ -7,9 +7,11 @@ import * as i0 from "@angular/core";
7
7
  export interface NodeHandle {
8
8
  position: Position;
9
9
  type: HandleType;
10
+ userOffsetX: number;
11
+ userOffsetY: number;
10
12
  id?: string;
11
13
  hostReference?: Element;
12
- template?: TemplateRef<any>;
14
+ template?: TemplateRef<any> | null;
13
15
  }
14
16
  export declare class HandleService {
15
17
  readonly node: import("@angular/core").WritableSignal<NodeModel<unknown> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vflow",
3
- "version": "1.12.1",
3
+ "version": "1.13.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://www.ngx-vflow.org/",
6
6
  "author": "Artem Mangilev",
@@ -6,8 +6,10 @@ export declare class HandleMockComponent implements AsInterface<HandleComponent>
6
6
  position: import("@angular/core").InputSignal<Position>;
7
7
  type: import("@angular/core").InputSignal<"target" | "source">;
8
8
  id: import("@angular/core").InputSignal<string | undefined>;
9
- template: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
9
+ template: import("@angular/core").InputSignal<TemplateRef<any> | null | undefined>;
10
+ offsetX: import("@angular/core").InputSignal<number>;
11
+ offsetY: import("@angular/core").InputSignal<number>;
10
12
  ngOnInit(): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<HandleMockComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<HandleMockComponent, "handle", never, { "position": { "alias": "position"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<HandleMockComponent, "handle", never, { "position": { "alias": "position"; "required": true; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
15
  }