@foblex/flow 12.4.0 → 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/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/index.d.ts +2 -0
- package/domain/providers.d.ts +3 -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/index.mjs +3 -1
- package/esm2022/domain/providers.mjs +5 -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-drag-handle/f-connection-drag-handle.component.mjs +2 -2
- package/esm2022/f-draggable/e-f-draggable-type.mjs +2 -2
- package/esm2022/f-draggable/f-draggable-base.mjs +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +29 -6
- 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 +6 -4
- 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-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 +6 -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 +4906 -4340
- 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
|
@@ -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;
|