@foblex/flow 17.5.8 → 17.6.0
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/domain/css-cls.d.ts +1 -1
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +2 -2
- package/domain/f-connection/create-connection-markers/create-connection-markers.execution.d.ts +2 -5
- package/domain/f-connectors/find-closest-connector/find-closest-connector.execution.d.ts +11 -0
- package/domain/f-connectors/find-closest-connector/find-closest-connector.request.d.ts +8 -0
- package/domain/f-connectors/find-closest-connector/index.d.ts +2 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +25 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.d.ts +8 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.d.ts +2 -0
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.d.ts +13 -0
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.d.ts +6 -0
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.d.ts +2 -0
- package/domain/f-connectors/{i-closest-input.d.ts → i-closest-connector.d.ts} +1 -1
- package/domain/f-connectors/index.d.ts +6 -5
- package/domain/f-connectors/mark-connectable-connectors/index.d.ts +2 -0
- package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.d.ts +10 -0
- package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.d.ts +6 -0
- package/domain/f-connectors/providers.d.ts +6 -5
- package/domain/f-connectors/unmark-connectable-connectors/index.d.ts +2 -0
- package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.d.ts +10 -0
- package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.d.ts +6 -0
- package/domain/f-draggable/providers.d.ts +1 -1
- package/domain/f-selection/select/select.execution.d.ts +2 -2
- package/domain/providers.d.ts +1 -1
- package/esm2022/domain/css-cls.mjs +2 -2
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +3 -3
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers.execution.mjs +17 -18
- package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.execution.mjs +42 -0
- package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.request.mjs +10 -0
- package/esm2022/domain/f-connectors/{find-input-at-position → find-closest-connector}/index.mjs +3 -3
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +93 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.mjs +10 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.mjs +3 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.mjs +38 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.mjs +8 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.mjs +3 -0
- package/esm2022/domain/f-connectors/i-closest-connector.mjs +2 -0
- package/esm2022/domain/f-connectors/index.mjs +7 -6
- package/esm2022/domain/f-connectors/mark-connectable-connectors/index.mjs +3 -0
- package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.mjs +27 -0
- package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.mjs +8 -0
- package/esm2022/domain/f-connectors/providers.mjs +11 -9
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/index.mjs +3 -0
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.mjs +27 -0
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.mjs +8 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +2 -2
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +2 -2
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +5 -5
- package/esm2022/domain/f-selection/select/select.execution.mjs +3 -3
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +2 -2
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +2 -2
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +2 -2
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +3 -3
- package/esm2022/f-canvas/f-canvas.component.mjs +2 -2
- package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +7 -2
- package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +3 -2
- package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-base.mjs +16 -12
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +2 -2
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +4 -4
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +8 -8
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +2 -2
- package/esm2022/f-connection/common/i-has-connection-color.mjs +1 -1
- package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +23 -52
- package/esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs +1 -1
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +21 -48
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +21 -48
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +2 -2
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +2 -2
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +2 -2
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +2 -2
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +6 -6
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +5 -5
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +41 -73
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.mjs +18 -12
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +83 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +82 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.mjs +1 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.mjs +8 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/index.mjs +5 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.mjs +27 -21
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +8 -11
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.mjs +2 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.mjs +17 -0
- package/esm2022/f-draggable/f-drop-to-group/drop-to-group-finalize/f-node-drop-to-group-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +4 -4
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/move-finalize/f-node-move-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-single-select/f-single-select.execution.mjs +2 -2
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +2 -2
- package/esm2022/f-flow/f-flow.component.mjs +9 -5
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +1 -1
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +3 -4
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +7 -9
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +3 -3
- package/esm2022/f-minimap/f-minimap.component.mjs +19 -30
- package/esm2022/f-node/f-group.directive.mjs +6 -9
- package/esm2022/f-node/f-node-base.mjs +1 -1
- package/esm2022/f-node/f-node.directive.mjs +6 -9
- package/esm2022/mixins/change-selection/change-selection.mjs +3 -2
- package/esm2022/mixins/change-selection/i-selectable.mjs +1 -1
- package/f-connection/common/f-connection-base.d.ts +15 -12
- package/f-connection/common/i-has-connection-color.d.ts +3 -2
- package/f-connection/common/i-has-connection-from-to.d.ts +2 -1
- package/f-connection/f-connection/f-connection.component.d.ts +17 -15
- package/f-connection/f-connection-builder/i-f-connection-builder-response.d.ts +1 -0
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +16 -15
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +16 -15
- package/f-connection/providers.d.ts +1 -1
- package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +2 -2
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +11 -17
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.d.ts +9 -6
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.d.ts +27 -0
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.d.ts +28 -0
- package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.d.ts +4 -2
- package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.d.ts +12 -0
- package/f-draggable/f-connection/f-reassign-connection/index.d.ts +4 -0
- package/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.d.ts +6 -6
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.d.ts +0 -1
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.d.ts +1 -0
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.d.ts +5 -0
- package/f-draggable/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
- package/f-draggable/f-node-move/providers.d.ts +1 -1
- package/f-draggable/providers.d.ts +1 -1
- package/f-external-item/domain/providers.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +1 -1
- package/f-minimap/f-minimap-flow.directive.d.ts +4 -4
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +8 -8
- package/f-minimap/providers.d.ts +1 -1
- package/f-node/f-group.directive.d.ts +2 -2
- package/f-node/f-node-base.d.ts +2 -2
- package/f-node/f-node.directive.d.ts +2 -2
- package/f-node/providers.d.ts +2 -2
- package/f-storage/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +599 -493
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/mixins/change-selection/i-selectable.d.ts +2 -1
- package/package.json +1 -1
- package/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.d.ts +0 -11
- package/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.d.ts +0 -8
- package/domain/f-connectors/calculate-closest-input/index.d.ts +0 -2
- package/domain/f-connectors/find-input-at-position/find-input-at-position.execution.d.ts +0 -25
- package/domain/f-connectors/find-input-at-position/find-input-at-position.request.d.ts +0 -9
- package/domain/f-connectors/find-input-at-position/index.d.ts +0 -2
- package/domain/f-connectors/mark-all-can-be-connected-inputs/index.d.ts +0 -2
- package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.d.ts +0 -10
- package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.d.ts +0 -6
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/index.d.ts +0 -2
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.d.ts +0 -10
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.d.ts +0 -6
- package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.mjs +0 -42
- package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.mjs +0 -10
- package/esm2022/domain/f-connectors/calculate-closest-input/index.mjs +0 -3
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +0 -92
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.request.mjs +0 -12
- package/esm2022/domain/f-connectors/i-closest-input.mjs +0 -2
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/index.mjs +0 -3
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.mjs +0 -27
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.mjs +0 -8
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/index.mjs +0 -3
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.mjs +0 -27
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.mjs +0 -8
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnDestroy, OnInit
|
|
2
|
-
import { EFConnectionBehavior, EFConnectionType, FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { EFConnectionBehavior, EFConnectionType, FConnectionDragHandleEndComponent, FConnectionDragHandleStartComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
4
4
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
5
5
|
import { FConnectionBase } from '../common/f-connection-base';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class FConnectionComponent extends FConnectionBase implements OnInit, OnChanges, OnDestroy {
|
|
8
|
-
fId: string
|
|
8
|
+
fId: import("@angular/core").InputSignal<string>;
|
|
9
9
|
fText: string;
|
|
10
10
|
fTextStartOffset: string;
|
|
11
|
-
fStartColor: string
|
|
12
|
-
fEndColor: string
|
|
11
|
+
fStartColor: import("@angular/core").InputSignal<string>;
|
|
12
|
+
fEndColor: import("@angular/core").InputSignal<string>;
|
|
13
13
|
fOutputId: any;
|
|
14
14
|
fInputId: any;
|
|
15
15
|
fRadius: number;
|
|
16
16
|
fOffset: number;
|
|
17
17
|
fBehavior: EFConnectionBehavior;
|
|
18
18
|
fType: EFConnectionType | string;
|
|
19
|
+
fReassignableStart: import("@angular/core").InputSignal<boolean>;
|
|
19
20
|
fDraggingDisabled: boolean;
|
|
20
21
|
fSelectionDisabled: boolean;
|
|
21
|
-
fDefs: ElementRef<SVGDefsElement
|
|
22
|
-
fPath: IConnectionPath
|
|
23
|
-
fGradient: IConnectionGradient
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
fDefs: import("@angular/core").Signal<ElementRef<SVGDefsElement>>;
|
|
23
|
+
fPath: import("@angular/core").Signal<IConnectionPath>;
|
|
24
|
+
fGradient: import("@angular/core").Signal<IConnectionGradient>;
|
|
25
|
+
fDragHandleStart: import("@angular/core").Signal<FConnectionDragHandleStartComponent | undefined>;
|
|
26
|
+
fDragHandleEnd: import("@angular/core").Signal<FConnectionDragHandleEndComponent>;
|
|
27
|
+
fSelection: import("@angular/core").Signal<FConnectionSelectionComponent>;
|
|
28
|
+
fTextComponent: import("@angular/core").Signal<IConnectionText>;
|
|
29
|
+
fConnectionCenter: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
30
|
+
fConnectionCenters: import("@angular/core").Signal<readonly FConnectionCenterDirective[]>;
|
|
29
31
|
get boundingElement(): HTMLElement | SVGElement;
|
|
30
|
-
private _fMediator;
|
|
32
|
+
private readonly _fMediator;
|
|
31
33
|
constructor(elementReference: ElementRef<HTMLElement>, fConnectionFactory: FConnectionFactory);
|
|
32
34
|
ngOnInit(): void;
|
|
33
35
|
ngOnChanges(): void;
|
|
34
36
|
ngOnDestroy(): void;
|
|
35
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "fId": { "alias": "fConnectionId"; "required": false; }; "fText": { "alias": "fText"; "required": false; }; "fTextStartOffset": { "alias": "fTextStartOffset"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fOutputId": { "alias": "fOutputId"; "required": false; }; "fInputId": { "alias": "fInputId"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; "fDraggingDisabled": { "alias": "fReassignDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fSelectionDisabled"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "fId": { "alias": "fConnectionId"; "required": false; "isSignal": true; }; "fText": { "alias": "fText"; "required": false; }; "fTextStartOffset": { "alias": "fTextStartOffset"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; "isSignal": true; }; "fEndColor": { "alias": "fEndColor"; "required": false; "isSignal": true; }; "fOutputId": { "alias": "fOutputId"; "required": false; }; "fInputId": { "alias": "fInputId"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; "fReassignableStart": { "alias": "fReassignableStart"; "required": false; "isSignal": true; }; "fDraggingDisabled": { "alias": "fReassignDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fSelectionDisabled"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
37
39
|
static ngAcceptInputType_fRadius: unknown;
|
|
38
40
|
static ngAcceptInputType_fOffset: unknown;
|
|
39
41
|
static ngAcceptInputType_fBehavior: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit
|
|
2
|
-
import { FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { FConnectionDragHandleEndComponent, FConnectionDragHandleStartComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
@@ -7,11 +7,11 @@ import { FConnectionFactory } from '../f-connection-builder';
|
|
|
7
7
|
import { FConnectionBase } from '../common/f-connection-base';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class FConnectionForCreateComponent extends FConnectionBase implements AfterViewInit, OnInit, OnChanges, OnDestroy {
|
|
10
|
-
fId: string
|
|
10
|
+
fId: import("@angular/core").WritableSignal<string>;
|
|
11
11
|
fText: string;
|
|
12
12
|
fTextStartOffset: string;
|
|
13
|
-
fStartColor: string
|
|
14
|
-
fEndColor: string
|
|
13
|
+
fStartColor: import("@angular/core").InputSignal<string>;
|
|
14
|
+
fEndColor: import("@angular/core").InputSignal<string>;
|
|
15
15
|
fOutputId: string;
|
|
16
16
|
fInputId: string;
|
|
17
17
|
fRadius: number;
|
|
@@ -20,23 +20,24 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
|
|
|
20
20
|
fType: EFConnectionType | string;
|
|
21
21
|
fDraggingDisabled: boolean;
|
|
22
22
|
fSelectionDisabled: boolean;
|
|
23
|
-
fDefs: ElementRef<SVGDefsElement
|
|
24
|
-
fPath: IConnectionPath
|
|
25
|
-
fGradient: IConnectionGradient
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
fDefs: import("@angular/core").Signal<ElementRef<SVGDefsElement>>;
|
|
24
|
+
fPath: import("@angular/core").Signal<IConnectionPath>;
|
|
25
|
+
fGradient: import("@angular/core").Signal<IConnectionGradient>;
|
|
26
|
+
fDragHandleStart: import("@angular/core").Signal<FConnectionDragHandleStartComponent | undefined>;
|
|
27
|
+
fDragHandleEnd: import("@angular/core").Signal<FConnectionDragHandleEndComponent>;
|
|
28
|
+
fSelection: import("@angular/core").Signal<FConnectionSelectionComponent>;
|
|
29
|
+
fTextComponent: import("@angular/core").Signal<IConnectionText>;
|
|
30
|
+
fConnectionCenter: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
31
|
+
fConnectionCenters: import("@angular/core").Signal<readonly FConnectionCenterDirective[]>;
|
|
31
32
|
get boundingElement(): HTMLElement | SVGElement;
|
|
32
|
-
private _fMediator;
|
|
33
|
+
private readonly _fMediator;
|
|
33
34
|
constructor(elementReference: ElementRef<HTMLElement>, fConnectionFactory: FConnectionFactory);
|
|
34
35
|
ngOnInit(): void;
|
|
35
36
|
ngAfterViewInit(): void;
|
|
36
37
|
ngOnChanges(): void;
|
|
37
38
|
ngOnDestroy(): void;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionForCreateComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fStartColor": { "alias": "fStartColor"; "required": false; "isSignal": true; }; "fEndColor": { "alias": "fEndColor"; "required": false; "isSignal": true; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
40
41
|
static ngAcceptInputType_fRadius: unknown;
|
|
41
42
|
static ngAcceptInputType_fOffset: unknown;
|
|
42
43
|
static ngAcceptInputType_fBehavior: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit
|
|
2
|
-
import { FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { FConnectionDragHandleEndComponent, FConnectionDragHandleStartComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
@@ -7,11 +7,11 @@ import { FConnectionFactory } from '../f-connection-builder';
|
|
|
7
7
|
import { FConnectionBase } from '../common/f-connection-base';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class FSnapConnectionComponent extends FConnectionBase implements AfterViewInit, OnInit, OnChanges, OnDestroy {
|
|
10
|
-
fId: string
|
|
10
|
+
fId: import("@angular/core").WritableSignal<string>;
|
|
11
11
|
fText: string;
|
|
12
12
|
fTextStartOffset: string;
|
|
13
|
-
fStartColor: string
|
|
14
|
-
fEndColor: string
|
|
13
|
+
fStartColor: import("@angular/core").InputSignal<string>;
|
|
14
|
+
fEndColor: import("@angular/core").InputSignal<string>;
|
|
15
15
|
fSnapThreshold: number;
|
|
16
16
|
fOutputId: string;
|
|
17
17
|
fInputId: string;
|
|
@@ -21,23 +21,24 @@ export declare class FSnapConnectionComponent extends FConnectionBase implements
|
|
|
21
21
|
fType: EFConnectionType | string;
|
|
22
22
|
fDraggingDisabled: boolean;
|
|
23
23
|
fSelectionDisabled: boolean;
|
|
24
|
-
fDefs: ElementRef<SVGDefsElement
|
|
25
|
-
fPath: IConnectionPath
|
|
26
|
-
fGradient: IConnectionGradient
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
fDefs: import("@angular/core").Signal<ElementRef<SVGDefsElement>>;
|
|
25
|
+
fPath: import("@angular/core").Signal<IConnectionPath>;
|
|
26
|
+
fGradient: import("@angular/core").Signal<IConnectionGradient>;
|
|
27
|
+
fDragHandleStart: import("@angular/core").Signal<FConnectionDragHandleStartComponent | undefined>;
|
|
28
|
+
fDragHandleEnd: import("@angular/core").Signal<FConnectionDragHandleEndComponent>;
|
|
29
|
+
fSelection: import("@angular/core").Signal<FConnectionSelectionComponent>;
|
|
30
|
+
fTextComponent: import("@angular/core").Signal<IConnectionText>;
|
|
31
|
+
fConnectionCenter: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
32
|
+
fConnectionCenters: import("@angular/core").Signal<readonly FConnectionCenterDirective[]>;
|
|
32
33
|
get boundingElement(): HTMLElement | SVGElement;
|
|
33
|
-
private _fMediator;
|
|
34
|
+
private readonly _fMediator;
|
|
34
35
|
constructor(elementReference: ElementRef<HTMLElement>, fConnectionFactory: FConnectionFactory);
|
|
35
36
|
ngOnInit(): void;
|
|
36
37
|
ngAfterViewInit(): void;
|
|
37
38
|
ngOnChanges(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<FSnapConnectionComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FSnapConnectionComponent, "f-snap-connection", never, { "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fSnapThreshold": { "alias": "fSnapThreshold"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FSnapConnectionComponent, "f-snap-connection", never, { "fStartColor": { "alias": "fStartColor"; "required": false; "isSignal": true; }; "fEndColor": { "alias": "fEndColor"; "required": false; "isSignal": true; }; "fSnapThreshold": { "alias": "fSnapThreshold"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
41
42
|
static ngAcceptInputType_fSnapThreshold: unknown;
|
|
42
43
|
static ngAcceptInputType_fRadius: unknown;
|
|
43
44
|
static ngAcceptInputType_fOffset: unknown;
|
|
@@ -4,4 +4,4 @@ import { FConnectionCenterDirective } from './f-connection-center';
|
|
|
4
4
|
import { FConnectionForCreateComponent } from './f-connection-for-create';
|
|
5
5
|
import { FMarkerDirective } from './f-marker';
|
|
6
6
|
import { FSnapConnectionComponent } from './f-snap-connection';
|
|
7
|
-
export declare const F_CONNECTION_PROVIDERS: (typeof
|
|
7
|
+
export declare const F_CONNECTION_PROVIDERS: (typeof FConnectionSelectionComponent | typeof FConnectionCenterDirective | typeof FSnapConnectionComponent | typeof FConnectionComponent | typeof FConnectionForCreateComponent | typeof FConnectionPathComponent | typeof FConnectionGradientComponent | typeof FConnectionTextComponent | typeof FConnectionTextPathDirective | typeof FMarkerDirective)[];
|
|
@@ -2,8 +2,8 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { IsConnectionUnderNodeRequest } from './is-connection-under-node.request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class IsConnectionUnderNodeExecution implements IExecution<IsConnectionUnderNodeRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
7
|
handle(request: IsConnectionUnderNodeRequest): void;
|
|
8
8
|
private _getOutputConnectors;
|
|
9
9
|
private _getInputConnectors;
|
package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts
CHANGED
|
@@ -3,29 +3,23 @@ import { FConnectionBase } from '../../../f-connection';
|
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
4
|
import { Injector } from '@angular/core';
|
|
5
5
|
export declare class FReassignConnectionDragHandler implements IFDragHandler {
|
|
6
|
-
private
|
|
6
|
+
private _connection;
|
|
7
|
+
private _isTargetDragHandle;
|
|
7
8
|
fEventType: string;
|
|
8
9
|
fData: any;
|
|
9
10
|
private readonly _fResult;
|
|
10
11
|
private readonly _fMediator;
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly _toConnectorRect;
|
|
12
|
+
private readonly _store;
|
|
13
13
|
private get _fSnapConnection();
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private get
|
|
18
|
-
private
|
|
19
|
-
constructor(_injector: Injector,
|
|
14
|
+
private get _sourceConnector();
|
|
15
|
+
private get _targetConnector();
|
|
16
|
+
private get _sourceConnectorAndRect();
|
|
17
|
+
private get _targetConnectorAndRect();
|
|
18
|
+
private _reassignHandler;
|
|
19
|
+
constructor(_injector: Injector, _connection: FConnectionBase, _isTargetDragHandle: boolean);
|
|
20
|
+
private _sourceDragHandler;
|
|
21
|
+
private _targetDragHandler;
|
|
20
22
|
prepareDragSequence(): void;
|
|
21
|
-
private _getAndMarkCanBeConnectedInputs;
|
|
22
|
-
private _initializeSnapConnection;
|
|
23
23
|
onPointerMove(difference: IPoint): void;
|
|
24
|
-
private _drawConnection;
|
|
25
|
-
private _getLineToPointer;
|
|
26
|
-
private _drawSnapConnection;
|
|
27
|
-
private _getLineToClosestInput;
|
|
28
|
-
private _findClosestInput;
|
|
29
|
-
private _getClosestInputForSnapConnection;
|
|
30
24
|
onPointerUp(): void;
|
|
31
25
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/2d';
|
|
2
2
|
export declare class FReassignConnectionEvent {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
connectionId: string;
|
|
4
|
+
isSourceReassign: boolean;
|
|
5
|
+
isTargetReassign: boolean;
|
|
6
|
+
oldSourceId: string;
|
|
7
|
+
newSourceId: string | undefined;
|
|
8
|
+
oldTargetId: string;
|
|
9
|
+
newTargetId: string | undefined;
|
|
10
|
+
dropPoint: IPoint;
|
|
11
|
+
constructor(connectionId: string, isSourceReassign: boolean, isTargetReassign: boolean, oldSourceId: string, newSourceId: string | undefined, oldTargetId: string, newTargetId: string | undefined, dropPoint: IPoint);
|
|
9
12
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FMediator } from "@foblex/mediator";
|
|
2
|
+
import { IConnectorAndRect } from "../../../domain";
|
|
3
|
+
import { FConnectionBase, FSnapConnectionComponent } from "../../../f-connection";
|
|
4
|
+
import { IPoint } from "@foblex/2d";
|
|
5
|
+
import { IFReassignHandler } from "./i-f-reassign-handler";
|
|
6
|
+
export declare class FReassignSourceDragHandler implements IFReassignHandler {
|
|
7
|
+
private readonly _mediator;
|
|
8
|
+
private readonly _connection;
|
|
9
|
+
private readonly _sourceConnectorAndRect;
|
|
10
|
+
private readonly _targetConnectorAndRect;
|
|
11
|
+
private _connectableConnectors;
|
|
12
|
+
private get _sourceConnector();
|
|
13
|
+
private get _targetConnector();
|
|
14
|
+
private readonly _connectorRect;
|
|
15
|
+
private _snapConnection;
|
|
16
|
+
constructor(_mediator: FMediator, _connection: FConnectionBase, _sourceConnectorAndRect: IConnectorAndRect, _targetConnectorAndRect: IConnectorAndRect);
|
|
17
|
+
getConnectableConnectors(): IConnectorAndRect[];
|
|
18
|
+
markConnectableConnector(): void;
|
|
19
|
+
initializeSnapConnection(snapConnection: FSnapConnectionComponent | undefined): void;
|
|
20
|
+
onPointerMove(difference: IPoint): void;
|
|
21
|
+
private _findClosestConnector;
|
|
22
|
+
private _drawConnection;
|
|
23
|
+
private _calculateNewLine;
|
|
24
|
+
private _drawSnapConnection;
|
|
25
|
+
private _getLineToClosestSourceConnector;
|
|
26
|
+
onPointerUp(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FMediator } from "@foblex/mediator";
|
|
2
|
+
import { IConnectorAndRect } from "../../../domain";
|
|
3
|
+
import { FConnectionBase, FSnapConnectionComponent } from "../../../f-connection";
|
|
4
|
+
import { IPoint } from "@foblex/2d";
|
|
5
|
+
import { IFReassignHandler } from "./i-f-reassign-handler";
|
|
6
|
+
export declare class FReassignTargetDragHandler implements IFReassignHandler {
|
|
7
|
+
private readonly _mediator;
|
|
8
|
+
private readonly _connection;
|
|
9
|
+
private readonly _sourceConnectorAndRect;
|
|
10
|
+
private readonly _targetConnectorAndRect;
|
|
11
|
+
private _connectableConnectors;
|
|
12
|
+
private get _sourceConnector();
|
|
13
|
+
private get _sourceConnectorRect();
|
|
14
|
+
private get _targetConnector();
|
|
15
|
+
private readonly _connectorRect;
|
|
16
|
+
private _snapConnection;
|
|
17
|
+
constructor(_mediator: FMediator, _connection: FConnectionBase, _sourceConnectorAndRect: IConnectorAndRect, _targetConnectorAndRect: IConnectorAndRect);
|
|
18
|
+
getConnectableConnectors(): IConnectorAndRect[];
|
|
19
|
+
markConnectableConnector(): void;
|
|
20
|
+
initializeSnapConnection(snapConnection: FSnapConnectionComponent | undefined): void;
|
|
21
|
+
onPointerMove(difference: IPoint): void;
|
|
22
|
+
private _findClosestConnector;
|
|
23
|
+
private _drawConnection;
|
|
24
|
+
private _calculateNewLine;
|
|
25
|
+
private _drawSnapConnection;
|
|
26
|
+
private _getLineToClosestTargetConnector;
|
|
27
|
+
onPointerUp(): void;
|
|
28
|
+
}
|
package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { RoundedRect } from '@foblex/2d';
|
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { IConnectorAndRect } from '../../../domain';
|
|
4
4
|
export interface IFReassignConnectionDragResult {
|
|
5
|
-
|
|
5
|
+
isTargetDragHandle: boolean;
|
|
6
|
+
sourceConnectorRect: RoundedRect;
|
|
7
|
+
targetConnectorRect: RoundedRect;
|
|
6
8
|
fConnection: FConnectionBase;
|
|
7
|
-
|
|
9
|
+
connectableConnectors: IConnectorAndRect[];
|
|
8
10
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPoint, RoundedRect } from "@foblex/2d";
|
|
2
|
+
import { IClosestConnector, IConnectorAndRect } from "../../../domain";
|
|
3
|
+
import { FSnapConnectionComponent } from "../../../f-connection";
|
|
4
|
+
export interface IFReassignHandler {
|
|
5
|
+
getConnectableConnectors(): IConnectorAndRect[];
|
|
6
|
+
markConnectableConnector(): void;
|
|
7
|
+
initializeSnapConnection(snapConnection: FSnapConnectionComponent | undefined): void;
|
|
8
|
+
onPointerMove(difference: IPoint): void;
|
|
9
|
+
onPointerUp(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function isClosestConnectorInsideSnapThreshold(fClosestConnector: IClosestConnector | undefined, snapConnection: FSnapConnectionComponent): IClosestConnector | undefined;
|
|
12
|
+
export declare function roundedRectFromPoint(point: IPoint): RoundedRect;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './reassign-finalize';
|
|
2
2
|
export * from './reassign-preparation';
|
|
3
3
|
export * from './f-reassign-connection.drag-handler';
|
|
4
|
+
export * from './f-reassign-source.drag-handler';
|
|
5
|
+
export * from './f-reassign-source.drag-handler';
|
|
6
|
+
export * from './f-reassign-target.drag-handler';
|
|
4
7
|
export * from './f-reassign-connection.event';
|
|
5
8
|
export * from './i-f-reassign-connection-drag-result';
|
|
9
|
+
export * from './i-f-reassign-handler';
|
|
@@ -2,17 +2,17 @@ import { FReassignConnectionFinalizeRequest } from './f-reassign-connection-fina
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FReassignConnectionFinalizeExecution implements IExecution<FReassignConnectionFinalizeRequest, void> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
5
|
+
private readonly _dragResult;
|
|
6
|
+
private readonly _mediator;
|
|
7
|
+
private readonly _store;
|
|
8
|
+
private readonly _draggableContext;
|
|
9
9
|
private get _fDraggable();
|
|
10
10
|
private get _fDragHandler();
|
|
11
11
|
handle(request: FReassignConnectionFinalizeRequest): void;
|
|
12
12
|
private _isDroppedConnectionReassignEvent;
|
|
13
13
|
private _applyReassignEvent;
|
|
14
|
-
private
|
|
15
|
-
private
|
|
14
|
+
private _findConnectableConnectorUsingPriorityAndPosition;
|
|
15
|
+
private _isReassignToDifferentConnector;
|
|
16
16
|
private _emitReassignConnectionEvent;
|
|
17
17
|
private _getEventData;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FReassignConnectionFinalizeExecution, never>;
|
|
@@ -16,7 +16,6 @@ export declare class FReassignConnectionPreparationExecution implements IExecuti
|
|
|
16
16
|
private _getPointInFlow;
|
|
17
17
|
private _getConnectionToReassign;
|
|
18
18
|
private _getConnectionsFromPoint;
|
|
19
|
-
private _isPointInsideCircle;
|
|
20
19
|
private _updateConnectionLayer;
|
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FReassignConnectionPreparationExecution, never>;
|
|
22
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<FReassignConnectionPreparationExecution>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPoint } from "@foblex/2d";
|
|
2
|
+
import { FConnectionBase } from "../../../../f-connection";
|
|
3
|
+
export declare function isPointerInsideStartOrEndDragHandles(connection: FConnectionBase, position: IPoint): boolean;
|
|
4
|
+
export declare function isDragHandleEnd(connection: FConnectionBase, position: IPoint): boolean;
|
|
5
|
+
export declare function isDragHandleStart(connection: FConnectionBase, position: IPoint): boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FCreateConnectionDragHandlerPreparationExecution, FCreateConnectionFinalizeExecution, FCreateConnectionFromOutletPreparationExecution, FCreateConnectionFromOutputPreparationExecution, FCreateConnectionPreparationExecution, GetFirstConnectableOutputExecution } from './f-create-connection';
|
|
2
2
|
import { FReassignConnectionFinalizeExecution, FReassignConnectionPreparationExecution } from './f-reassign-connection';
|
|
3
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof
|
|
3
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof FCreateConnectionFinalizeExecution | typeof FCreateConnectionDragHandlerPreparationExecution | typeof FCreateConnectionFromOutletPreparationExecution | typeof GetFirstConnectableOutputExecution | typeof FCreateConnectionFromOutputPreparationExecution | typeof FCreateConnectionPreparationExecution | typeof FReassignConnectionFinalizeExecution | typeof FReassignConnectionPreparationExecution)[];
|
|
@@ -3,4 +3,4 @@ import { CalculateNodeMoveLimitsExecution } from './domain/calculate-node-move-l
|
|
|
3
3
|
import { PutInputConnectionHandlersToArrayExecution } from './domain/put-input-connection-handlers-to-array';
|
|
4
4
|
import { PutOutputConnectionHandlersToArrayExecution } from './domain/put-output-connection-handlers-to-array';
|
|
5
5
|
import { CalculateCommonNodeMoveLimitsExecution } from './domain/calculate-common-node-move-limits';
|
|
6
|
-
export declare const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS: (typeof
|
|
6
|
+
export declare const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS: (typeof PutInputConnectionHandlersToArrayExecution | typeof PutOutputConnectionHandlersToArrayExecution | typeof CreateMoveNodesDragModelFromSelectionExecution | typeof CalculateCommonNodeMoveLimitsExecution | typeof CalculateNodeMoveLimitsExecution)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FNodeMoveFinalizeExecution } from './move-finalize';
|
|
2
2
|
import { FNodeMovePreparationExecution } from './move-preparation';
|
|
3
3
|
import { LineAlignmentPreparationExecution } from './line-alignment-preparation';
|
|
4
|
-
export declare const NODE_PROVIDERS: (typeof import("./create-move-nodes-drag-model-from-selection").
|
|
4
|
+
export declare const NODE_PROVIDERS: (typeof import("./create-move-nodes-drag-model-from-selection").PutInputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutOutputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").CreateMoveNodesDragModelFromSelectionExecution | typeof FNodeMoveFinalizeExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateCommonNodeMoveLimitsExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateNodeMoveLimitsExecution | typeof LineAlignmentPreparationExecution | typeof FNodeMovePreparationExecution)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./f-
|
|
1
|
+
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./f-connection").FCreateConnectionFinalizeExecution | typeof import("./f-connection").FCreateConnectionDragHandlerPreparationExecution | typeof import("./f-connection").FCreateConnectionFromOutletPreparationExecution | typeof import("./f-connection").GetFirstConnectableOutputExecution | typeof import("./f-connection").FCreateConnectionFromOutputPreparationExecution | typeof import("./f-connection").FCreateConnectionPreparationExecution | typeof import("./f-connection").FReassignConnectionFinalizeExecution | typeof import("./f-connection").FReassignConnectionPreparationExecution | typeof import("../f-external-item").FExternalItemFinalizeExecution | typeof import("./f-node-move").PutInputConnectionHandlersToArrayExecution | typeof import("./f-node-move").PutOutputConnectionHandlersToArrayExecution | typeof import("./f-node-move").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./f-node-move").FNodeMoveFinalizeExecution | typeof import("./f-drop-to-group").FNodeDropToGroupFinalizeExecution | typeof import("./f-node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./f-single-select").FSingleSelectExecution | typeof import("./f-canvas").FCanvasMoveFinalizeExecution | typeof import("./f-canvas").FCanvasMovePreparationExecution | typeof import("../f-external-item").FExternalItemCreatePlaceholderExecution | typeof import("../f-external-item").FExternalItemCreatePreviewExecution | typeof import("../f-external-item").FExternalItemPreparationExecution | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./f-node-move").CalculateCommonNodeMoveLimitsExecution | typeof import("./f-node-move").CalculateNodeMoveLimitsExecution | typeof import("./f-node-move").LineAlignmentPreparationExecution | typeof import("./f-node-move").FNodeMovePreparationExecution | typeof import("./f-drop-to-group").FNodeDropToGroupPreparationExecution | typeof import("./f-node-resize").GetNodeResizeRestrictionsExecution | typeof import("./f-node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./f-node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./f-node-resize").CalculateChangedPositionExecution | typeof import("./f-node-resize").CalculateChangedSizeExecution | typeof import("./f-node-resize").FNodeResizeFinalizeExecution | typeof import("./f-node-resize").FNodeResizePreparationExecution | typeof import("./f-node-rotate").FNodeRotateFinalizeExecution | typeof import("./f-node-rotate").FNodeRotatePreparationExecution | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaPreparationExecution)[];
|
|
@@ -3,4 +3,4 @@ import { FExternalItemFinalizeExecution } from './finalize';
|
|
|
3
3
|
import { PreventDefaultIsExternalItemExecution } from './prevent-default-is-external-item';
|
|
4
4
|
import { FExternalItemCreatePreviewExecution } from './create-preview';
|
|
5
5
|
import { FExternalItemCreatePlaceholderExecution } from './create-placeholder';
|
|
6
|
-
export declare const F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS: (typeof
|
|
6
|
+
export declare const F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS: (typeof FExternalItemFinalizeExecution | typeof FExternalItemCreatePlaceholderExecution | typeof FExternalItemCreatePreviewExecution | typeof FExternalItemPreparationExecution | typeof PreventDefaultIsExternalItemExecution)[];
|
|
@@ -40,5 +40,5 @@ export declare class FFlowComponent extends FFlowBase implements OnInit, AfterCo
|
|
|
40
40
|
clearSelection(): void;
|
|
41
41
|
ngOnDestroy(): void;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<FFlowComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FFlowComponent, "f-flow", never, { "fId": { "alias": "fFlowId"; "required": false; "isSignal": true; }; }, { "fLoaded": "fLoaded"; }, never, ["[fDefinitions]", "f-background", "f-line-alignment", "f-canvas", "f-selection-area", "
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FFlowComponent, "f-flow", never, { "fId": { "alias": "fFlowId"; "required": false; "isSignal": true; }; }, { "fLoaded": "fLoaded"; }, never, ["[fDefinitions]", "f-background", "f-line-alignment", "f-canvas", "f-selection-area", "*"], true, never>;
|
|
44
44
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FMinimapData } from './domain';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FMinimapFlowDirective {
|
|
4
|
-
fMinSize: number
|
|
5
|
-
private
|
|
6
|
-
private _elementReference;
|
|
4
|
+
readonly fMinSize: import("@angular/core").InputSignal<number>;
|
|
5
|
+
private readonly _mediator;
|
|
6
|
+
private readonly _elementReference;
|
|
7
7
|
get hostElement(): SVGSVGElement;
|
|
8
8
|
model: FMinimapData;
|
|
9
9
|
redraw(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapFlowDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FMinimapFlowDirective, "svg[fMinimapFlow]", never, { "fMinSize": { "alias": "fMinSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FMinimapFlowDirective, "svg[fMinimapFlow]", never, { "fMinSize": { "alias": "fMinSize"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
12
12
|
}
|
|
@@ -6,18 +6,18 @@ import { IFDragAndDropPlugin } from '../f-draggable';
|
|
|
6
6
|
import { IPointerEvent } from "../drag-toolkit";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class FMinimapComponent implements AfterViewInit, IFDragAndDropPlugin {
|
|
9
|
-
private _destroyRef;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
fMinSize: number
|
|
9
|
+
private readonly _destroyRef;
|
|
10
|
+
private readonly _mediator;
|
|
11
|
+
private readonly _browser;
|
|
12
|
+
readonly _canvas: import("@angular/core").Signal<FMinimapCanvasDirective>;
|
|
13
|
+
readonly _flow: import("@angular/core").Signal<FMinimapFlowDirective>;
|
|
14
|
+
readonly _minimapView: import("@angular/core").Signal<FMinimapViewDirective>;
|
|
15
|
+
readonly fMinSize: import("@angular/core").InputSignal<number>;
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
private _listenTransformChanges;
|
|
18
18
|
private _redraw;
|
|
19
19
|
onPointerDown(event: IPointerEvent): void;
|
|
20
20
|
onPointerUp(event: IPointerEvent): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FMinimapComponent, "f-minimap", ["fComponent"], { "fMinSize": { "alias": "fMinSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FMinimapComponent, "f-minimap", ["fComponent"], { "fMinSize": { "alias": "fMinSize"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
23
23
|
}
|
package/f-minimap/providers.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { FMinimapComponent } from './f-minimap.component';
|
|
|
2
2
|
import { FMinimapViewDirective } from './f-minimap-view.directive';
|
|
3
3
|
import { FMinimapFlowDirective } from './f-minimap-flow.directive';
|
|
4
4
|
import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
|
|
5
|
-
export declare const F_MINIMAP_PROVIDERS: (typeof
|
|
5
|
+
export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapCanvasDirective | typeof FMinimapFlowDirective | typeof FMinimapViewDirective | typeof FMinimapComponent)[];
|
|
@@ -9,7 +9,7 @@ export declare class FGroupDirective extends FNodeBase implements OnInit, AfterV
|
|
|
9
9
|
private fBrowser;
|
|
10
10
|
private readonly _destroyRef;
|
|
11
11
|
private readonly _fMediator;
|
|
12
|
-
fId: string
|
|
12
|
+
fId: import("@angular/core").InputSignal<string>;
|
|
13
13
|
fParentId: string | null | undefined;
|
|
14
14
|
set position(value: IPoint);
|
|
15
15
|
get position(): IPoint;
|
|
@@ -34,7 +34,7 @@ export declare class FGroupDirective extends FNodeBase implements OnInit, AfterV
|
|
|
34
34
|
refresh(): void;
|
|
35
35
|
ngOnDestroy(): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FGroupDirective, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; }; "fParentId": { "alias": "fGroupParentId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "rotate": { "alias": "fGroupRotate"; "required": false; }; "size": { "alias": "fGroupSize"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; "fMinimapClass": { "alias": "fMinimapClass"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; "rotateChange": "fGroupRotateChange"; "sizeChange": "fGroupSizeChange"; }, never, never, false, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; "isSignal": true; }; "fParentId": { "alias": "fGroupParentId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "rotate": { "alias": "fGroupRotate"; "required": false; }; "size": { "alias": "fGroupSize"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; "fMinimapClass": { "alias": "fMinimapClass"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; "rotateChange": "fGroupRotateChange"; "sizeChange": "fGroupSizeChange"; }, never, never, false, never>;
|
|
38
38
|
static ngAcceptInputType_fDraggingDisabled: unknown;
|
|
39
39
|
static ngAcceptInputType_fSelectionDisabled: unknown;
|
|
40
40
|
static ngAcceptInputType_fIncludePadding: unknown;
|
package/f-node/f-node-base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken } from '@angular/core';
|
|
1
|
+
import { EventEmitter, InjectionToken, Signal } from '@angular/core';
|
|
2
2
|
import { IPoint, IRect, ISize } from '@foblex/2d';
|
|
3
3
|
import { FConnectorBase } from '../f-connectors';
|
|
4
4
|
import { IHasHostElement } from '../i-has-host-element';
|
|
@@ -11,7 +11,7 @@ declare const MIXIN_BASE: import("../mixins").Constructor<ISelectable> & import(
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare abstract class FNodeBase extends MIXIN_BASE implements ISelectable, IHasHostElement {
|
|
14
|
-
abstract fId: string
|
|
14
|
+
abstract fId: Signal<string>;
|
|
15
15
|
abstract fParentId: string | null | undefined;
|
|
16
16
|
readonly stateChanges: FChannel;
|
|
17
17
|
abstract positionChange: EventEmitter<IPoint>;
|