@foblex/flow 17.4.2 → 17.4.3
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-draggable/providers.d.ts +1 -1
- package/domain/f-node/providers.d.ts +1 -1
- package/domain/f-selection/providers.d.ts +1 -1
- package/domain/providers.d.ts +1 -1
- package/esm2022/f-draggable/f-canvas/f-canvas.drag-handler.mjs +5 -3
- package/esm2022/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +8 -6
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +8 -6
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-draggable.directive.mjs +2 -8
- package/esm2022/f-draggable/f-drop-to-group/drop-to-group-preparation/f-node-drop-to-group-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-drop-to-group/f-node-drop-to-group.drag-handler.mjs +7 -6
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.mjs +6 -5
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/source-connection.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/target-connection.drag-handler.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 -3
- 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 +5 -4
- 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 +5 -4
- package/esm2022/f-draggable/f-node-move/f-line-alignment.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +5 -5
- package/esm2022/f-draggable/f-node-move/line-alignment-preparation/line-alignment-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-node-move/point-bounds-limiter.mjs +8 -6
- package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/f-node-resize/resize-preparation/f-node-resize-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +8 -6
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +6 -5
- package/esm2022/f-draggable/index.mjs +1 -2
- package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +9 -6
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +4 -3
- package/f-backgroud/providers.d.ts +1 -1
- package/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-canvas/f-canvas.drag-handler.d.ts +3 -1
- package/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.d.ts +3 -2
- package/f-draggable/f-canvas/providers.d.ts +1 -1
- package/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.d.ts +3 -2
- package/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.d.ts +5 -4
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +5 -4
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.d.ts +4 -3
- package/f-draggable/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +0 -1
- package/f-draggable/f-drop-to-group/drop-to-group-preparation/f-node-drop-to-group-preparation.execution.d.ts +4 -3
- package/f-draggable/f-drop-to-group/f-node-drop-to-group.drag-handler.d.ts +4 -3
- package/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/connection-drag-handlers/source-connection.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/connection-drag-handlers/target-connection.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +1 -0
- package/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.d.ts +2 -1
- package/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.d.ts +2 -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/f-line-alignment.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/f-summary-node-move.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-move/line-alignment-preparation/line-alignment-preparation.execution.d.ts +5 -4
- package/f-draggable/f-node-move/point-bounds-limiter.d.ts +4 -3
- package/f-draggable/f-node-move/providers.d.ts +1 -1
- package/f-draggable/f-node-resize/f-node-resize.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-resize/providers.d.ts +1 -1
- package/f-draggable/f-node-resize/resize-preparation/f-node-resize-preparation.execution.d.ts +4 -3
- package/f-draggable/f-node-rotate/f-node-rotate.drag-handler.d.ts +2 -1
- package/f-draggable/f-node-rotate/providers.d.ts +1 -1
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +1 -0
- package/f-draggable/index.d.ts +0 -1
- package/f-draggable/providers.d.ts +1 -1
- package/f-external-item/domain/f-external-item.drag-handler.d.ts +5 -4
- package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +1 -0
- package/f-external-item/domain/providers.d.ts +1 -1
- package/f-minimap/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +94 -82
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +1 -1
- package/esm2022/f-draggable/f-injector.mjs +0 -19
- package/f-draggable/f-injector.d.ts +0 -8
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { Point, RectExtensions } from '@foblex/2d';
|
|
2
2
|
import { FExternalItemCreatePlaceholderRequest, FExternalItemCreatePreviewRequest } from '../../f-external-item';
|
|
3
|
-
import { FDragHandlerResult
|
|
3
|
+
import { FDragHandlerResult } from '../../f-draggable';
|
|
4
4
|
import { BrowserService } from '@foblex/platform';
|
|
5
5
|
import { FMediator } from '@foblex/mediator';
|
|
6
6
|
export class FExternalItemDragHandler {
|
|
7
7
|
_fExternalItem;
|
|
8
8
|
fEventType = 'external-item';
|
|
9
9
|
fData;
|
|
10
|
-
_fResult
|
|
11
|
-
_fMediator
|
|
12
|
-
_fBrowser
|
|
10
|
+
_fResult;
|
|
11
|
+
_fMediator;
|
|
12
|
+
_fBrowser;
|
|
13
13
|
_preview;
|
|
14
14
|
_placeholder;
|
|
15
15
|
_onPointerDownRect = RectExtensions.initialize();
|
|
16
16
|
get _fItemHost() {
|
|
17
17
|
return this._fExternalItem.hostElement;
|
|
18
18
|
}
|
|
19
|
-
constructor(_fExternalItem) {
|
|
19
|
+
constructor(_injector, _fExternalItem) {
|
|
20
20
|
this._fExternalItem = _fExternalItem;
|
|
21
21
|
this.fData = { fData: _fExternalItem.fData };
|
|
22
|
+
this._fResult = _injector.get(FDragHandlerResult);
|
|
23
|
+
this._fMediator = _injector.get(FMediator);
|
|
24
|
+
this._fBrowser = _injector.get(BrowserService);
|
|
22
25
|
}
|
|
23
26
|
prepareDragSequence() {
|
|
24
27
|
this._onPointerDownRect = this._getExternalItemRect();
|
|
@@ -68,4 +71,4 @@ export class FExternalItemDragHandler {
|
|
|
68
71
|
function setTransform({ x, y }) {
|
|
69
72
|
return `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)`;
|
|
70
73
|
}
|
|
71
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1leHRlcm5hbC1pdGVtLmRyYWctaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1leHRlcm5hbC1pdGVtL2RvbWFpbi9mLWV4dGVybmFsLWl0ZW0uZHJhZy1oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBaUIsS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNsRSxPQUFPLEVBRUwscUNBQXFDLEVBQ3JDLGlDQUFpQyxFQUVsQyxNQUFNLHVCQUF1QixDQUFDO0FBQy9CLE9BQU8sRUFBRSxrQkFBa0IsRUFBaUIsTUFBTSxtQkFBbUIsQ0FBQztBQUN0RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDbEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRzdDLE1BQU0sT0FBTyx3QkFBd0I7SUFtQnpCO0lBakJILFVBQVUsR0FBRyxlQUFlLENBQUM7SUFDN0IsS0FBSyxDQUFNO0lBRUQsUUFBUSxDQUErQztJQUN2RCxVQUFVLENBQVk7SUFDdEIsU0FBUyxDQUFpQjtJQUVuQyxRQUFRLENBQXVDO0lBQy9DLFlBQVksQ0FBdUM7SUFDbkQsa0JBQWtCLEdBQVUsY0FBYyxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBRWhFLElBQVksVUFBVTtRQUNwQixPQUFPLElBQUksQ0FBQyxjQUFjLENBQUMsV0FBVyx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W5kKHkpIH1weCwgMClgO1xufVxuXG4iXX0=
|
package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable, Injector } from '@angular/core';
|
|
3
3
|
import { FExternalItemPreparationRequest } from './f-external-item-preparation.request';
|
|
4
4
|
import { Point } from '@foblex/2d';
|
|
5
5
|
import { FExecutionRegister } from '@foblex/mediator';
|
|
@@ -13,6 +13,7 @@ let FExternalItemPreparationExecution = class FExternalItemPreparationExecution
|
|
|
13
13
|
_fExternalItemService = inject(FExternalItemService);
|
|
14
14
|
_fDraggableDataContext = inject(FDraggableDataContext);
|
|
15
15
|
_fComponentsStore = inject(FComponentsStore);
|
|
16
|
+
_injector = inject(Injector);
|
|
16
17
|
get _fHost() {
|
|
17
18
|
return this._fComponentsStore.fFlow.hostElement;
|
|
18
19
|
}
|
|
@@ -23,7 +24,7 @@ let FExternalItemPreparationExecution = class FExternalItemPreparationExecution
|
|
|
23
24
|
this._fDraggableDataContext.onPointerDownScale = 1;
|
|
24
25
|
this._fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition()).elementTransform(this._fHost);
|
|
25
26
|
this._fDraggableDataContext.draggableItems = [
|
|
26
|
-
new FExternalItemDragHandler(this._getExternalItem(request.event.targetElement))
|
|
27
|
+
new FExternalItemDragHandler(this._injector, this._getExternalItem(request.event.targetElement))
|
|
27
28
|
];
|
|
28
29
|
}
|
|
29
30
|
_isValid(request) {
|
|
@@ -48,4 +49,4 @@ export { FExternalItemPreparationExecution };
|
|
|
48
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FExternalItemPreparationExecution, decorators: [{
|
|
49
50
|
type: Injectable
|
|
50
51
|
}] });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
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RFeHRlcm5hbEl0ZW0ocmVxdWVzdC5ldmVudC50YXJnZXRFbGVtZW50LCB0aGlzLl9nZXRFeHRlcm5hbEl0ZW0ocmVxdWVzdC5ldmVudC50YXJnZXRFbGVtZW50KSk7XG4gIH1cblxuICBwcml2YXRlIF9pc1ZhbGlkRXh0ZXJuYWxJdGVtKGVsZW1lbnQ6IEhUTUxFbGVtZW50LCBmRXh0ZXJuYWxJdGVtPzogRkV4dGVybmFsSXRlbUJhc2UpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNFeHRlcm5hbEl0ZW0oZWxlbWVudCkgJiYgISFmRXh0ZXJuYWxJdGVtICYmICFmRXh0ZXJuYWxJdGVtLmZEaXNhYmxlZDtcbiAgfVxuXG4gIHByaXZhdGUgX2dldEV4dGVybmFsSXRlbSh0YXJnZXRFbGVtZW50OiBIVE1MRWxlbWVudCk6IEZFeHRlcm5hbEl0ZW1CYXNlPGFueT4gfCB1bmRlZmluZWQge1xuICAgIHJldHVybiB0aGlzLl9mRXh0ZXJuYWxJdGVtU2VydmljZS5nZXRJdGVtKGdldEV4dGVybmFsSXRlbSh0YXJnZXRFbGVtZW50KSk7XG4gIH1cblxuICBwcml2YXRlIF9pc1ZhbGlkVHJpZ2dlcihyZXF1ZXN0OiBGRXh0ZXJuYWxJdGVtUHJlcGFyYXRpb25SZXF1ZXN0KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIGlzVmFsaWRFdmVudFRyaWdnZXIocmVxdWVzdC5ldmVudC5vcmlnaW5hbEV2ZW50LCByZXF1ZXN0LmZUcmlnZ2VyKTtcbiAgfVxufVxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FBackgroundComponent } from './f-background.component';
|
|
2
2
|
import { FRectPatternComponent } from './f-rect-pattern';
|
|
3
3
|
import { FCirclePatternComponent } from './f-circle-pattern';
|
|
4
|
-
export declare const F_BACKGROUND_PROVIDERS: (typeof
|
|
4
|
+
export declare const F_BACKGROUND_PROVIDERS: (typeof FBackgroundComponent | typeof FRectPatternComponent | typeof FCirclePatternComponent)[];
|
|
@@ -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 FConnectionTextComponent | typeof FConnectionTextPathDirective | typeof FConnectionGradientComponent | typeof FConnectionPathComponent | typeof FConnectionSelectionComponent | typeof FConnectionComponent | typeof FConnectionCenterDirective | typeof FConnectionForCreateComponent | typeof FMarkerDirective | typeof FSnapConnectionComponent)[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/2d';
|
|
2
2
|
import { IFDragHandler } from '../f-drag-handler';
|
|
3
|
+
import { Injector } from '@angular/core';
|
|
3
4
|
export declare class FCanvasDragHandler implements IFDragHandler {
|
|
4
5
|
fEventType: string;
|
|
5
|
-
private _fComponentsStore;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
6
7
|
private _onPointerDownPosition;
|
|
8
|
+
constructor(_injector: Injector);
|
|
7
9
|
prepareDragSequence(): void;
|
|
8
10
|
onPointerMove(difference: IPoint): void;
|
|
9
11
|
onPointerUp(): void;
|
|
@@ -2,8 +2,9 @@ import { FCanvasMovePreparationRequest } from './f-canvas-move-preparation.reque
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FCanvasMovePreparationExecution implements IExecution<FCanvasMovePreparationRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
6
|
-
private _fDraggableDataContext;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
|
+
private readonly _fDraggableDataContext;
|
|
7
|
+
private readonly _injector;
|
|
7
8
|
private get _fHost();
|
|
8
9
|
handle(request: FCanvasMovePreparationRequest): void;
|
|
9
10
|
private _isValid;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FCanvasMovePreparationExecution } from './move-preparation';
|
|
2
2
|
import { FCanvasMoveFinalizeExecution } from './move-finalize';
|
|
3
|
-
export declare const CANVAS_PROVIDERS: (typeof
|
|
3
|
+
export declare const CANVAS_PROVIDERS: (typeof FCanvasMovePreparationExecution | typeof FCanvasMoveFinalizeExecution)[];
|
|
@@ -2,8 +2,9 @@ import { IHandler } from '@foblex/mediator';
|
|
|
2
2
|
import { FCreateConnectionDragHandlerPreparationRequest } from './f-create-connection-drag-handler-preparation.request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FCreateConnectionDragHandlerPreparationExecution implements IHandler<FCreateConnectionDragHandlerPreparationRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
6
|
-
private _fDraggableDataContext;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
|
+
private readonly _fDraggableDataContext;
|
|
7
|
+
private readonly _injector;
|
|
7
8
|
private get _fHost();
|
|
8
9
|
private get _transform();
|
|
9
10
|
handle(request: FCreateConnectionDragHandlerPreparationRequest): void;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { IFDragHandler } from '../../f-drag-handler';
|
|
2
2
|
import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class FCreateConnectionDragHandler implements IFDragHandler {
|
|
5
6
|
private _fOutputOrOutlet;
|
|
6
7
|
fEventType: string;
|
|
7
8
|
fData: any;
|
|
8
|
-
private _fResult;
|
|
9
|
-
private _fMediator;
|
|
10
|
-
private _fComponentsStore;
|
|
9
|
+
private readonly _fResult;
|
|
10
|
+
private readonly _fMediator;
|
|
11
|
+
private readonly _fComponentsStore;
|
|
11
12
|
private readonly _toConnectorRect;
|
|
12
13
|
private get _fConnection();
|
|
13
14
|
private get _fSnapConnection();
|
|
14
15
|
private _fOutputWithRect;
|
|
15
16
|
private _canBeConnectedInputs;
|
|
16
|
-
constructor(_fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase, _onPointerDownPosition: IPoint);
|
|
17
|
+
constructor(_injector: Injector, _fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase, _onPointerDownPosition: IPoint);
|
|
17
18
|
prepareDragSequence(): void;
|
|
18
19
|
private _getAndMarkCanBeConnectedInputs;
|
|
19
20
|
private _initializeSnapConnection;
|
package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { IFDragHandler } from '../../f-drag-handler';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class FReassignConnectionDragHandler implements IFDragHandler {
|
|
5
6
|
private _fConnection;
|
|
6
7
|
fEventType: string;
|
|
7
8
|
fData: any;
|
|
8
|
-
private _fResult;
|
|
9
|
-
private _fMediator;
|
|
10
|
-
private _fComponentsStore;
|
|
9
|
+
private readonly _fResult;
|
|
10
|
+
private readonly _fMediator;
|
|
11
|
+
private readonly _fComponentsStore;
|
|
11
12
|
private readonly _toConnectorRect;
|
|
12
13
|
private get _fSnapConnection();
|
|
13
14
|
private _fOutputWithRect;
|
|
@@ -15,7 +16,7 @@ export declare class FReassignConnectionDragHandler implements IFDragHandler {
|
|
|
15
16
|
private _canBeConnectedInputs;
|
|
16
17
|
private get _fOutput();
|
|
17
18
|
private get _fInput();
|
|
18
|
-
constructor(_fConnection: FConnectionBase);
|
|
19
|
+
constructor(_injector: Injector, _fConnection: FConnectionBase);
|
|
19
20
|
prepareDragSequence(): void;
|
|
20
21
|
private _getAndMarkCanBeConnectedInputs;
|
|
21
22
|
private _initializeSnapConnection;
|
|
@@ -2,9 +2,10 @@ import { FReassignConnectionPreparationRequest } from './f-reassign-connection-p
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FReassignConnectionPreparationExecution implements IExecution<FReassignConnectionPreparationRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fComponentsStore;
|
|
7
|
-
private _fDraggableDataContext;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fDraggableDataContext;
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private _fConnection;
|
|
9
10
|
private get _transform();
|
|
10
11
|
private get _fHost();
|
|
@@ -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 FCreateConnectionDragHandlerPreparationExecution | typeof FCreateConnectionFinalizeExecution | typeof FReassignConnectionPreparationExecution | typeof FReassignConnectionFinalizeExecution | typeof FCreateConnectionFromOutletPreparationExecution | typeof GetFirstConnectableOutputExecution | typeof FCreateConnectionFromOutputPreparationExecution | typeof FCreateConnectionPreparationExecution)[];
|
|
@@ -15,7 +15,6 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
|
|
|
15
15
|
private _fResult;
|
|
16
16
|
private _fMediator;
|
|
17
17
|
private _fPlatform;
|
|
18
|
-
private _injector;
|
|
19
18
|
disabled: boolean;
|
|
20
19
|
get hostElement(): HTMLElement;
|
|
21
20
|
fMultiSelectTrigger: FEventTrigger;
|
|
@@ -2,9 +2,10 @@ import { FNodeDropToGroupPreparationRequest } from './f-node-drop-to-group-prepa
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FNodeDropToGroupPreparationExecution implements IExecution<FNodeDropToGroupPreparationRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fDraggableDataContext;
|
|
7
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fDraggableDataContext;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private get _fNodes();
|
|
9
10
|
private get _transform();
|
|
10
11
|
private get _fCanvasPosition();
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { IPoint } from '@foblex/2d';
|
|
2
3
|
import { IFDragHandler } from '../f-drag-handler';
|
|
3
4
|
import { INodeWithRect } from '../domain';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class FNodeDropToGroupDragHandler implements IFDragHandler {
|
|
6
7
|
private notDraggedNodesRects;
|
|
7
|
-
private _fComponentsStore;
|
|
8
|
-
private _fDraggableDataContext;
|
|
8
|
+
private readonly _fComponentsStore;
|
|
9
|
+
private readonly _fDraggableDataContext;
|
|
9
10
|
fEventType: string;
|
|
10
11
|
private _DEBOUNCE_TIME;
|
|
11
12
|
private get _transform();
|
|
12
13
|
private _onPointerDownPosition;
|
|
13
14
|
private _debounceTimer;
|
|
14
15
|
fNodeWithRect: INodeWithRect | null;
|
|
15
|
-
constructor(notDraggedNodesRects: INodeWithRect[]);
|
|
16
|
+
constructor(_injector: Injector, notDraggedNodesRects: INodeWithRect[]);
|
|
16
17
|
private _toggleParentNode;
|
|
17
18
|
private _getNewPosition;
|
|
18
19
|
private _isNodeInsideAnotherNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/2d';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
|
+
import { Injector } from '@angular/core';
|
|
3
4
|
export declare class BaseConnectionDragHandler {
|
|
4
5
|
fConnection: FConnectionBase;
|
|
5
6
|
private readonly _fMediator;
|
|
@@ -10,7 +11,7 @@ export declare class BaseConnectionDragHandler {
|
|
|
10
11
|
private get _fInput();
|
|
11
12
|
private _sourceDifference;
|
|
12
13
|
private _targetDifference;
|
|
13
|
-
constructor(fConnection: FConnectionBase);
|
|
14
|
+
constructor(_injector: Injector, fConnection: FConnectionBase);
|
|
14
15
|
private _initialize;
|
|
15
16
|
setSourceDifference(difference: IPoint): void;
|
|
16
17
|
setTargetDifference(difference: IPoint): void;
|
package/f-draggable/f-node-move/connection-drag-handlers/source-connection.drag-handler.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseConnectionDragHandler } from './base-connection.drag-handler';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class SourceConnectionDragHandler extends BaseConnectionDragHandler {
|
|
5
|
-
constructor(fConnection: FConnectionBase);
|
|
6
|
+
constructor(injector: Injector, fConnection: FConnectionBase);
|
|
6
7
|
setSourceDifference(difference: IPoint): void;
|
|
7
8
|
}
|
package/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { BaseConnectionDragHandler } from './base-connection.drag-handler';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class SourceTargetConnectionDragHandler extends BaseConnectionDragHandler {
|
|
5
6
|
private readonly _callTracker;
|
|
6
|
-
constructor(fConnection: FConnectionBase);
|
|
7
|
+
constructor(injector: Injector, fConnection: FConnectionBase);
|
|
7
8
|
setSourceDifference(difference: IPoint): void;
|
|
8
9
|
setTargetDifference(difference: IPoint): void;
|
|
9
10
|
private _checkAndTriggerAction;
|
package/f-draggable/f-node-move/connection-drag-handlers/target-connection.drag-handler.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FConnectionBase } from '../../../f-connection';
|
|
2
2
|
import { BaseConnectionDragHandler } from './base-connection.drag-handler';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class TargetConnectionDragHandler extends BaseConnectionDragHandler {
|
|
5
|
-
constructor(fConnection: FConnectionBase);
|
|
6
|
+
constructor(injector: Injector, fConnection: FConnectionBase);
|
|
6
7
|
setTargetDifference(difference: IPoint): void;
|
|
7
8
|
}
|
|
@@ -6,6 +6,7 @@ export declare class CreateMoveNodesDragModelFromSelectionExecution implements I
|
|
|
6
6
|
private readonly _fMediator;
|
|
7
7
|
private readonly _fComponentsStore;
|
|
8
8
|
private readonly _fDraggableDataContext;
|
|
9
|
+
private readonly _injector;
|
|
9
10
|
handle(request: CreateMoveNodesDragModelFromSelectionRequest): FSummaryNodeMoveDragHandler;
|
|
10
11
|
private _getDraggedNodes;
|
|
11
12
|
private _getNodesFromSelection;
|
|
@@ -2,7 +2,8 @@ import { PutInputConnectionHandlersToArrayRequest } from './put-input-connection
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PutInputConnectionHandlersToArrayExecution implements IExecution<PutInputConnectionHandlersToArrayRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
|
+
private readonly _injector;
|
|
6
7
|
private get _fConnections();
|
|
7
8
|
handle(request: PutInputConnectionHandlersToArrayRequest): void;
|
|
8
9
|
private _getInputConnections;
|
|
@@ -4,7 +4,8 @@ import { FNodeBase } from '../../../../../f-node';
|
|
|
4
4
|
import { FConnectionBase } from '../../../../../f-connection';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PutOutputConnectionHandlersToArrayExecution implements IExecution<PutOutputConnectionHandlersToArrayRequest, void> {
|
|
7
|
-
private _fComponentsStore;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private get _fConnections();
|
|
9
10
|
handle(request: PutOutputConnectionHandlersToArrayRequest): void;
|
|
10
11
|
_getOutputConnections(node: FNodeBase): FConnectionBase[];
|
|
@@ -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 PutOutputConnectionHandlersToArrayExecution | typeof PutInputConnectionHandlersToArrayExecution | typeof CreateMoveNodesDragModelFromSelectionExecution | typeof CalculateCommonNodeMoveLimitsExecution | typeof CalculateNodeMoveLimitsExecution)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMinMaxPoint, IPoint, IRect, ISize } from '@foblex/2d';
|
|
2
2
|
import { IFDragHandler } from '../index';
|
|
3
3
|
import { ILineAlignmentResult, LineService } from '../../f-line-alignment';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class FLineAlignmentDragHandler implements IFDragHandler {
|
|
5
6
|
private _lineService;
|
|
6
7
|
private _size;
|
|
@@ -11,7 +12,7 @@ export declare class FLineAlignmentDragHandler implements IFDragHandler {
|
|
|
11
12
|
private readonly _fComponentsStore;
|
|
12
13
|
private _debounceTimer;
|
|
13
14
|
private readonly _transform;
|
|
14
|
-
constructor(_lineService: LineService, _size: ISize, _draggedNodeRect: IRect, _rects: IRect[], _restrictions: IMinMaxPoint);
|
|
15
|
+
constructor(_injector: Injector, _lineService: LineService, _size: ISize, _draggedNodeRect: IRect, _rects: IRect[], _restrictions: IMinMaxPoint);
|
|
15
16
|
onPointerMove(difference: IPoint): void;
|
|
16
17
|
private _drawIntersectingLines;
|
|
17
18
|
private _getDifference;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMinMaxPoint, IPoint, IRect } from '@foblex/2d';
|
|
2
2
|
import { IFDragHandler } from '../f-drag-handler';
|
|
3
3
|
import { FNodeMoveDragHandler } from './f-node-move.drag-handler';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class FSummaryNodeMoveDragHandler implements IFDragHandler {
|
|
5
6
|
limits: IMinMaxPoint;
|
|
6
7
|
fHandlers: FNodeMoveDragHandler[];
|
|
@@ -9,7 +10,7 @@ export declare class FSummaryNodeMoveDragHandler implements IFDragHandler {
|
|
|
9
10
|
readonly fData: any;
|
|
10
11
|
private readonly _fComponentStore;
|
|
11
12
|
private readonly _fBoundsLimiter;
|
|
12
|
-
constructor(limits: IMinMaxPoint, fHandlers: FNodeMoveDragHandler[], commonRect: IRect);
|
|
13
|
+
constructor(_injector: Injector, limits: IMinMaxPoint, fHandlers: FNodeMoveDragHandler[], commonRect: IRect);
|
|
13
14
|
onPointerMove(difference: IPoint): void;
|
|
14
15
|
onPointerUp(): void;
|
|
15
16
|
calculateRestrictedDifference(difference: IPoint): IPoint;
|
package/f-draggable/f-node-move/line-alignment-preparation/line-alignment-preparation.execution.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { LineAlignmentPreparationRequest } from './line-alignment-preparation.re
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LineAlignmentPreparationExecution implements IExecution<LineAlignmentPreparationRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fComponentsStore;
|
|
7
|
-
private _fDraggableDataContext;
|
|
8
|
-
private _fBrowser;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fDraggableDataContext;
|
|
8
|
+
private readonly _fBrowser;
|
|
9
|
+
private readonly _injector;
|
|
9
10
|
private _lineService;
|
|
10
11
|
handle(request: LineAlignmentPreparationRequest): void;
|
|
11
12
|
private _addLineAlignmentDragHandler;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { IMinMaxPoint, IPoint } from '@foblex/2d';
|
|
2
|
+
import { Injector } from '@angular/core';
|
|
2
3
|
export declare class PointBoundsLimiter {
|
|
3
4
|
private _onPointerDown;
|
|
4
5
|
private readonly _limit;
|
|
5
6
|
private readonly _fComponentsStore;
|
|
6
|
-
private _vCellSize;
|
|
7
|
-
private _hCellSize;
|
|
8
|
-
constructor(_onPointerDown: IPoint, _limit: IMinMaxPoint);
|
|
7
|
+
private readonly _vCellSize;
|
|
8
|
+
private readonly _hCellSize;
|
|
9
|
+
constructor(_injector: Injector, _onPointerDown: IPoint, _limit: IMinMaxPoint);
|
|
9
10
|
limit(difference: IPoint, adjustCellSize: boolean): IPoint;
|
|
10
11
|
private _cellSizeStrategies;
|
|
11
12
|
private _applyCellSize;
|
|
@@ -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").PutOutputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutInputConnectionHandlersToArrayExecution | typeof FNodeMoveFinalizeExecution | typeof FNodeMovePreparationExecution | typeof import("./create-move-nodes-drag-model-from-selection").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateCommonNodeMoveLimitsExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateNodeMoveLimitsExecution | typeof LineAlignmentPreparationExecution)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/2d';
|
|
2
2
|
import { IFDragHandler } from '../f-drag-handler';
|
|
3
3
|
import { EFResizeHandleType, FNodeBase } from '../../f-node';
|
|
4
|
+
import { Injector } from '@angular/core';
|
|
4
5
|
export declare class FNodeResizeDragHandler implements IFDragHandler {
|
|
5
6
|
private _fNode;
|
|
6
7
|
private _fResizeHandleType;
|
|
@@ -9,7 +10,7 @@ export declare class FNodeResizeDragHandler implements IFDragHandler {
|
|
|
9
10
|
private readonly _fMediator;
|
|
10
11
|
private _originalRect;
|
|
11
12
|
private _resizeRestrictions;
|
|
12
|
-
constructor(_fNode: FNodeBase, _fResizeHandleType: EFResizeHandleType);
|
|
13
|
+
constructor(_injector: Injector, _fNode: FNodeBase, _fResizeHandleType: EFResizeHandleType);
|
|
13
14
|
prepareDragSequence(): void;
|
|
14
15
|
private _getOriginalNodeRect;
|
|
15
16
|
private _getNodeResizeRestrictions;
|
|
@@ -6,4 +6,4 @@ import { ApplyParentResizeRestrictionsExecution } from './apply-parent-resize-re
|
|
|
6
6
|
import { CalculateChangedSizeExecution } from './calculate-changed-size';
|
|
7
7
|
import { CalculateChangedPositionExecution } from './calculate-changed-position';
|
|
8
8
|
import { GetNormalizedChildrenNodesRectExecution } from './get-normalized-children-nodes-rect';
|
|
9
|
-
export declare const NODE_RESIZE_PROVIDERS: (typeof
|
|
9
|
+
export declare const NODE_RESIZE_PROVIDERS: (typeof FNodeResizePreparationExecution | typeof FNodeResizeFinalizeExecution | typeof ApplyChildResizeRestrictionsExecution | typeof ApplyParentResizeRestrictionsExecution | typeof CalculateChangedPositionExecution | typeof CalculateChangedSizeExecution | typeof GetNormalizedChildrenNodesRectExecution | typeof GetNodeResizeRestrictionsExecution)[];
|
package/f-draggable/f-node-resize/resize-preparation/f-node-resize-preparation.execution.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { FNodeResizePreparationRequest } from './f-node-resize-preparation.reque
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FNodeResizePreparationExecution implements IExecution<FNodeResizePreparationRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fComponentsStore;
|
|
7
|
-
private _fDraggableDataContext;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fDraggableDataContext;
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private get _transform();
|
|
9
10
|
private get _fHost();
|
|
10
11
|
private _fNode;
|
|
@@ -2,6 +2,7 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { IFDragHandler } from '../f-drag-handler';
|
|
3
3
|
import { FNodeBase } from '../../f-node';
|
|
4
4
|
import { BaseConnectionDragHandler } from '../f-node-move';
|
|
5
|
+
import { Injector } from '@angular/core';
|
|
5
6
|
export declare class FNodeRotateDragHandler implements IFDragHandler {
|
|
6
7
|
private _fNode;
|
|
7
8
|
private _fSourceHandlers;
|
|
@@ -16,7 +17,7 @@ export declare class FNodeRotateDragHandler implements IFDragHandler {
|
|
|
16
17
|
private _onDownPoint;
|
|
17
18
|
private _fNodeRect;
|
|
18
19
|
private get _transform();
|
|
19
|
-
constructor(_fNode: FNodeBase, _fSourceHandlers: {
|
|
20
|
+
constructor(_injector: Injector, _fNode: FNodeBase, _fSourceHandlers: {
|
|
20
21
|
connection: BaseConnectionDragHandler;
|
|
21
22
|
connector: IPoint;
|
|
22
23
|
}[], _fTargetHandlers: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FNodeRotateFinalizeExecution } from './rotate-finalize';
|
|
2
2
|
import { FNodeRotatePreparationExecution } from './rotate-preparation';
|
|
3
|
-
export declare const NODE_ROTATE_PROVIDERS: (typeof
|
|
3
|
+
export declare const NODE_ROTATE_PROVIDERS: (typeof FNodeRotatePreparationExecution | typeof FNodeRotateFinalizeExecution)[];
|
package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare class FNodeRotatePreparationExecution implements IExecution<FNode
|
|
|
5
5
|
private readonly _fMediator;
|
|
6
6
|
private readonly _fComponentsStore;
|
|
7
7
|
private readonly _fDraggableDataContext;
|
|
8
|
+
private readonly _injector;
|
|
8
9
|
private get _transform();
|
|
9
10
|
private get _fHost();
|
|
10
11
|
private _fNode;
|
package/f-draggable/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './f-single-select';
|
|
|
10
10
|
export * from './f-draggable.directive';
|
|
11
11
|
export * from './f-draggable-base';
|
|
12
12
|
export * from './f-draggable-data-context';
|
|
13
|
-
export * from './f-injector';
|
|
14
13
|
export * from './f-selection-change-event';
|
|
15
14
|
export * from './i-f-drag-and-drop-plugin';
|
|
16
15
|
export * from './providers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./f-canvas").
|
|
1
|
+
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./f-canvas").FCanvasMovePreparationExecution | typeof import("./f-canvas").FCanvasMoveFinalizeExecution | typeof import("./f-connection").FCreateConnectionDragHandlerPreparationExecution | typeof import("./f-connection").FCreateConnectionFinalizeExecution | typeof import("./f-connection").FReassignConnectionPreparationExecution | typeof import("./f-connection").FReassignConnectionFinalizeExecution | typeof import("../f-external-item").FExternalItemPreparationExecution | typeof import("../f-external-item").FExternalItemFinalizeExecution | typeof import("./f-drop-to-group").FNodeDropToGroupPreparationExecution | typeof import("./f-drop-to-group").FNodeDropToGroupFinalizeExecution | typeof import("./f-node-move").PutOutputConnectionHandlersToArrayExecution | typeof import("./f-node-move").PutInputConnectionHandlersToArrayExecution | typeof import("./f-node-move").FNodeMoveFinalizeExecution | typeof import("./f-node-move").FNodeMovePreparationExecution | typeof import("./f-node-move").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./f-node-move").CalculateCommonNodeMoveLimitsExecution | typeof import("./f-node-move").CalculateNodeMoveLimitsExecution | typeof import("./f-node-move").LineAlignmentPreparationExecution | typeof import("./f-node-resize").FNodeResizePreparationExecution | typeof import("./f-node-resize").FNodeResizeFinalizeExecution | typeof import("./f-node-rotate").FNodeRotatePreparationExecution | typeof import("./f-node-rotate").FNodeRotateFinalizeExecution | typeof import("./f-connection").FCreateConnectionFromOutletPreparationExecution | typeof import("./f-connection").GetFirstConnectableOutputExecution | typeof import("./f-connection").FCreateConnectionFromOutputPreparationExecution | typeof import("./f-connection").FCreateConnectionPreparationExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./f-single-select").FSingleSelectExecution | typeof import("../f-external-item").FExternalItemCreatePlaceholderExecution | typeof import("../f-external-item").FExternalItemCreatePreviewExecution | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | 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").GetNormalizedChildrenNodesRectExecution | typeof import("./f-node-resize").GetNodeResizeRestrictionsExecution | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
|