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.
- package/esm2022/lib/vflow/components/node/node.component.mjs +3 -3
- package/esm2022/lib/vflow/directives/space-point-context.directive.mjs +3 -3
- package/esm2022/lib/vflow/interfaces/edge.interface.mjs +1 -1
- package/esm2022/lib/vflow/models/edge.model.mjs +68 -19
- package/esm2022/lib/vflow/models/handle.model.mjs +9 -9
- package/esm2022/lib/vflow/public-components/handle/handle.component.mjs +6 -2
- package/esm2022/lib/vflow/services/handle.service.mjs +1 -1
- package/esm2022/testing/component-mocks/handle-mock.component.mjs +4 -2
- package/fesm2022/ngx-vflow-testing.mjs +3 -1
- package/fesm2022/ngx-vflow-testing.mjs.map +1 -1
- package/fesm2022/ngx-vflow.mjs +83 -30
- package/fesm2022/ngx-vflow.mjs.map +1 -1
- package/lib/vflow/interfaces/edge.interface.d.ts +1 -0
- package/lib/vflow/models/edge.model.d.ts +5 -0
- package/lib/vflow/models/handle.model.d.ts +1 -1
- package/lib/vflow/public-components/handle/handle.component.d.ts +4 -2
- package/lib/vflow/services/handle.service.d.ts +3 -1
- package/package.json +1 -1
- package/testing/component-mocks/handle-mock.component.d.ts +4 -2
|
@@ -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
|
@@ -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
|
}
|