@foblex/flow 17.8.3 → 17.8.5
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/f-connectors/calculate-source-connectors-to-connect/calculate-source-connectors-to-connect-request.d.ts +8 -0
- package/domain/f-connectors/calculate-source-connectors-to-connect/calculate-source-connectors-to-connect.d.ts +21 -0
- package/domain/f-connectors/calculate-source-connectors-to-connect/index.d.ts +2 -0
- package/domain/f-connectors/calculate-target-connectors-to-connect/calculate-target-connectors-to-connect-request.d.ts +8 -0
- package/domain/f-connectors/calculate-target-connectors-to-connect/calculate-target-connectors-to-connect.d.ts +20 -0
- package/domain/f-connectors/calculate-target-connectors-to-connect/index.d.ts +2 -0
- package/domain/f-connectors/index.d.ts +2 -2
- package/domain/f-connectors/providers.d.ts +3 -3
- package/domain/f-event-trigger.d.ts +1 -1
- package/domain/f-flow/providers.d.ts +1 -1
- package/domain/f-line-alignment/providers.d.ts +1 -1
- package/domain/f-node/add-node-to-store/add-node-to-store-request.d.ts +2 -2
- package/domain/f-node/{calculate-node-connectors-connectable-sides → calculate-connectors-connectable-sides}/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions-request.d.ts +3 -1
- package/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.d.ts +22 -0
- package/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position.d.ts +52 -0
- package/domain/f-node/calculate-connectors-connectable-sides/calculate-connectors-connectable-sides-request.d.ts +6 -0
- package/domain/f-node/calculate-connectors-connectable-sides/calculate-connectors-connectable-sides.d.ts +22 -0
- package/domain/f-node/calculate-connectors-connectable-sides/constants/calculatable-sides.d.ts +6 -0
- package/domain/f-node/calculate-connectors-connectable-sides/constants/index.d.ts +1 -0
- package/domain/f-node/calculate-connectors-connectable-sides/index.d.ts +7 -0
- package/domain/f-node/calculate-connectors-connectable-sides/models/index.d.ts +1 -0
- package/domain/f-node/calculate-connectors-connectable-sides/models/t-calculate-mode.d.ts +2 -0
- package/domain/f-node/calculate-connectors-connectable-sides/utils/determine-side.d.ts +10 -0
- package/domain/f-node/calculate-connectors-connectable-sides/utils/index.d.ts +2 -0
- package/domain/f-node/calculate-connectors-connectable-sides/utils/is-calculate-mode.d.ts +7 -0
- package/domain/f-node/calculate-input-connections/calculate-input-connections-request.d.ts +2 -2
- package/domain/f-node/calculate-input-connections/calculate-input-connections.d.ts +3 -3
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.d.ts +2 -3
- package/domain/f-node/calculate-output-connections/calculate-output-connections-request.d.ts +2 -2
- package/domain/f-node/calculate-output-connections/calculate-output-connections.d.ts +3 -3
- package/domain/f-node/index.d.ts +1 -2
- package/domain/f-node/providers.d.ts +2 -3
- package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts +2 -2
- package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.d.ts +2 -2
- package/domain/f-zoom/providers.d.ts +1 -1
- package/domain/providers.d.ts +1 -1
- package/esm2022/domain/css-cls.mjs +2 -1
- package/esm2022/domain/f-connectors/calculate-source-connectors-to-connect/calculate-source-connectors-to-connect-request.mjs +10 -0
- package/esm2022/domain/f-connectors/calculate-source-connectors-to-connect/calculate-source-connectors-to-connect.mjs +59 -0
- package/esm2022/domain/f-connectors/calculate-source-connectors-to-connect/index.mjs +3 -0
- package/esm2022/domain/f-connectors/calculate-target-connectors-to-connect/calculate-target-connectors-to-connect-request.mjs +10 -0
- package/esm2022/domain/f-connectors/calculate-target-connectors-to-connect/calculate-target-connectors-to-connect.mjs +64 -0
- package/esm2022/domain/f-connectors/calculate-target-connectors-to-connect/index.mjs +3 -0
- package/esm2022/domain/f-connectors/index.mjs +3 -3
- package/esm2022/domain/f-connectors/providers.mjs +5 -5
- package/esm2022/domain/f-event-trigger.mjs +2 -2
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store-request.mjs +4 -4
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.mjs +2 -2
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions-request.mjs +10 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.mjs +59 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position-request.mjs +8 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position.mjs +132 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-internal-position/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectors-connectable-sides-request.mjs +8 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectors-connectable-sides.mjs +73 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/constants/calculatable-sides.mjs +12 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/constants/index.mjs +2 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/index.mjs +8 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/models/index.mjs +2 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/models/t-calculate-mode.mjs +2 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/utils/determine-side.mjs +124 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/utils/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/utils/is-calculate-mode.mjs +12 -0
- package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections-request.mjs +4 -4
- package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.mjs +20 -7
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.mjs +5 -8
- package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections-request.mjs +4 -4
- package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.mjs +20 -7
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids.request.mjs +1 -1
- package/esm2022/domain/f-node/index.mjs +2 -3
- package/esm2022/domain/f-node/providers.mjs +3 -5
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.mjs +3 -3
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +5 -5
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.mjs +4 -4
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect-request.mjs +1 -1
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.mjs +2 -2
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +2 -14
- package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +4 -1
- package/esm2022/domain/index.mjs +1 -1
- package/esm2022/domain/is-mobile.mjs +5 -3
- package/esm2022/f-connectors/e-f-connectable-side.mjs +3 -1
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +1 -1
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/create-connection-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/create-connection-preparation.mjs +58 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/create-connection-from-output-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/create-connection-from-output-preparation.mjs +47 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/index.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/index.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +8 -8
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +7 -7
- package/esm2022/f-draggable/f-connection/providers.mjs +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +3 -3
- package/esm2022/f-draggable/f-drop-to-group/drop-to-group-preparation/drop-to-group-preparation-request.mjs +1 -1
- package/esm2022/f-draggable/f-drop-to-group/drop-to-group-preparation/drop-to-group-preparation.mjs +11 -13
- package/esm2022/f-draggable/f-node-move/move-preparation/f-node-move-preparation.execution.mjs +14 -12
- package/esm2022/f-draggable/f-node-move/move-preparation/f-node-move-preparation.request.mjs +1 -1
- package/esm2022/f-node/f-group.directive.mjs +3 -3
- package/esm2022/f-node/f-node.directive.mjs +3 -3
- package/esm2022/f-storage/f-connectors-store.mjs +11 -0
- package/esm2022/f-storage/index.mjs +2 -1
- package/f-connection/providers.d.ts +1 -1
- package/f-connectors/e-f-connectable-side.d.ts +2 -0
- package/f-connectors/providers.d.ts +1 -1
- package/f-draggable/f-connection/f-create-connection/create-preparation/create-connection-preparation-request.d.ts +8 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/create-connection-preparation.d.ts +16 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/create-connection-from-output-preparation-request.d.ts +8 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/create-connection-from-output-preparation.d.ts +14 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/index.d.ts +2 -2
- package/f-draggable/f-connection/f-create-connection/create-preparation/index.d.ts +2 -2
- package/f-draggable/f-connection/providers.d.ts +2 -2
- package/f-draggable/f-drop-to-group/drop-to-group-preparation/drop-to-group-preparation-request.d.ts +2 -2
- package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
- package/f-draggable/f-node-move/create-drag-model-from-selection/providers.d.ts +1 -1
- package/f-draggable/f-node-move/move-preparation/f-node-move-preparation.execution.d.ts +1 -1
- package/f-draggable/f-node-move/move-preparation/f-node-move-preparation.request.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-minimap/domain/providers.d.ts +1 -1
- package/f-minimap/providers.d.ts +1 -1
- package/f-node/providers.d.ts +2 -2
- package/f-selection-area/domain/providers.d.ts +1 -1
- package/f-storage/f-connectors-store.d.ts +6 -0
- package/f-storage/index.d.ts +1 -0
- package/f-storage/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +1281 -1075
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +1 -1
- package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.d.ts +0 -17
- package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.d.ts +0 -6
- package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/index.d.ts +0 -2
- 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 +0 -18
- 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 +0 -6
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.d.ts +0 -2
- package/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.d.ts +0 -45
- package/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position.d.ts +0 -20
- package/domain/f-node/calculate-node-connectors-connectable-sides/calculate-node-connectors-connectable-sides-request.d.ts +0 -6
- package/domain/f-node/calculate-node-connectors-connectable-sides/calculate-node-connectors-connectable-sides.d.ts +0 -59
- package/domain/f-node/calculate-node-connectors-connectable-sides/index.d.ts +0 -4
- package/domain/f-node/get-nodes/get-nodes-request.d.ts +0 -3
- package/domain/f-node/get-nodes/get-nodes.d.ts +0 -13
- package/domain/f-node/get-nodes/index.d.ts +0 -2
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +0 -48
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.mjs +0 -8
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/index.mjs +0 -3
- 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 +0 -43
- 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 +0 -8
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.mjs +0 -3
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions-request.mjs +0 -8
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.mjs +0 -92
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/index.mjs +0 -3
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position-request.mjs +0 -8
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position.mjs +0 -55
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-connectable-side-by-internal-position/index.mjs +0 -3
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-node-connectors-connectable-sides-request.mjs +0 -8
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/calculate-node-connectors-connectable-sides.mjs +0 -99
- package/esm2022/domain/f-node/calculate-node-connectors-connectable-sides/index.mjs +0 -5
- package/esm2022/domain/f-node/get-nodes/get-nodes-request.mjs +0 -4
- package/esm2022/domain/f-node/get-nodes/get-nodes.mjs +0 -25
- package/esm2022/domain/f-node/get-nodes/index.mjs +0 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.execution.mjs +0 -52
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.request.mjs +0 -10
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.execution.mjs +0 -49
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.request.mjs +0 -10
- package/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.execution.d.ts +0 -16
- package/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.request.d.ts +0 -8
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.execution.d.ts +0 -14
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.request.d.ts +0 -8
- /package/domain/f-node/{calculate-node-connectors-connectable-sides → calculate-connectors-connectable-sides}/calculate-connectable-side-by-connected-positions/index.d.ts +0 -0
- /package/domain/f-node/{calculate-node-connectors-connectable-sides → calculate-connectors-connectable-sides}/calculate-connectable-side-by-internal-position/calculate-connectable-side-by-internal-position-request.d.ts +0 -0
- /package/domain/f-node/{calculate-node-connectors-connectable-sides → calculate-connectors-connectable-sides}/calculate-connectable-side-by-internal-position/index.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FNodeInputBase } from '../../../f-connectors';
|
|
2
|
+
import { IPoint } from '@foblex/2d';
|
|
3
|
+
export declare class CalculateSourceConnectorsToConnectRequest {
|
|
4
|
+
readonly targetConnector: FNodeInputBase;
|
|
5
|
+
readonly pointerPosition: IPoint;
|
|
6
|
+
static readonly fToken: unique symbol;
|
|
7
|
+
constructor(targetConnector: FNodeInputBase, pointerPosition: IPoint);
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CalculateSourceConnectorsToConnectRequest } from './calculate-source-connectors-to-connect-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IConnectorAndRect } from '../i-connector-and-rect';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves all source connectors that can be connected to a given target connector,
|
|
7
|
+
* along with their rectangles.
|
|
8
|
+
* Source - Output or Outlet connectors.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CalculateSourceConnectorsToConnect implements IExecution<CalculateSourceConnectorsToConnectRequest, IConnectorAndRect[]> {
|
|
11
|
+
private readonly _mediator;
|
|
12
|
+
private readonly _store;
|
|
13
|
+
private get _sourceConnectors();
|
|
14
|
+
handle({ targetConnector, pointerPosition, }: CalculateSourceConnectorsToConnectRequest): IConnectorAndRect[];
|
|
15
|
+
private _getConnectableSources;
|
|
16
|
+
private _calculateConnectableSides;
|
|
17
|
+
/** Delegates to the connected-positions calculation execution. */
|
|
18
|
+
private _calculateByConnectedPositions;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateSourceConnectorsToConnect, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateSourceConnectorsToConnect>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
|
|
2
|
+
import { IPoint } from '@foblex/2d';
|
|
3
|
+
export declare class CalculateTargetConnectorsToConnectRequest {
|
|
4
|
+
readonly sourceConnector: FNodeOutputBase | FNodeOutletBase;
|
|
5
|
+
readonly pointerPosition: IPoint;
|
|
6
|
+
static readonly fToken: unique symbol;
|
|
7
|
+
constructor(sourceConnector: FNodeOutputBase | FNodeOutletBase, pointerPosition: IPoint);
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CalculateTargetConnectorsToConnectRequest } from './calculate-target-connectors-to-connect-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IConnectorAndRect } from '../i-connector-and-rect';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves all input connectors that can be connected to a given output or outlet connector,
|
|
7
|
+
*/
|
|
8
|
+
export declare class CalculateTargetConnectorsToConnect implements IExecution<CalculateTargetConnectorsToConnectRequest, IConnectorAndRect[]> {
|
|
9
|
+
private readonly _mediator;
|
|
10
|
+
private readonly _store;
|
|
11
|
+
private get _targetConnectors();
|
|
12
|
+
handle({ sourceConnector, pointerPosition, }: CalculateTargetConnectorsToConnectRequest): IConnectorAndRect[];
|
|
13
|
+
private _getCanBeConnectedInputs;
|
|
14
|
+
private _filterSelfConnectable;
|
|
15
|
+
private _calculateConnectableSides;
|
|
16
|
+
/** Delegates to the connected-positions calculation execution. */
|
|
17
|
+
private _calculateByConnectedPositions;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateTargetConnectorsToConnect, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateTargetConnectorsToConnect>;
|
|
20
|
+
}
|
|
@@ -3,8 +3,8 @@ export * from './add-outlet-to-store';
|
|
|
3
3
|
export * from './add-output-to-store';
|
|
4
4
|
export * from './calculate-closest-connector';
|
|
5
5
|
export * from './find-connectable-connector-using-priority-and-position';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
6
|
+
export * from './calculate-target-connectors-to-connect';
|
|
7
|
+
export * from './calculate-source-connectors-to-connect';
|
|
8
8
|
export * from './get-connector-and-rect';
|
|
9
9
|
export * from './mark-connectable-connectors';
|
|
10
10
|
export * from './remove-input-from-store';
|
|
@@ -6,9 +6,9 @@ import { RemoveOutletFromStoreExecution } from './remove-outlet-from-store';
|
|
|
6
6
|
import { RemoveOutputFromStoreExecution } from './remove-output-from-store';
|
|
7
7
|
import { MarkConnectableConnectors } from './mark-connectable-connectors';
|
|
8
8
|
import { UnmarkConnectableConnectors } from './unmark-connectable-connectors';
|
|
9
|
-
import {
|
|
9
|
+
import { CalculateTargetConnectorsToConnect } from './calculate-target-connectors-to-connect';
|
|
10
10
|
import { GetConnectorAndRect } from './get-connector-and-rect';
|
|
11
11
|
import { CalculateClosestConnector } from './calculate-closest-connector';
|
|
12
|
-
import {
|
|
12
|
+
import { CalculateSourceConnectorsToConnect } from './calculate-source-connectors-to-connect';
|
|
13
13
|
import { FindConnectableConnectorUsingPriorityAndPositionExecution } from './find-connectable-connector-using-priority-and-position';
|
|
14
|
-
export declare const F_CONNECTORS_FEATURES: (typeof AddInputToStore | typeof AddOutletToStore | typeof AddOutputToStore | typeof CalculateClosestConnector | typeof FindConnectableConnectorUsingPriorityAndPositionExecution | typeof
|
|
14
|
+
export declare const F_CONNECTORS_FEATURES: (typeof AddInputToStore | typeof AddOutletToStore | typeof AddOutputToStore | typeof CalculateClosestConnector | typeof FindConnectableConnectorUsingPriorityAndPositionExecution | typeof CalculateSourceConnectorsToConnect | typeof CalculateTargetConnectorsToConnect | typeof GetConnectorAndRect | typeof MarkConnectableConnectors | typeof RemoveInputFromStore | typeof RemoveOutletFromStoreExecution | typeof RemoveOutputFromStoreExecution | typeof UnmarkConnectableConnectors)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type FEventTrigger = (event: FTriggerEvent) => boolean;
|
|
2
2
|
export type FTriggerEvent = MouseEvent | TouchEvent | WheelEvent;
|
|
3
3
|
export declare function isValidEventTrigger(event: FTriggerEvent, fTrigger: FEventTrigger): boolean;
|
|
4
|
-
export declare function defaultEventTrigger(
|
|
4
|
+
export declare function defaultEventTrigger(_event: FTriggerEvent): boolean;
|
|
@@ -7,4 +7,4 @@ import { GetFlowExecution } from './get-flow';
|
|
|
7
7
|
* This includes adding, retrieving, and removing the Flow,
|
|
8
8
|
* as well as getting the Flow host element and its state.
|
|
9
9
|
*/
|
|
10
|
-
export declare const F_FLOW_FEATURES: (typeof
|
|
10
|
+
export declare const F_FLOW_FEATURES: (typeof RemoveFlowFromStoreExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof GetFlowHostElementExecution | typeof GetFlowExecution | typeof AddFlowToStoreExecution)[];
|
|
@@ -5,4 +5,4 @@ import { RemoveLineAlignmentFromStoreExecution } from './remove-line-alignment-f
|
|
|
5
5
|
* These executions handle the addition and removal of line alignments
|
|
6
6
|
* in the FComponentsStore.
|
|
7
7
|
*/
|
|
8
|
-
export declare const F_LINE_ALIGNMENT_FEATURES: (typeof
|
|
8
|
+
export declare const F_LINE_ALIGNMENT_FEATURES: (typeof RemoveLineAlignmentFromStoreExecution | typeof AddLineAlignmentToStoreExecution)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FNodeBase } from '../../../f-node';
|
|
2
2
|
export declare class AddNodeToStoreRequest {
|
|
3
|
-
|
|
3
|
+
readonly nodeOrGroup: FNodeBase;
|
|
4
4
|
static readonly fToken: unique symbol;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(nodeOrGroup: FNodeBase);
|
|
6
6
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FConnectorBase } from '../../../../f-connectors';
|
|
2
|
+
import { IPoint } from '@foblex/2d';
|
|
2
3
|
export declare class CalculateConnectableSideByConnectedPositionsRequest {
|
|
3
4
|
readonly connector: FConnectorBase;
|
|
5
|
+
readonly pointerPosition?: IPoint | undefined;
|
|
4
6
|
static readonly fToken: unique symbol;
|
|
5
|
-
constructor(connector: FConnectorBase);
|
|
7
|
+
constructor(connector: FConnectorBase, pointerPosition?: IPoint | undefined);
|
|
6
8
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IExecution } from '@foblex/mediator';
|
|
2
|
+
import { CalculateConnectableSideByConnectedPositionsRequest } from './calculate-connectable-side-by-connected-positions-request';
|
|
3
|
+
import { EFConnectableSide } from '../../../../f-connectors';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that calculates the connectable side for a connector
|
|
7
|
+
* based on positions of connected connectors and allowed sides.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CalculateConnectableSideByConnectedPositions implements IExecution<CalculateConnectableSideByConnectedPositionsRequest, EFConnectableSide> {
|
|
10
|
+
private readonly _mediator;
|
|
11
|
+
/**
|
|
12
|
+
* Entry point (hot path). Avoids intermediate arrays and redundant allocations.
|
|
13
|
+
*
|
|
14
|
+
* @param request - Contains the connector and optionally allowed sides.
|
|
15
|
+
* @returns {EFConnectableSide} - The chosen connectable side.
|
|
16
|
+
*/
|
|
17
|
+
handle({ connector, pointerPosition, }: CalculateConnectableSideByConnectedPositionsRequest): EFConnectableSide;
|
|
18
|
+
private _accumulateConnectedCenters;
|
|
19
|
+
private _getConnectorRect;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectableSideByConnectedPositions, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectableSideByConnectedPositions>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { CalculateConnectableSideByInternalPositionRequest } from './calculate-connectable-side-by-internal-position-request';
|
|
4
|
+
import { EFConnectableSide } from '../../../../f-connectors';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Injection token for configuring the side detection tolerance (in pixels).
|
|
8
|
+
* A new side must beat the previous side by more than this value to switch.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CONNECTABLE_SIDE_EPSILON: InjectionToken<number>;
|
|
11
|
+
/**
|
|
12
|
+
* Calculates the connectable side of a connector relative to its node host.
|
|
13
|
+
*
|
|
14
|
+
* Optimizations & behavior:
|
|
15
|
+
* - Hysteresis via epsilon to avoid jitter near boundaries.
|
|
16
|
+
* - Per-connector memoization using WeakMap (no leaks).
|
|
17
|
+
* - During drag (isDragging === true) the last memorized side is returned immediately
|
|
18
|
+
* for maximum stability and performance; a safe fallback computes it if missing.
|
|
19
|
+
*/
|
|
20
|
+
export declare class CalculateConnectableSideByInternalPosition implements IExecution<CalculateConnectableSideByInternalPositionRequest, EFConnectableSide> {
|
|
21
|
+
private readonly _mediator;
|
|
22
|
+
/**
|
|
23
|
+
* Stores the last computed side per connector.
|
|
24
|
+
* WeakMap ensures entries are garbage-collected with the connector objects.
|
|
25
|
+
*/
|
|
26
|
+
private readonly _lastSide;
|
|
27
|
+
/** Pixel threshold to prevent side switching unless the new side is sufficiently better. */
|
|
28
|
+
private readonly _epsilon;
|
|
29
|
+
/**
|
|
30
|
+
* Entry point: returns the connectable side for a given connector.
|
|
31
|
+
* If a drag is in progress, returns the last memorized side for stability.
|
|
32
|
+
*/
|
|
33
|
+
handle({ connector, }: CalculateConnectableSideByInternalPositionRequest): EFConnectableSide;
|
|
34
|
+
/**
|
|
35
|
+
* Determines the side of the connector relative to the node host by
|
|
36
|
+
* comparing distances from the connector's gravity center to each host edge.
|
|
37
|
+
*
|
|
38
|
+
* Hysteresis rule:
|
|
39
|
+
* If the previously chosen side is within `epsilon` pixels of the new best side,
|
|
40
|
+
* keep the previous side to avoid flicker.
|
|
41
|
+
*
|
|
42
|
+
* @param connectorHost - The connector element (HTML or SVG).
|
|
43
|
+
* @param nodeHost - The parent node element (HTML or SVG).
|
|
44
|
+
* @param connectorKey - The connector object, used as WeakMap key.
|
|
45
|
+
* @returns The most stable connectable side.
|
|
46
|
+
*/
|
|
47
|
+
private _getSideByDelta;
|
|
48
|
+
/** Returns true if a drag operation is currently active. */
|
|
49
|
+
private _isDragging;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectableSideByInternalPosition, never>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectableSideByInternalPosition>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IExecution } from '@foblex/mediator';
|
|
2
|
+
import { CalculateConnectorsConnectableSidesRequest } from './calculate-connectors-connectable-sides-request';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that calculates connectable sides for all connectors of a node.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CalculateConnectorsConnectableSides implements IExecution<CalculateConnectorsConnectableSidesRequest, void> {
|
|
8
|
+
private readonly _mediator;
|
|
9
|
+
/**
|
|
10
|
+
* Orchestrates side calculation for all connectors of the given node.
|
|
11
|
+
*/
|
|
12
|
+
handle({ nodeOrGroup }: CalculateConnectorsConnectableSidesRequest): void;
|
|
13
|
+
/**
|
|
14
|
+
* Resolves the connectable side for a connector quickly.
|
|
15
|
+
* Avoids intermediate arrays and redundant allocations.
|
|
16
|
+
*/
|
|
17
|
+
private _resolveSideForConnectorFast;
|
|
18
|
+
/** Delegates to the connected-positions calculation execution. */
|
|
19
|
+
private _calculateByConnectedPositions;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectorsConnectableSides, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectorsConnectableSides>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './calculatable-sides';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './calculate-connectable-side-by-connected-positions';
|
|
2
|
+
export * from './calculate-connectable-side-by-internal-position';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './calculate-connectors-connectable-sides';
|
|
7
|
+
export * from './calculate-connectors-connectable-sides-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './t-calculate-mode';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts allowed sides array to a compact bit mask.
|
|
3
|
+
* If not provided or empty -> all sides allowed.
|
|
4
|
+
*/
|
|
5
|
+
import { EFConnectableSide } from '../../../../f-connectors';
|
|
6
|
+
/**
|
|
7
|
+
* Determines final side using ideal side first; if disallowed, picks best fallback.
|
|
8
|
+
* Inputs are numbers to avoid object wrappers on hot path.
|
|
9
|
+
*/
|
|
10
|
+
export declare function determineSide(selfX: number, selfY: number, avgX: number, avgY: number, allowed?: EFConnectableSide[]): EFConnectableSide;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EFConnectableSide } from '../../../../f-connectors';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the given side is one of the calculate modes.
|
|
4
|
+
* @param side The connectable side to check.
|
|
5
|
+
* @returns True if the side is a calculate mode, false otherwise.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isCalculateMode(side: EFConnectableSide): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FNodeBase } from '../../../f-node';
|
|
2
2
|
export declare class CalculateInputConnectionsRequest {
|
|
3
|
-
|
|
3
|
+
readonly nodeOrGroup: FNodeBase;
|
|
4
4
|
static readonly fToken: unique symbol;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(nodeOrGroup: FNodeBase);
|
|
6
6
|
}
|
|
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class CalculateInputConnections implements IExecution<CalculateInputConnectionsRequest, FConnectionBase[]> {
|
|
9
9
|
private readonly _store;
|
|
10
|
-
handle(
|
|
11
|
-
private
|
|
12
|
-
private
|
|
10
|
+
handle({ nodeOrGroup }: CalculateInputConnectionsRequest): FConnectionBase[];
|
|
11
|
+
private _collectInputIds;
|
|
12
|
+
private _collectConnections;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateInputConnections, never>;
|
|
14
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateInputConnections>;
|
|
15
15
|
}
|
|
@@ -8,9 +8,8 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class CalculateNodesBoundingBox implements IExecution<CalculateNodesBoundingBoxRequest, IRect | null> {
|
|
10
10
|
private readonly _store;
|
|
11
|
-
handle(
|
|
12
|
-
private
|
|
13
|
-
private _getElementRect;
|
|
11
|
+
handle(_request: CalculateNodesBoundingBoxRequest): IRect | null;
|
|
12
|
+
private _nodesRects;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateNodesBoundingBox, never>;
|
|
15
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateNodesBoundingBox>;
|
|
16
15
|
}
|
package/domain/f-node/calculate-output-connections/calculate-output-connections-request.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FNodeBase } from '../../../f-node';
|
|
2
2
|
export declare class CalculateOutputConnectionsRequest {
|
|
3
|
-
|
|
3
|
+
readonly nodeOrGroup: FNodeBase;
|
|
4
4
|
static readonly fToken: unique symbol;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(nodeOrGroup: FNodeBase);
|
|
6
6
|
}
|
|
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class CalculateOutputConnections implements IExecution<CalculateOutputConnectionsRequest, FConnectionBase[]> {
|
|
9
9
|
private readonly _store;
|
|
10
|
-
handle(
|
|
11
|
-
private
|
|
12
|
-
private
|
|
10
|
+
handle({ nodeOrGroup }: CalculateOutputConnectionsRequest): FConnectionBase[];
|
|
11
|
+
private _collectOutputIds;
|
|
12
|
+
private _collectConnections;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateOutputConnections, never>;
|
|
14
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateOutputConnections>;
|
|
15
15
|
}
|
package/domain/f-node/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export * from './add-node-to-store';
|
|
2
2
|
export * from './calculate-input-connections';
|
|
3
|
-
export * from './calculate-
|
|
3
|
+
export * from './calculate-connectors-connectable-sides';
|
|
4
4
|
export * from './calculate-nodes-bounding-box';
|
|
5
5
|
export * from './calculate-nodes-bounding-box-normalized-position';
|
|
6
6
|
export * from './calculate-output-connections';
|
|
7
7
|
export * from './fit-to-child-nodes-and-groups';
|
|
8
8
|
export * from './get-child-node-ids';
|
|
9
9
|
export * from './get-node-padding';
|
|
10
|
-
export * from './get-nodes';
|
|
11
10
|
export * from './get-parent-nodes';
|
|
12
11
|
export * from './update-node-when-state-or-size-changed';
|
|
13
12
|
export * from './remove-node-from-store';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AddNodeToStore } from './add-node-to-store';
|
|
2
2
|
import { RemoveNodeFromStore } from './remove-node-from-store';
|
|
3
3
|
import { UpdateNodeWhenStateOrSizeChanged } from './update-node-when-state-or-size-changed';
|
|
4
|
-
import { GetNodes } from './get-nodes';
|
|
5
4
|
import { CalculateNodesBoundingBox } from './calculate-nodes-bounding-box';
|
|
6
5
|
import { CalculateNodesBoundingBoxNormalizedPosition } from './calculate-nodes-bounding-box-normalized-position';
|
|
7
6
|
import { GetNodePadding } from './get-node-padding';
|
|
@@ -10,8 +9,8 @@ import { CalculateInputConnections } from './calculate-input-connections';
|
|
|
10
9
|
import { CalculateOutputConnections } from './calculate-output-connections';
|
|
11
10
|
import { GetChildNodeIds } from './get-child-node-ids';
|
|
12
11
|
import { FitToChildNodesAndGroups } from './fit-to-child-nodes-and-groups';
|
|
13
|
-
import { CalculateConnectableSideByConnectedPositions, CalculateConnectableSideByInternalPosition,
|
|
12
|
+
import { CalculateConnectableSideByConnectedPositions, CalculateConnectableSideByInternalPosition, CalculateConnectorsConnectableSides } from './calculate-connectors-connectable-sides';
|
|
14
13
|
/**
|
|
15
14
|
* This file exports all the node-related executions that can be used in the F-Flow domain.
|
|
16
15
|
*/
|
|
17
|
-
export declare const F_NODE_FEATURES: (typeof AddNodeToStore | typeof CalculateConnectableSideByConnectedPositions | typeof CalculateConnectableSideByInternalPosition | typeof CalculateInputConnections | typeof
|
|
16
|
+
export declare const F_NODE_FEATURES: (typeof AddNodeToStore | typeof CalculateConnectableSideByConnectedPositions | typeof CalculateConnectableSideByInternalPosition | typeof CalculateInputConnections | typeof CalculateConnectorsConnectableSides | typeof CalculateNodesBoundingBox | typeof CalculateNodesBoundingBoxNormalizedPosition | typeof CalculateOutputConnections | typeof FitToChildNodesAndGroups | typeof GetChildNodeIds | typeof GetNodePadding | typeof GetParentNodes | typeof UpdateNodeWhenStateOrSizeChanged | typeof RemoveNodeFromStore)[];
|
package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class SelectAndUpdateNodeLayerExecution implements IHandler<SelectAndUpdateNodeLayerRequest, void> {
|
|
10
10
|
private readonly _dragContext;
|
|
11
11
|
private readonly _mediator;
|
|
12
|
-
handle(
|
|
13
|
-
private
|
|
12
|
+
handle({ nodeOrGroup }: SelectAndUpdateNodeLayerRequest): void;
|
|
13
|
+
private _selectNodeIfNotSelected;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAndUpdateNodeLayerExecution, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<SelectAndUpdateNodeLayerExecution>;
|
|
16
16
|
}
|
package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FNodeBase } from '../../../f-node';
|
|
2
2
|
export declare class SelectAndUpdateNodeLayerRequest {
|
|
3
|
-
|
|
3
|
+
readonly nodeOrGroup: FNodeBase;
|
|
4
4
|
static readonly fToken: unique symbol;
|
|
5
|
-
constructor(
|
|
5
|
+
constructor(nodeOrGroup: FNodeBase);
|
|
6
6
|
}
|
|
@@ -7,4 +7,4 @@ import { ResetZoomExecution } from './reset-zoom';
|
|
|
7
7
|
* These executions handle the addition, removal, and resetting of zoom levels
|
|
8
8
|
* in the FComponentsStore.
|
|
9
9
|
*/
|
|
10
|
-
export declare const F_ZOOM_FEATURES: (typeof
|
|
10
|
+
export declare const F_ZOOM_FEATURES: (typeof SetZoomExecution | typeof ResetZoomExecution | typeof RemoveZoomFromStoreExecution | typeof AddZoomToStoreExecution)[];
|
package/domain/providers.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import { GetNormalizedConnectorRectExecution } from "./get-normalized-connector-
|
|
|
10
10
|
* draggable elements, flow, line alignment, nodes, selection, zoom,
|
|
11
11
|
* and various utility executions.
|
|
12
12
|
*/
|
|
13
|
-
export declare const COMMON_PROVIDERS: (typeof import("./f-
|
|
13
|
+
export declare const COMMON_PROVIDERS: (typeof import("./f-connectors").AddInputToStore | typeof import("./f-connectors").AddOutletToStore | typeof import("./f-connectors").AddOutputToStore | typeof import("./f-connectors").CalculateClosestConnector | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").CalculateSourceConnectorsToConnect | typeof import("./f-connectors").CalculateTargetConnectorsToConnect | typeof import("./f-connectors").GetConnectorAndRect | typeof import("./f-connectors").MarkConnectableConnectors | typeof import("./f-connectors").RemoveInputFromStore | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectors | typeof import("./f-zoom").SetZoomExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehavior | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-node").AddNodeToStore | typeof import("./f-node").CalculateConnectableSideByConnectedPositions | typeof import("./f-node").CalculateConnectableSideByInternalPosition | typeof import("./f-node").CalculateInputConnections | typeof import("./f-node").CalculateConnectorsConnectableSides | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPosition | typeof import("./f-node").CalculateOutputConnections | typeof import("./f-node").FitToChildNodesAndGroups | typeof import("./f-node").GetChildNodeIds | typeof import("./f-node").GetNodePadding | typeof import("./f-node").GetParentNodes | typeof import("./f-node").UpdateNodeWhenStateOrSizeChanged | typeof import("./f-node").RemoveNodeFromStore | typeof GetElementRoundedRectExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedConnectorRectExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
1
2
|
export const F_CSS_CLASS = {
|
|
2
3
|
DRAG_AND_DROP: {
|
|
3
4
|
DRAGGING: 'f-dragging',
|
|
@@ -18,4 +19,4 @@ export const F_CSS_CLASS = {
|
|
|
18
19
|
DRAG_HANDLE: 'f-connection-drag-handle',
|
|
19
20
|
},
|
|
20
21
|
};
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzLWNscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2Nzcy1jbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQW9CO0FBQ3BCLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRztJQUN6QixhQUFhLEVBQUU7UUFDYixRQUFRLEVBQUUsWUFBWTtRQUV0QixvQkFBb0IsRUFBRSx3QkFBd0I7S0FDL0M7SUFFRCxRQUFRLEVBQUU7UUFDUixhQUFhLEVBQUUsMEJBQTBCO1FBRXpDLFdBQVcsRUFBRSx3QkFBd0I7S0FDdEM7SUFFRCxTQUFTLEVBQUU7UUFDVCxnQkFBZ0IsRUFBRSx5QkFBeUI7UUFFM0Msc0JBQXNCLEVBQUUsK0JBQStCO1FBRXZELGVBQWUsRUFBRSx3QkFBd0I7UUFFekMscUJBQXFCLEVBQUUsOEJBQThCO1FBRXJELFdBQVcsRUFBRSx5QkFBeUI7S0FDdkM7SUFFRCxVQUFVLEVBQUU7UUFDVixXQUFXLEVBQUUsMEJBQTBCO0tBQ3hDO0NBQ0YsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlICovXG5leHBvcnQgY29uc3QgRl9DU1NfQ0xBU1MgPSB7XG4gIERSQUdfQU5EX0RST1A6IHtcbiAgICBEUkFHR0lORzogJ2YtZHJhZ2dpbmcnLFxuXG4gICAgQ09OTkVDVElPTlNfRFJBR0dJTkc6ICdmLWNvbm5lY3Rpb25zLWRyYWdnaW5nJyxcbiAgfSxcblxuICBHUk9VUElORzoge1xuICAgIE9WRVJfQk9VTkRBUlk6ICdmLWdyb3VwaW5nLW92ZXItYm91bmRhcnknLFxuXG4gICAgRFJPUF9BQ1RJVkU6ICdmLWdyb3VwaW5nLWRyb3AtYWN0aXZlJyxcbiAgfSxcblxuICBDT05ORUNUT1I6IHtcbiAgICBPVVRQVVRfQ09OTkVDVEVEOiAnZi1ub2RlLW91dHB1dC1jb25uZWN0ZWQnLFxuXG4gICAgT1VUUFVUX05PVF9DT05ORUNUQUJMRTogJ2Ytbm9kZS1vdXRwdXQtbm90LWNvbm5lY3RhYmxlJyxcblxuICAgIElOUFVUX0NPTk5FQ1RFRDogJ2Ytbm9kZS1pbnB1dC1jb25uZWN0ZWQnLFxuXG4gICAgSU5QVVRfTk9UX0NPTk5FQ1RBQkxFOiAnZi1ub2RlLWlucHV0LW5vdC1jb25uZWN0YWJsZScsXG5cbiAgICBDT05ORUNUQUJMRTogJ2YtY29ubmVjdG9yLWNvbm5lY3RhYmxlJyxcbiAgfSxcblxuICBDT05ORUNUSU9OOiB7XG4gICAgRFJBR19IQU5ETEU6ICdmLWNvbm5lY3Rpb24tZHJhZy1oYW5kbGUnLFxuICB9LFxufTtcbiJdfQ==
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class CalculateSourceConnectorsToConnectRequest {
|
|
2
|
+
targetConnector;
|
|
3
|
+
pointerPosition;
|
|
4
|
+
static fToken = Symbol('CalculateSourceConnectorsToConnectRequest');
|
|
5
|
+
constructor(targetConnector, pointerPosition) {
|
|
6
|
+
this.targetConnector = targetConnector;
|
|
7
|
+
this.pointerPosition = pointerPosition;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
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VJbnB1dEJhc2UsXG4gICAgcHVibGljIHJlYWRvbmx5IHBvaW50ZXJQb3NpdGlvbjogSVBvaW50LFxuICApIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CalculateSourceConnectorsToConnectRequest } from './calculate-source-connectors-to-connect-request';
|
|
3
|
+
import { inject, Injectable } from '@angular/core';
|
|
4
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import { GetConnectorAndRectRequest } from '../get-connector-and-rect';
|
|
7
|
+
import { CalculateConnectableSideByConnectedPositionsRequest, isCalculateMode } from '../../f-node';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Execution that retrieves all source connectors that can be connected to a given target connector,
|
|
11
|
+
* along with their rectangles.
|
|
12
|
+
* Source - Output or Outlet connectors.
|
|
13
|
+
*/
|
|
14
|
+
let CalculateSourceConnectorsToConnect = class CalculateSourceConnectorsToConnect {
|
|
15
|
+
_mediator = inject(FMediator);
|
|
16
|
+
_store = inject(FComponentsStore);
|
|
17
|
+
get _sourceConnectors() {
|
|
18
|
+
return this._store.fOutputs;
|
|
19
|
+
}
|
|
20
|
+
handle({ targetConnector, pointerPosition, }) {
|
|
21
|
+
const result = this._getConnectableSources(targetConnector).map((x) => {
|
|
22
|
+
return this._mediator.execute(new GetConnectorAndRectRequest(x));
|
|
23
|
+
});
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
this._calculateConnectableSides(result, pointerPosition);
|
|
26
|
+
});
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
_getConnectableSources(targetConnector) {
|
|
30
|
+
return this._sourceConnectors.filter((x) => {
|
|
31
|
+
let result = x.canBeConnected;
|
|
32
|
+
if (result && x.hasConnectionLimits) {
|
|
33
|
+
result = x.canConnectTo(targetConnector);
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
_calculateConnectableSides(connectors, pointerPosition) {
|
|
39
|
+
connectors.forEach((x) => {
|
|
40
|
+
if (isCalculateMode(x.fConnector.userFConnectableSide)) {
|
|
41
|
+
x.fConnector.fConnectableSide = this._calculateByConnectedPositions(x.fConnector, pointerPosition);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Delegates to the connected-positions calculation execution. */
|
|
46
|
+
_calculateByConnectedPositions(connector, pointerPosition) {
|
|
47
|
+
return this._mediator.execute(new CalculateConnectableSideByConnectedPositionsRequest(connector, pointerPosition));
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateSourceConnectorsToConnect, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateSourceConnectorsToConnect });
|
|
51
|
+
};
|
|
52
|
+
CalculateSourceConnectorsToConnect = __decorate([
|
|
53
|
+
FExecutionRegister(CalculateSourceConnectorsToConnectRequest)
|
|
54
|
+
], CalculateSourceConnectorsToConnect);
|
|
55
|
+
export { CalculateSourceConnectorsToConnect };
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateSourceConnectorsToConnect, decorators: [{
|
|
57
|
+
type: Injectable
|
|
58
|
+
}] });
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLXNvdXJjZS1jb25uZWN0b3JzLXRvLWNvbm5lY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNvbm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bm5lY3RhYmxlU2lkZXMoXG4gICAgY29ubmVjdG9yczogSUNvbm5lY3RvckFuZFJlY3RbXSxcbiAgICBwb2ludGVyUG9zaXRpb246IElQb2ludCxcbiAgKTogdm9pZCB7XG4gICAgY29ubmVjdG9ycy5mb3JFYWNoKCh4KSA9PiB7XG4gICAgICBpZiAoaXNDYWxjdWxhdGVNb2RlKHguZkNvbm5lY3Rvci51c2VyRkNvbm5lY3RhYmxlU2lkZSkpIHtcbiAgICAgICAgeC5mQ29ubmVjdG9yLmZDb25uZWN0YWJsZVNpZGUgPSB0aGlzLl9jYWxjdWxhdGVCeUNvbm5lY3RlZFBvc2l0aW9ucyhcbiAgICAgICAgICB4LmZDb25uZWN0b3IsXG4gICAgICAgICAgcG9pbnRlclBvc2l0aW9uLFxuICAgICAgICApO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgLyoqIERlbGVnYXRlcyB0byB0aGUgY29ubmVjdGVkLXBvc2l0aW9ucyBjYWxjdWxhdGlvbiBleGVjdXRpb24uICovXG4gIHByaXZhdGUgX2NhbGN1bGF0ZUJ5Q29ubmVjdGVkUG9zaXRpb25zKFxuICAgIGNvbm5lY3RvcjogRkNvbm5lY3RvckJhc2UsXG4gICAgcG9pbnRlclBvc2l0aW9uOiBJUG9pbnQsXG4gICk6IEVGQ29ubmVjdGFibGVTaWRlIHtcbiAgICByZXR1cm4gdGhpcy5fbWVkaWF0b3IuZXhlY3V0ZShcbiAgICAgIG5ldyBDYWxjdWxhdGVDb25uZWN0YWJsZVNpZGVCeUNvbm5lY3RlZFBvc2l0aW9uc1JlcXVlc3QoY29ubmVjdG9yLCBwb2ludGVyUG9zaXRpb24pLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './calculate-source-connectors-to-connect-request';
|
|
2
|
+
export * from './calculate-source-connectors-to-connect';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNvbm5lY3RvcnMvY2FsY3VsYXRlLXNvdXJjZS1jb25uZWN0b3JzLXRvLWNvbm5lY3QvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrREFBa0QsQ0FBQztBQUVqRSxjQUFjLDBDQUEwQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jYWxjdWxhdGUtc291cmNlLWNvbm5lY3RvcnMtdG8tY29ubmVjdC1yZXF1ZXN0JztcblxuZXhwb3J0ICogZnJvbSAnLi9jYWxjdWxhdGUtc291cmNlLWNvbm5lY3RvcnMtdG8tY29ubmVjdCc7XG4iXX0=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class CalculateTargetConnectorsToConnectRequest {
|
|
2
|
+
sourceConnector;
|
|
3
|
+
pointerPosition;
|
|
4
|
+
static fToken = Symbol('CalculateTargetConnectorsToConnectRequest');
|
|
5
|
+
constructor(sourceConnector, pointerPosition) {
|
|
6
|
+
this.sourceConnector = sourceConnector;
|
|
7
|
+
this.pointerPosition = pointerPosition;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLXRhcmdldC1jb25uZWN0b3JzLXRvLWNvbm5lY3QtcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY29ubmVjdG9ycy9jYWxjdWxhdGUtdGFyZ2V0LWNvbm5lY3RvcnMtdG8tY29ubmVjdC9jYWxjdWxhdGUtdGFyZ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