@foblex/flow 12.3.7 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -9
- package/domain/emit-transform-changes/emit-transform-changes.execution.d.ts +11 -0
- package/domain/emit-transform-changes/emit-transform-changes.request.d.ts +2 -0
- package/domain/emit-transform-changes/index.d.ts +2 -0
- package/domain/get-external-nodes-rect/get-external-nodes-rect.execution.d.ts +14 -0
- package/domain/get-external-nodes-rect/get-external-nodes-rect.request.d.ts +2 -0
- package/domain/get-external-nodes-rect/index.d.ts +2 -0
- package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +2 -0
- package/domain/index.d.ts +3 -0
- package/domain/intersections/rounded-rect/rounded-rect.d.ts +1 -0
- package/domain/providers.d.ts +4 -1
- package/domain/subscribe-on-transform-changes/index.d.ts +2 -0
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.d.ts +13 -0
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.d.ts +2 -0
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +25 -0
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.request.mjs +3 -0
- package/esm2022/domain/emit-transform-changes/index.mjs +3 -0
- package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.execution.mjs +35 -0
- package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.request.mjs +3 -0
- package/esm2022/domain/get-external-nodes-rect/index.mjs +3 -0
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +8 -6
- package/esm2022/domain/index.mjs +4 -1
- package/esm2022/domain/intersections/rounded-rect/rounded-rect.mjs +31 -5
- package/esm2022/domain/providers.mjs +7 -1
- package/esm2022/domain/subscribe-on-transform-changes/index.mjs +3 -0
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +28 -0
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs +3 -0
- package/esm2022/f-canvas/f-canvas.component.mjs +5 -4
- package/esm2022/f-canvas/index.mjs +1 -2
- package/esm2022/f-canvas/providers.mjs +1 -3
- package/esm2022/f-connection/common/f-connection-base.mjs +2 -2
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +10 -2
- package/esm2022/f-connection/common/f-path/get-path-marker-id.mjs +2 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +1 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +4 -1
- package/esm2022/f-draggable/e-f-draggable-type.mjs +2 -2
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.mjs +1 -1
- package/esm2022/f-draggable/f-draggable-base.mjs +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +44 -9
- package/esm2022/f-draggable/i-f-drag-and-drop-plugin.mjs +3 -0
- package/esm2022/f-draggable/index.mjs +2 -1
- package/esm2022/f-draggable/providers.mjs +4 -2
- package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +3 -1
- package/esm2022/f-draggable/single-select/single-select.validator.mjs +9 -5
- package/esm2022/f-flow/f-flow.component.mjs +8 -6
- package/esm2022/f-flow.module.mjs +17 -7
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +43 -0
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.mjs +13 -0
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs +3 -0
- package/esm2022/f-minimap/domain/f-minimap-data.mjs +12 -0
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +43 -0
- package/esm2022/f-minimap/domain/index.mjs +7 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs +5 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +27 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs +7 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +26 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs +7 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs +5 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +52 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs +9 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs +30 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs +7 -0
- package/esm2022/f-minimap/domain/providers.mjs +9 -0
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +65 -0
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +78 -0
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +40 -0
- package/esm2022/f-minimap/f-minimap.component.mjs +72 -0
- package/esm2022/f-minimap/index.mjs +7 -0
- package/esm2022/f-minimap/providers.mjs +11 -0
- package/esm2022/f-node/f-node.directive.mjs +12 -4
- package/esm2022/f-storage/f-components-store.mjs +1 -1
- package/esm2022/f-storage/f-transform-store.mjs +12 -0
- package/esm2022/f-storage/index.mjs +2 -1
- package/esm2022/f-zoom/f-zoom-base.mjs +97 -0
- package/esm2022/f-zoom/f-zoom.directive.mjs +59 -0
- package/esm2022/f-zoom/index.mjs +4 -0
- package/esm2022/f-zoom/providers.mjs +5 -0
- package/esm2022/infrastructure/pipeline/pipeline.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/f-canvas/index.d.ts +0 -1
- package/f-canvas/providers.d.ts +1 -2
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +2 -1
- package/f-draggable/e-f-draggable-type.d.ts +1 -1
- package/f-draggable/f-draggable-base.d.ts +2 -2
- package/f-draggable/f-draggable.directive.d.ts +8 -4
- package/f-draggable/i-f-drag-and-drop-plugin.d.ts +9 -0
- package/f-draggable/index.d.ts +1 -0
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.validator.d.ts +3 -1
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-flow.module.d.ts +12 -8
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.d.ts +18 -0
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.d.ts +9 -0
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/index.d.ts +2 -0
- package/f-minimap/domain/f-minimap-data.d.ts +7 -0
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +21 -0
- package/f-minimap/domain/index.d.ts +6 -0
- package/f-minimap/domain/minimap-drag-finalize/index.d.ts +4 -0
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.d.ts +11 -0
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.d.ts +5 -0
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.d.ts +11 -0
- package/f-minimap/domain/minimap-drag-finalize/providers.d.ts +3 -0
- package/f-minimap/domain/minimap-drag-preparation/index.d.ts +4 -0
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.d.ts +17 -0
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.d.ts +7 -0
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.d.ts +13 -0
- package/f-minimap/domain/minimap-drag-preparation/providers.d.ts +3 -0
- package/f-minimap/domain/providers.d.ts +2 -0
- package/f-minimap/f-minimap-canvas.directive.d.ts +22 -0
- package/f-minimap/f-minimap-flow.directive.d.ts +28 -0
- package/f-minimap/f-minimap-view.directive.d.ts +14 -0
- package/f-minimap/f-minimap.component.d.ts +26 -0
- package/f-minimap/index.d.ts +6 -0
- package/f-minimap/providers.d.ts +5 -0
- package/f-node/f-node.directive.d.ts +4 -1
- package/f-storage/f-transform-store.d.ts +7 -0
- package/f-storage/index.d.ts +1 -0
- package/{f-canvas/f-zoom → f-zoom}/f-zoom-base.d.ts +1 -1
- package/{f-canvas/f-zoom → f-zoom}/f-zoom.directive.d.ts +1 -1
- package/{f-canvas/f-zoom → f-zoom}/index.d.ts +1 -0
- package/f-zoom/providers.d.ts +2 -0
- package/fesm2022/foblex-flow.mjs +3434 -2789
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +4 -4
- package/public-api.d.ts +2 -0
- package/esm2022/f-canvas/f-zoom/f-zoom-base.mjs +0 -95
- package/esm2022/f-canvas/f-zoom/f-zoom.directive.mjs +0 -59
- package/esm2022/f-canvas/f-zoom/index.mjs +0 -3
package/f-draggable/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export * from './f-draggable-base';
|
|
|
11
11
|
export * from './f-draggable-data-context';
|
|
12
12
|
export * from './f-selection-change-event';
|
|
13
13
|
export * from './i-can-run-outside-angular';
|
|
14
|
+
export * from './i-f-drag-and-drop-plugin';
|
|
14
15
|
export * from './i-draggable-item';
|
|
15
16
|
export * from './providers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./external-item").ExternalItemFinalizeExecution | typeof import("./external-item").ExternalItemFinalizeValidator | typeof import("./external-item").ExternalItemPreparationExecution | typeof import("./external-item").ExternalItemPreparationValidator | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionFinalizeValidator | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionPreparationValidator | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionFinalizeValidator | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionPreparationValidator | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMoveFinalizeValidator | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizeFinalizeValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./selection-area").SelectionAreaFinalizeExecution | typeof import("./selection-area").SelectionAreaFinalizeValidator | typeof import("./selection-area").SelectionAreaPreparationExecution | typeof import("./selection-area").SelectionAreaPreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./single-select").SingleSelectValidator)[];
|
|
1
|
+
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./external-item").ExternalItemFinalizeExecution | typeof import("./external-item").ExternalItemFinalizeValidator | typeof import("./external-item").ExternalItemPreparationExecution | typeof import("./external-item").ExternalItemPreparationValidator | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionFinalizeValidator | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionPreparationValidator | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionFinalizeValidator | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionPreparationValidator | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMoveFinalizeValidator | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizeFinalizeValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./selection-area").SelectionAreaFinalizeExecution | typeof import("./selection-area").SelectionAreaFinalizeValidator | typeof import("./selection-area").SelectionAreaPreparationExecution | typeof import("./selection-area").SelectionAreaPreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./single-select").SingleSelectValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator)[];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IValidator } from '../../infrastructure';
|
|
2
2
|
import { SingleSelectRequest } from './single-select.request';
|
|
3
3
|
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../f-draggable-data-context';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SingleSelectValidator implements IValidator<SingleSelectRequest> {
|
|
6
7
|
private fComponentsStore;
|
|
7
|
-
|
|
8
|
+
private fDraggableDataContext;
|
|
9
|
+
constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext);
|
|
8
10
|
handle(request: SingleSelectRequest): boolean;
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectValidator, never>;
|
|
10
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<SingleSelectValidator>;
|
|
@@ -28,5 +28,5 @@ export declare class FFlowComponent extends FFlowBase implements OnInit, AfterCo
|
|
|
28
28
|
clearSelection(): void;
|
|
29
29
|
ngOnDestroy(): void;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FFlowComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FFlowComponent, "f-flow", never, { "fFlowId": { "alias": "fFlowId"; "required": false; }; }, { "fLoaded": "fLoaded"; }, never, ["[fDefinitions]", "f-background", "f-line-alignment", "f-canvas", "f-selection-area", "f-
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FFlowComponent, "f-flow", never, { "fFlowId": { "alias": "fFlowId"; "required": false; }; }, { "fLoaded": "fLoaded"; }, never, ["[fDefinitions]", "f-background", "f-line-alignment", "f-canvas", "f-selection-area", "f-minimap"], false, never>;
|
|
32
32
|
}
|
package/f-flow.module.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as i1 from "./f-backgroud/f-background.component";
|
|
|
3
3
|
import * as i2 from "./f-backgroud/f-rect-pattern/f-rect-pattern.component";
|
|
4
4
|
import * as i3 from "./f-backgroud/f-circle-pattern/f-circle-pattern.component";
|
|
5
5
|
import * as i4 from "./f-canvas/f-canvas.component";
|
|
6
|
-
import * as i5 from "./f-
|
|
6
|
+
import * as i5 from "./f-zoom/f-zoom.directive";
|
|
7
7
|
import * as i6 from "./f-connection/common/f-connection-text/f-connection-text.component";
|
|
8
8
|
import * as i7 from "./f-connection/common/f-connection-text/f-connection-text-path.directive";
|
|
9
9
|
import * as i8 from "./f-connection/common/f-drag-handle/f-connection-drag-handle.component";
|
|
@@ -20,14 +20,18 @@ import * as i18 from "./f-connectors/f-node-output/f-node-output.directive";
|
|
|
20
20
|
import * as i19 from "./f-external-item/f-external-item.directive";
|
|
21
21
|
import * as i20 from "./f-flow/f-flow.component";
|
|
22
22
|
import * as i21 from "./f-line-alignment/f-line-alignment.component";
|
|
23
|
-
import * as i22 from "./f-
|
|
24
|
-
import * as i23 from "./f-
|
|
25
|
-
import * as i24 from "./f-
|
|
26
|
-
import * as i25 from "./f-
|
|
27
|
-
import * as i26 from "./f-
|
|
28
|
-
import * as i27 from "
|
|
23
|
+
import * as i22 from "./f-minimap/f-minimap.component";
|
|
24
|
+
import * as i23 from "./f-minimap/f-minimap-canvas.directive";
|
|
25
|
+
import * as i24 from "./f-minimap/f-minimap-view.directive";
|
|
26
|
+
import * as i25 from "./f-minimap/f-minimap-flow.directive";
|
|
27
|
+
import * as i26 from "./f-node/f-node.directive";
|
|
28
|
+
import * as i27 from "./f-node/f-drag-handle/f-drag-handle.directive";
|
|
29
|
+
import * as i28 from "./f-node/f-resize-handle/f-resize-handle.directive";
|
|
30
|
+
import * as i29 from "./f-selection-area/f-selection-area.component";
|
|
31
|
+
import * as i30 from "./f-draggable/f-draggable.directive";
|
|
32
|
+
import * as i31 from "@angular/common";
|
|
29
33
|
export declare class FFlowModule {
|
|
30
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FFlowModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.FNodeInputDirective, typeof i17.FNodeOutletDirective, typeof i18.FNodeOutputDirective, typeof i19.FExternalItemDirective, typeof i20.FFlowComponent, typeof i21.FLineAlignmentComponent, typeof i22.
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.FNodeInputDirective, typeof i17.FNodeOutletDirective, typeof i18.FNodeOutputDirective, typeof i19.FExternalItemDirective, typeof i20.FFlowComponent, typeof i21.FLineAlignmentComponent, typeof i22.FMinimapComponent, typeof i23.FMinimapCanvasDirective, typeof i24.FMinimapViewDirective, typeof i25.FMinimapFlowDirective, typeof i26.FNodeDirective, typeof i27.FDragHandleDirective, typeof i28.FResizeHandleDirective, typeof i29.FSelectionAreaComponent, typeof i30.FDraggableDirective], [typeof i31.CommonModule], [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.FNodeInputDirective, typeof i17.FNodeOutletDirective, typeof i18.FNodeOutputDirective, typeof i19.FExternalItemDirective, typeof i20.FFlowComponent, typeof i21.FLineAlignmentComponent, typeof i22.FMinimapComponent, typeof i23.FMinimapCanvasDirective, typeof i24.FMinimapViewDirective, typeof i25.FMinimapFlowDirective, typeof i26.FNodeDirective, typeof i27.FDragHandleDirective, typeof i28.FResizeHandleDirective, typeof i29.FSelectionAreaComponent, typeof i30.FDraggableDirective]>;
|
|
32
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<FFlowModule>;
|
|
33
37
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IPoint, Point } from '@foblex/core';
|
|
2
|
+
import { CalculateFlowPointFromMinimapPointRequest } from './calculate-flow-point-from-minimap-point.request';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import { IExecution } from '../../../infrastructure';
|
|
5
|
+
import { FMinimapData } from '../f-minimap-data';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CalculateFlowPointFromMinimapPointExecution implements IExecution<CalculateFlowPointFromMinimapPointRequest, IPoint> {
|
|
8
|
+
private fComponentsStore;
|
|
9
|
+
private get canvasScale();
|
|
10
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
11
|
+
handle(payload: CalculateFlowPointFromMinimapPointRequest): IPoint;
|
|
12
|
+
private getNormalizedFlowCenter;
|
|
13
|
+
private getPositionInViewBox;
|
|
14
|
+
normalizeEventPoint(point: IPoint, minimap: FMinimapData): Point;
|
|
15
|
+
private getEventPointInMinimap;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateFlowPointFromMinimapPointExecution, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateFlowPointFromMinimapPointExecution>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPoint, IRect } from '@foblex/core';
|
|
2
|
+
import { FMinimapData } from '../f-minimap-data';
|
|
3
|
+
export declare class CalculateFlowPointFromMinimapPointRequest {
|
|
4
|
+
flowRect: IRect;
|
|
5
|
+
canvasPosition: IPoint;
|
|
6
|
+
eventPoint: IPoint;
|
|
7
|
+
minimap: FMinimapData;
|
|
8
|
+
constructor(flowRect: IRect, canvasPosition: IPoint, eventPoint: IPoint, minimap: FMinimapData);
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IPoint, IRect } from '@foblex/core';
|
|
2
|
+
import { FComponentsStore } from '../../f-storage';
|
|
3
|
+
import { EFDraggableType, IDraggableItem } from '../../f-draggable';
|
|
4
|
+
import { FFlowMediator } from '../../infrastructure';
|
|
5
|
+
import { FMinimapData } from './f-minimap-data';
|
|
6
|
+
export declare class FMinimapDragHandler implements IDraggableItem {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private flowRect;
|
|
10
|
+
private canvasPosition;
|
|
11
|
+
private eventPoint;
|
|
12
|
+
private minimap;
|
|
13
|
+
readonly type: EFDraggableType;
|
|
14
|
+
private lastDifference;
|
|
15
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator, flowRect: IRect, canvasPosition: IPoint, eventPoint: IPoint, minimap: FMinimapData);
|
|
16
|
+
initialize(): void;
|
|
17
|
+
move(difference: IPoint): void;
|
|
18
|
+
private isSamePoint;
|
|
19
|
+
private getNewPosition;
|
|
20
|
+
complete(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MinimapDragFinalizeRequest } from './minimap-drag-finalize.request';
|
|
2
|
+
import { IExecution } from '../../../infrastructure';
|
|
3
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MinimapDragFinalizeExecution implements IExecution<MinimapDragFinalizeRequest, void> {
|
|
6
|
+
private fDraggableDataContext;
|
|
7
|
+
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
8
|
+
handle(request: MinimapDragFinalizeRequest): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinimapDragFinalizeExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MinimapDragFinalizeExecution>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MinimapDragFinalizeRequest } from './minimap-drag-finalize.request';
|
|
2
|
+
import { IValidator } from '../../../infrastructure';
|
|
3
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MinimapDragFinalizeValidator implements IValidator<MinimapDragFinalizeRequest> {
|
|
6
|
+
private fDraggableDataContext;
|
|
7
|
+
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
8
|
+
handle(request: MinimapDragFinalizeRequest): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinimapDragFinalizeValidator, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MinimapDragFinalizeValidator>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MinimapDragFinalizeExecution } from './minimap-drag-finalize.execution';
|
|
2
|
+
import { MinimapDragFinalizeValidator } from './minimap-drag-finalize.validator';
|
|
3
|
+
export declare const MINIMAP_DRAG_FINALIZE_PROVIDERS: (typeof MinimapDragFinalizeExecution | typeof MinimapDragFinalizeValidator)[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MinimapDragPreparationRequest } from './minimap-drag-preparation.request';
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../../infrastructure';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MinimapDragPreparationExecution implements IExecution<MinimapDragPreparationRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private fDraggableDataContext;
|
|
10
|
+
private get flowHost();
|
|
11
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator, fDraggableDataContext: FDraggableDataContext);
|
|
12
|
+
handle(request: MinimapDragPreparationRequest): void;
|
|
13
|
+
private getNewPosition;
|
|
14
|
+
private getFlowRect;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinimapDragPreparationExecution, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MinimapDragPreparationExecution>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MinimapDragPreparationRequest } from './minimap-drag-preparation.request';
|
|
2
|
+
import { IValidator } from '../../../infrastructure';
|
|
3
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MinimapDragPreparationValidator implements IValidator<MinimapDragPreparationRequest> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fDraggableDataContext;
|
|
9
|
+
constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext);
|
|
10
|
+
handle(request: MinimapDragPreparationRequest): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinimapDragPreparationValidator, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MinimapDragPreparationValidator>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MinimapDragPreparationExecution } from './minimap-drag-preparation.execution';
|
|
2
|
+
import { MinimapDragPreparationValidator } from './minimap-drag-preparation.validator';
|
|
3
|
+
export declare const MINIMAP_DRAG_PREPARATION_PROVIDERS: (typeof MinimapDragPreparationExecution | typeof MinimapDragPreparationValidator)[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CalculateFlowPointFromMinimapPointExecution } from './calculate-flow-point-from-minimap-point';
|
|
2
|
+
export declare const F_MINIMAP_DRAG_AND_DROP_PROVIDERS: (typeof CalculateFlowPointFromMinimapPointExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationValidator | typeof import("./minimap-drag-finalize").MinimapDragFinalizeExecution | typeof import("./minimap-drag-finalize").MinimapDragFinalizeValidator)[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { FComponentsStore } from '../f-storage';
|
|
3
|
+
import { FFlowMediator } from '../infrastructure';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FMinimapCanvasDirective {
|
|
6
|
+
private elementReference;
|
|
7
|
+
private fMediator;
|
|
8
|
+
private fComponentsStore;
|
|
9
|
+
get hostElement(): SVGGElement;
|
|
10
|
+
private get flowHost();
|
|
11
|
+
private get flowScale();
|
|
12
|
+
constructor(elementReference: ElementRef<SVGGElement>, fMediator: FFlowMediator, fComponentsStore: FComponentsStore);
|
|
13
|
+
redraw(): void;
|
|
14
|
+
private clearCanvas;
|
|
15
|
+
private renderNode;
|
|
16
|
+
private configureNodeElement;
|
|
17
|
+
private getNodeRect;
|
|
18
|
+
private setElementAttributes;
|
|
19
|
+
private applyClassList;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapCanvasDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FMinimapCanvasDirective, "g[fMinimapCanvas]", never, {}, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { FComponentsStore } from '../f-storage';
|
|
3
|
+
import { FFlowMediator } from '../infrastructure';
|
|
4
|
+
import { FMinimapData } from './domain';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FMinimapFlowDirective {
|
|
7
|
+
private elementReference;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private fComponentsStore;
|
|
10
|
+
model: FMinimapData;
|
|
11
|
+
fMinSize: number;
|
|
12
|
+
private get flowHost();
|
|
13
|
+
get hostElement(): SVGSVGElement;
|
|
14
|
+
constructor(elementReference: ElementRef<SVGSVGElement>, fMediator: FFlowMediator, fComponentsStore: FComponentsStore);
|
|
15
|
+
update(): void;
|
|
16
|
+
private getProcessedNodesRect;
|
|
17
|
+
private getNodesRect;
|
|
18
|
+
private getMinimapRect;
|
|
19
|
+
private normalizeRect;
|
|
20
|
+
private ensureMinimumSize;
|
|
21
|
+
private calculateViewScale;
|
|
22
|
+
private calculateViewBox;
|
|
23
|
+
private calculateViewSize;
|
|
24
|
+
private calculateCenteredViewBox;
|
|
25
|
+
private setViewBox;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapFlowDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FMinimapFlowDirective, "svg[fMinimapFlow]", never, { "fMinSize": { "alias": "fMinSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { FComponentsStore } from '../f-storage';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FMinimapViewDirective {
|
|
5
|
+
private elementReference;
|
|
6
|
+
private fComponentsStore;
|
|
7
|
+
get hostElement(): SVGRectElement;
|
|
8
|
+
private get flowScale();
|
|
9
|
+
constructor(elementReference: ElementRef<SVGRectElement>, fComponentsStore: FComponentsStore);
|
|
10
|
+
update(): void;
|
|
11
|
+
private setAttributes;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapViewDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FMinimapViewDirective, "rect[fMinimapView]", never, {}, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { FFlowMediator } from '../infrastructure';
|
|
3
|
+
import { FMinimapFlowDirective } from './f-minimap-flow.directive';
|
|
4
|
+
import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
|
|
5
|
+
import { FMinimapViewDirective } from './f-minimap-view.directive';
|
|
6
|
+
import { IPointerEvent } from '@foblex/core';
|
|
7
|
+
import { IFDragAndDropPlugin } from '../f-draggable';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FMinimapComponent implements AfterViewInit, OnDestroy, IFDragAndDropPlugin {
|
|
10
|
+
private elementReference;
|
|
11
|
+
private fMediator;
|
|
12
|
+
private subscriptions$;
|
|
13
|
+
fMinimapCanvas: FMinimapCanvasDirective;
|
|
14
|
+
fMinimapFlow: FMinimapFlowDirective;
|
|
15
|
+
fMinimapView: FMinimapViewDirective;
|
|
16
|
+
fMinSize: number;
|
|
17
|
+
constructor(elementReference: ElementRef<HTMLElement>, fMediator: FFlowMediator);
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
private subscribeOnTransformChanges;
|
|
20
|
+
private getTransformChanges;
|
|
21
|
+
onPointerDown(event: IPointerEvent): void;
|
|
22
|
+
onPointerUp(event: IPointerEvent): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FMinimapComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FMinimapComponent, "f-minimap", ["fComponent"], { "fMinSize": { "alias": "fMinSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FMinimapComponent } from './f-minimap.component';
|
|
2
|
+
import { FMinimapViewDirective } from './f-minimap-view.directive';
|
|
3
|
+
import { FMinimapFlowDirective } from './f-minimap-flow.directive';
|
|
4
|
+
import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
|
|
5
|
+
export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapFlowDirective | typeof FMinimapCanvasDirective | typeof FMinimapViewDirective | typeof FMinimapComponent)[];
|
|
@@ -3,11 +3,13 @@ import { IHasHostElement, IPoint, IRect, ISize, PointInput } from '@foblex/core'
|
|
|
3
3
|
import { FNodeBase } from './f-node-base';
|
|
4
4
|
import { FComponentsStore } from '../f-storage';
|
|
5
5
|
import { FConnectorBase } from '../f-connectors';
|
|
6
|
+
import { FFlowMediator } from '../infrastructure';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FNodeDirective extends FNodeBase implements OnInit, AfterViewInit, IHasHostElement, OnDestroy {
|
|
8
9
|
private elementReference;
|
|
9
10
|
private renderer;
|
|
10
11
|
private fComponentsStore;
|
|
12
|
+
private fMediator;
|
|
11
13
|
private subscriptions$;
|
|
12
14
|
fId: string;
|
|
13
15
|
set position(value: PointInput);
|
|
@@ -21,9 +23,10 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
|
|
|
21
23
|
fConnectOnNode: boolean;
|
|
22
24
|
get hostElement(): HTMLElement;
|
|
23
25
|
connectors: FConnectorBase[];
|
|
24
|
-
constructor(elementReference: ElementRef<HTMLElement>, renderer: Renderer2, fComponentsStore: FComponentsStore);
|
|
26
|
+
constructor(elementReference: ElementRef<HTMLElement>, renderer: Renderer2, fComponentsStore: FComponentsStore, fMediator: FFlowMediator);
|
|
25
27
|
ngOnInit(): void;
|
|
26
28
|
protected setStyle(styleName: string, value: string): void;
|
|
29
|
+
redraw(): void;
|
|
27
30
|
ngAfterViewInit(): void;
|
|
28
31
|
private subscribeOnResizeChanges;
|
|
29
32
|
addConnector(connector: FConnectorBase): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FTransformStore {
|
|
4
|
+
readonly changes: Subject<void>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FTransformStore, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FTransformStore>;
|
|
7
|
+
}
|
package/f-storage/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/core';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
-
import { FComponentsStore } from '
|
|
3
|
+
import { FComponentsStore } from '../f-storage';
|
|
4
4
|
export declare const F_ZOOM: InjectionToken<FZoomBase>;
|
|
5
5
|
export declare abstract class FZoomBase {
|
|
6
6
|
protected fComponentsStore: FComponentsStore;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy } from "@angular/core";
|
|
2
2
|
import { FZoomBase } from './f-zoom-base';
|
|
3
|
-
import { FComponentsStore } from '
|
|
3
|
+
import { FComponentsStore } from '../f-storage';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FZoomDirective extends FZoomBase implements AfterViewInit, OnDestroy {
|
|
6
6
|
get fFlowZoom(): boolean;
|