@foblex/flow 17.4.1 → 17.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/css-cls.d.ts +3 -0
- package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +1 -1
- package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts +3 -6
- package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +1 -1
- package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +1 -1
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +1 -1
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +1 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +5 -5
- package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +2 -2
- package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +1 -1
- package/domain/f-node/calculate-input-connections/calculate-input-connections-request.d.ts +5 -0
- package/domain/f-node/calculate-input-connections/calculate-input-connections.execution.d.ts +12 -0
- package/domain/f-node/calculate-input-connections/index.d.ts +2 -0
- package/domain/f-node/calculate-output-connections/calculate-output-connections-request.d.ts +5 -0
- package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts +12 -0
- package/domain/f-node/calculate-output-connections/index.d.ts +2 -0
- package/domain/f-node/index.d.ts +2 -0
- package/domain/f-node/providers.d.ts +3 -1
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +1 -1
- package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +5 -3
- package/domain/providers.d.ts +1 -2
- package/domain/sort-item-layers/sort-item-layers.execution.d.ts +4 -5
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +6 -9
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +12 -14
- package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +15 -16
- package/esm2022/domain/css-cls.mjs +4 -1
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +1 -1
- package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +15 -19
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +1 -1
- package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +1 -1
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +2 -1
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +2 -2
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +12 -12
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +1 -1
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +2 -2
- package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +1 -1
- package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections-request.mjs +7 -0
- package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.execution.mjs +31 -0
- package/esm2022/domain/f-node/calculate-input-connections/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections-request.mjs +7 -0
- package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.execution.mjs +31 -0
- package/esm2022/domain/f-node/calculate-output-connections/index.mjs +3 -0
- package/esm2022/domain/f-node/index.mjs +3 -1
- package/esm2022/domain/f-node/providers.mjs +5 -1
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +1 -1
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +12 -4
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +14 -16
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +21 -27
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +32 -34
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +46 -48
- package/esm2022/f-backgroud/f-background.component.mjs +9 -12
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +15 -21
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +18 -28
- package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +29 -35
- package/esm2022/f-canvas/providers.mjs +1 -1
- package/esm2022/f-connection/common/f-connection-base.mjs +5 -5
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle-end.component.mjs +37 -0
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle-start.component.mjs +37 -0
- package/esm2022/f-connection/common/f-drag-handle/index.mjs +3 -2
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +6 -6
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +6 -6
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +6 -6
- package/esm2022/f-connection/providers.mjs +4 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +2 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.mjs +1 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/f-draggable.directive.mjs +8 -2
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.mjs +5 -5
- package/esm2022/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.mjs +1 -1
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +1 -1
- package/esm2022/f-draggable/f-node-move/f-line-alignment.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/f-node-move.drag-handler.mjs +1 -1
- package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +1 -1
- package/esm2022/f-draggable/f-node-move/point-bounds-limiter.mjs +1 -1
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.mjs +4 -4
- package/esm2022/f-draggable/f-node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +1 -1
- package/esm2022/f-draggable/f-node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +1 -1
- package/esm2022/f-draggable/f-node-resize/calculate-changed-size/calculate-changed-size.request.mjs +1 -1
- package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +7 -6
- package/esm2022/f-draggable/f-node-rotate/calculate-difference-after-rotation.mjs +19 -0
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +69 -0
- package/esm2022/f-draggable/f-node-rotate/index.mjs +5 -0
- package/esm2022/f-draggable/f-node-rotate/providers.mjs +7 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.mjs +31 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.mjs +7 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +86 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/index.mjs +2 -1
- package/esm2022/f-draggable/providers.mjs +3 -1
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.mjs +1 -1
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.execution.mjs +1 -1
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +1 -1
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +1 -1
- package/esm2022/f-external-item/f-external-item-placeholder.directive.mjs +1 -1
- package/esm2022/f-external-item/f-external-item-preview.directive.mjs +1 -1
- package/esm2022/f-external-item/f-external-item.directive.mjs +1 -1
- package/esm2022/f-external-item/index.mjs +2 -1
- package/esm2022/f-external-item/providers.mjs +5 -0
- package/esm2022/f-flow/f-flow-base.mjs +1 -1
- package/esm2022/f-flow/f-flow.component.mjs +12 -21
- package/esm2022/f-flow.module.mjs +48 -38
- package/esm2022/f-line-alignment/f-line-alignment-base.mjs +1 -1
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +5 -7
- package/esm2022/f-node/f-drag-handle.directive.mjs +3 -9
- package/esm2022/f-node/f-group.directive.mjs +19 -2
- package/esm2022/f-node/f-node-base.mjs +6 -2
- package/esm2022/f-node/f-node.directive.mjs +19 -2
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +13 -24
- package/esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs +14 -26
- package/esm2022/f-node/f-rotate-handle/index.mjs +2 -1
- package/esm2022/f-node/f-rotate-handle/is-rotate-handle.mjs +5 -0
- package/esm2022/f-node/providers.mjs +3 -1
- package/esm2022/f-zoom/index.mjs +2 -1
- package/esm2022/f-zoom/providers.mjs +5 -0
- package/esm2022/reactivity/index.mjs +2 -1
- package/esm2022/reactivity/mediator-effect.mjs +14 -0
- package/f-backgroud/f-background.component.d.ts +4 -5
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +9 -10
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +11 -12
- package/f-backgroud/providers.d.ts +1 -1
- package/f-canvas/f-canvas-base.d.ts +5 -5
- package/f-canvas/f-canvas.component.d.ts +13 -10
- package/f-connection/common/f-connection-base.d.ts +4 -4
- package/f-connection/common/f-drag-handle/f-connection-drag-handle-end.component.d.ts +13 -0
- package/f-connection/common/f-drag-handle/f-connection-drag-handle-start.component.d.ts +13 -0
- package/f-connection/common/f-drag-handle/index.d.ts +2 -1
- package/f-connection/f-connection/f-connection.component.d.ts +2 -2
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +2 -2
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +2 -2
- package/f-connection/providers.d.ts +2 -2
- package/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.d.ts +1 -1
- package/f-draggable/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +2 -1
- package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
- package/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.d.ts +2 -2
- package/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.d.ts +1 -1
- package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +3 -3
- 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 -2
- package/f-draggable/f-node-move/f-node-move.drag-handler.d.ts +1 -1
- package/f-draggable/f-node-move/f-summary-node-move.drag-handler.d.ts +3 -3
- package/f-draggable/f-node-move/point-bounds-limiter.d.ts +1 -1
- package/f-draggable/f-node-move/providers.d.ts +1 -1
- package/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.d.ts +3 -2
- package/f-draggable/f-node-resize/f-node-resize.drag-handler.d.ts +3 -3
- package/f-draggable/f-node-rotate/calculate-difference-after-rotation.d.ts +20 -0
- package/f-draggable/f-node-rotate/f-node-rotate.drag-handler.d.ts +34 -0
- package/f-draggable/f-node-rotate/index.d.ts +4 -0
- package/f-draggable/f-node-rotate/providers.d.ts +3 -0
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.d.ts +10 -0
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.d.ts +5 -0
- package/f-draggable/f-node-rotate/rotate-finalize/index.d.ts +2 -0
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +22 -0
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.d.ts +7 -0
- package/f-draggable/f-node-rotate/rotate-preparation/index.d.ts +2 -0
- package/f-draggable/index.d.ts +1 -0
- package/f-draggable/providers.d.ts +1 -1
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts +2 -2
- package/f-external-item/domain/create-preview/f-external-item-create-preview.execution.d.ts +2 -2
- package/f-external-item/domain/finalize/f-external-item-finalize.execution.d.ts +5 -5
- package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +3 -3
- package/f-external-item/f-external-item-placeholder.directive.d.ts +2 -2
- package/f-external-item/f-external-item-preview.directive.d.ts +2 -2
- package/f-external-item/f-external-item.directive.d.ts +2 -2
- package/f-external-item/index.d.ts +1 -0
- package/f-external-item/providers.d.ts +2 -0
- package/f-flow/f-flow-base.d.ts +3 -3
- package/f-flow/f-flow.component.d.ts +8 -10
- package/f-flow.module.d.ts +36 -32
- package/f-line-alignment/f-line-alignment-base.d.ts +2 -2
- package/f-line-alignment/f-line-alignment.component.d.ts +4 -4
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-minimap/providers.d.ts +1 -1
- package/f-node/f-drag-handle.directive.d.ts +1 -6
- package/f-node/f-group.directive.d.ts +6 -3
- package/f-node/f-node-base.d.ts +4 -0
- package/f-node/f-node.directive.d.ts +6 -3
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +4 -10
- package/f-node/f-rotate-handle/f-rotate-handle.directive.d.ts +4 -8
- package/f-node/f-rotate-handle/index.d.ts +1 -0
- package/f-node/f-rotate-handle/is-rotate-handle.d.ts +1 -0
- package/f-node/providers.d.ts +1 -2
- package/f-selection-area/domain/providers.d.ts +1 -1
- package/f-storage/providers.d.ts +1 -1
- package/f-zoom/index.d.ts +1 -0
- package/f-zoom/providers.d.ts +2 -0
- package/fesm2022/foblex-flow.mjs +671 -404
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +2 -2
- package/reactivity/index.d.ts +1 -0
- package/reactivity/mediator-effect.d.ts +2 -0
- package/errors/conflict-error.d.ts +0 -6
- package/errors/create-error-class.d.ts +0 -1
- package/errors/errors.d.ts +0 -3
- package/errors/index.d.ts +0 -4
- package/errors/not-found-error.d.ts +0 -6
- package/esm2022/errors/conflict-error.mjs +0 -7
- package/esm2022/errors/create-error-class.mjs +0 -10
- package/esm2022/errors/errors.mjs +0 -12
- package/esm2022/errors/index.mjs +0 -5
- package/esm2022/errors/not-found-error.mjs +0 -7
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +0 -41
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +0 -17
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from "@angular/core";
|
|
2
2
|
import { FCanvasBase } from './f-canvas-base';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
4
|
import { FCanvasChangeEvent } from './domain';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FCanvasComponent extends FCanvasBase implements OnInit, OnDestroy {
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
private readonly _fMediator;
|
|
8
|
+
private readonly _elementReference;
|
|
9
|
+
private readonly _injector;
|
|
10
|
+
fCanvasChange: import("@angular/core").OutputEmitterRef<FCanvasChangeEvent>;
|
|
11
|
+
readonly position: import("@angular/core").InputSignalWithTransform<IPoint, IPoint | null | undefined>;
|
|
12
|
+
readonly scale: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
11
13
|
get hostElement(): HTMLElement;
|
|
12
|
-
fGroupsContainer: ElementRef<HTMLElement
|
|
13
|
-
fNodesContainer: ElementRef<HTMLElement
|
|
14
|
-
fConnectionsContainer: ElementRef<HTMLElement
|
|
15
|
-
private _fMediator;
|
|
14
|
+
fGroupsContainer: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
15
|
+
fNodesContainer: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
16
|
+
fConnectionsContainer: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
16
17
|
ngOnInit(): void;
|
|
18
|
+
private _positionChange;
|
|
19
|
+
private _scaleChange;
|
|
17
20
|
redraw(): void;
|
|
18
21
|
redrawWithAnimation(): void;
|
|
19
22
|
centerGroupOrNode(id: string, animated?: boolean): void;
|
|
@@ -32,5 +35,5 @@ export declare class FCanvasComponent extends FCanvasBase implements OnInit, OnD
|
|
|
32
35
|
resetScale(): void;
|
|
33
36
|
ngOnDestroy(): void;
|
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FCanvasComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas",
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "scale": { "alias": "scale"; "required": false; "isSignal": true; }; }, { "fCanvasChange": "fCanvasChange"; }, never, ["[fGroup]", "f-snap-connection", "f-connection", "f-connection-for-create", "[fNode]"], true, never>;
|
|
36
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ILine
|
|
2
|
+
import { ILine } from '@foblex/2d';
|
|
3
3
|
import { EFConnectionBehavior } from './e-f-connection-behavior';
|
|
4
4
|
import { EFConnectionType } from './e-f-connection-type';
|
|
5
5
|
import { IHasConnectionColor } from './i-has-connection-color';
|
|
@@ -7,7 +7,7 @@ import { IHasConnectionFromTo } from './i-has-connection-from-to';
|
|
|
7
7
|
import { IHasConnectionText } from './i-has-connection-text';
|
|
8
8
|
import { IConnectionPath } from './f-path';
|
|
9
9
|
import { IConnectionGradient } from './f-gradient';
|
|
10
|
-
import {
|
|
10
|
+
import { FConnectionDragHandleEndComponent } from './f-drag-handle';
|
|
11
11
|
import { FConnectionSelectionComponent } from './f-selection';
|
|
12
12
|
import { IConnectionText } from './f-connection-text';
|
|
13
13
|
import { EFConnectableSide } from '../../f-connectors';
|
|
@@ -39,7 +39,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
|
|
|
39
39
|
abstract fDefs: ElementRef<SVGDefsElement>;
|
|
40
40
|
abstract fPath: IConnectionPath;
|
|
41
41
|
abstract fGradient: IConnectionGradient;
|
|
42
|
-
abstract fDragHandle:
|
|
42
|
+
abstract fDragHandle: FConnectionDragHandleEndComponent;
|
|
43
43
|
abstract fSelection: FConnectionSelectionComponent;
|
|
44
44
|
abstract fTextComponent: IConnectionText;
|
|
45
45
|
abstract fText: string;
|
|
@@ -49,7 +49,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
|
|
|
49
49
|
protected constructor(elementReference: ElementRef<HTMLElement>, cFactory: FConnectionFactory);
|
|
50
50
|
initialize(): void;
|
|
51
51
|
isContains(element: HTMLElement | SVGElement): boolean;
|
|
52
|
-
setLine(
|
|
52
|
+
setLine({ point1, point2 }: ILine, sourceSide: EFConnectableSide, targetSide: EFConnectableSide): void;
|
|
53
53
|
private getPathResult;
|
|
54
54
|
private getTransform;
|
|
55
55
|
markChildrenAsSelected(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { IHasHostElement } from '../../../i-has-host-element';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FConnectionDragHandleEndComponent implements IHasHostElement {
|
|
5
|
+
private readonly _elementReference;
|
|
6
|
+
protected readonly class: string;
|
|
7
|
+
point: IPoint;
|
|
8
|
+
get hostElement(): SVGCircleElement;
|
|
9
|
+
redraw(penultimatePoint: IPoint, endPoint: IPoint): void;
|
|
10
|
+
private _calculateCircleCenter;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionDragHandleEndComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionDragHandleEndComponent, "circle[f-connection-drag-handle-end]", never, {}, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { IHasHostElement } from '../../../i-has-host-element';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FConnectionDragHandleStartComponent implements IHasHostElement {
|
|
5
|
+
private readonly _elementReference;
|
|
6
|
+
protected readonly class: string;
|
|
7
|
+
point: IPoint;
|
|
8
|
+
get hostElement(): SVGCircleElement;
|
|
9
|
+
redraw(penultimatePoint: IPoint, startPoint: IPoint): void;
|
|
10
|
+
private _calculateCircleCenter;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionDragHandleStartComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionDragHandleStartComponent, "circle[f-connection-drag-handle-start]", never, {}, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './f-connection-drag-handle.component';
|
|
1
|
+
export * from './f-connection-drag-handle-start.component';
|
|
2
|
+
export * from './f-connection-drag-handle-end.component';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, OnChanges, OnDestroy, OnInit, QueryList } from "@angular/core";
|
|
2
|
-
import { EFConnectionBehavior, EFConnectionType,
|
|
2
|
+
import { EFConnectionBehavior, EFConnectionType, FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
4
4
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
5
5
|
import { FConnectionBase } from '../common/f-connection-base';
|
|
@@ -21,7 +21,7 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
|
|
|
21
21
|
fDefs: ElementRef<SVGDefsElement>;
|
|
22
22
|
fPath: IConnectionPath;
|
|
23
23
|
fGradient: IConnectionGradient;
|
|
24
|
-
fDragHandle:
|
|
24
|
+
fDragHandle: FConnectionDragHandleEndComponent;
|
|
25
25
|
fSelection: FConnectionSelectionComponent;
|
|
26
26
|
fTextComponent: IConnectionText;
|
|
27
27
|
fConnectionCenter: ElementRef<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
@@ -23,7 +23,7 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
|
|
|
23
23
|
fDefs: ElementRef<SVGDefsElement>;
|
|
24
24
|
fPath: IConnectionPath;
|
|
25
25
|
fGradient: IConnectionGradient;
|
|
26
|
-
fDragHandle:
|
|
26
|
+
fDragHandle: FConnectionDragHandleEndComponent;
|
|
27
27
|
fSelection: FConnectionSelectionComponent;
|
|
28
28
|
fTextComponent: IConnectionText;
|
|
29
29
|
fConnectionCenter: ElementRef<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { FConnectionDragHandleEndComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
@@ -24,7 +24,7 @@ export declare class FSnapConnectionComponent extends FConnectionBase implements
|
|
|
24
24
|
fDefs: ElementRef<SVGDefsElement>;
|
|
25
25
|
fPath: IConnectionPath;
|
|
26
26
|
fGradient: IConnectionGradient;
|
|
27
|
-
fDragHandle:
|
|
27
|
+
fDragHandle: FConnectionDragHandleEndComponent;
|
|
28
28
|
fSelection: FConnectionSelectionComponent;
|
|
29
29
|
fTextComponent: IConnectionText;
|
|
30
30
|
fConnectionCenter: ElementRef<HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective } from './common';
|
|
2
2
|
import { FConnectionComponent } from './f-connection';
|
|
3
3
|
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 FSnapConnectionComponent | typeof FConnectionSelectionComponent | typeof FConnectionCenterDirective | typeof FConnectionComponent | typeof FConnectionForCreateComponent | typeof FConnectionTextComponent | typeof FConnectionTextPathDirective | typeof FConnectionGradientComponent | typeof FConnectionPathComponent | typeof FMarkerDirective)[];
|
|
@@ -3,7 +3,7 @@ import { FConnectorBase } from '../../../../f-connectors';
|
|
|
3
3
|
import { GetFirstConnectableOutputRequest } from './get-first-connectable-output.request';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GetFirstConnectableOutputExecution implements IHandler<GetFirstConnectableOutputRequest, FConnectorBase | undefined> {
|
|
6
|
-
private _fComponentStore;
|
|
6
|
+
private readonly _fComponentStore;
|
|
7
7
|
private get _fNodes();
|
|
8
8
|
private get _fOutputs();
|
|
9
9
|
private _fNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FCreateConnectionDragHandlerPreparationExecution, FCreateConnectionFinalizeExecution, FCreateConnectionFromOutletPreparationExecution, FCreateConnectionFromOutputPreparationExecution, FCreateConnectionPreparationExecution, GetFirstConnectableOutputExecution } from './f-create-connection';
|
|
2
2
|
import { FReassignConnectionFinalizeExecution, FReassignConnectionPreparationExecution } from './f-reassign-connection';
|
|
3
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof
|
|
3
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof FCreateConnectionFinalizeExecution | typeof FCreateConnectionDragHandlerPreparationExecution | typeof FCreateConnectionFromOutletPreparationExecution | typeof GetFirstConnectableOutputExecution | typeof FCreateConnectionFromOutputPreparationExecution | typeof FCreateConnectionPreparationExecution | typeof FReassignConnectionFinalizeExecution | typeof FReassignConnectionPreparationExecution)[];
|
|
@@ -22,6 +22,7 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
|
|
|
22
22
|
fReassignConnectionTrigger: FEventTrigger;
|
|
23
23
|
fCreateConnectionTrigger: FEventTrigger;
|
|
24
24
|
fNodeResizeTrigger: FEventTrigger;
|
|
25
|
+
fNodeRotateTrigger: FEventTrigger;
|
|
25
26
|
fNodeMoveTrigger: FEventTrigger;
|
|
26
27
|
fCanvasMoveTrigger: FEventTrigger;
|
|
27
28
|
fExternalItemTrigger: FEventTrigger;
|
|
@@ -50,7 +51,7 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
|
|
|
50
51
|
protected finalizeDragSequence(): void;
|
|
51
52
|
ngOnDestroy(): void;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableDirective, [{ optional: true; }, null]>;
|
|
53
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", ["fDraggable"], { "disabled": { "alias": "fDraggableDisabled"; "required": false; }; "fMultiSelectTrigger": { "alias": "fMultiSelectTrigger"; "required": false; }; "fReassignConnectionTrigger": { "alias": "fReassignConnectionTrigger"; "required": false; }; "fCreateConnectionTrigger": { "alias": "fCreateConnectionTrigger"; "required": false; }; "fNodeResizeTrigger": { "alias": "fNodeResizeTrigger"; "required": false; }; "fNodeMoveTrigger": { "alias": "fNodeMoveTrigger"; "required": false; }; "fCanvasMoveTrigger": { "alias": "fCanvasMoveTrigger"; "required": false; }; "fExternalItemTrigger": { "alias": "fExternalItemTrigger"; "required": false; }; "fEmitOnNodeIntersect": { "alias": "fEmitOnNodeIntersect"; "required": false; }; "vCellSize": { "alias": "vCellSize"; "required": false; }; "hCellSize": { "alias": "hCellSize"; "required": false; }; "fCellSizeWhileDragging": { "alias": "fCellSizeWhileDragging"; "required": false; }; }, { "fSelectionChange": "fSelectionChange"; "fNodeIntersectedWithConnections": "fNodeIntersectedWithConnections"; "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; "fDropToGroup": "fDropToGroup"; "fDragStarted": "fDragStarted"; "fDragEnded": "fDragEnded"; }, ["_beforePlugins", "_afterPlugins"], never, false, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", ["fDraggable"], { "disabled": { "alias": "fDraggableDisabled"; "required": false; }; "fMultiSelectTrigger": { "alias": "fMultiSelectTrigger"; "required": false; }; "fReassignConnectionTrigger": { "alias": "fReassignConnectionTrigger"; "required": false; }; "fCreateConnectionTrigger": { "alias": "fCreateConnectionTrigger"; "required": false; }; "fNodeResizeTrigger": { "alias": "fNodeResizeTrigger"; "required": false; }; "fNodeRotateTrigger": { "alias": "fNodeRotateTrigger"; "required": false; }; "fNodeMoveTrigger": { "alias": "fNodeMoveTrigger"; "required": false; }; "fCanvasMoveTrigger": { "alias": "fCanvasMoveTrigger"; "required": false; }; "fExternalItemTrigger": { "alias": "fExternalItemTrigger"; "required": false; }; "fEmitOnNodeIntersect": { "alias": "fEmitOnNodeIntersect"; "required": false; }; "vCellSize": { "alias": "vCellSize"; "required": false; }; "hCellSize": { "alias": "hCellSize"; "required": false; }; "fCellSizeWhileDragging": { "alias": "fCellSizeWhileDragging"; "required": false; }; }, { "fSelectionChange": "fSelectionChange"; "fNodeIntersectedWithConnections": "fNodeIntersectedWithConnections"; "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; "fDropToGroup": "fDropToGroup"; "fDragStarted": "fDragStarted"; "fDragEnded": "fDragEnded"; }, ["_beforePlugins", "_afterPlugins"], never, false, never>;
|
|
54
55
|
static ngAcceptInputType_disabled: unknown;
|
|
55
56
|
static ngAcceptInputType_fEmitOnNodeIntersect: unknown;
|
|
56
57
|
static ngAcceptInputType_vCellSize: unknown;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FNodeDropToGroupPreparationExecution } from './drop-to-group-preparation';
|
|
2
2
|
import { FNodeDropToGroupFinalizeExecution } from './drop-to-group-finalize';
|
|
3
|
-
export declare const NODE_DROP_TO_GROUP_PROVIDERS: (typeof
|
|
3
|
+
export declare const NODE_DROP_TO_GROUP_PROVIDERS: (typeof FNodeDropToGroupPreparationExecution | typeof FNodeDropToGroupFinalizeExecution)[];
|
|
@@ -2,8 +2,8 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
export declare class BaseConnectionDragHandler {
|
|
4
4
|
fConnection: FConnectionBase;
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
7
|
private _fOutputWithRect;
|
|
8
8
|
private _fInputWithRect;
|
|
9
9
|
private get _fOutput();
|
package/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseConnectionDragHandler } from './base-connection.drag-handler';
|
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { IPoint } from '@foblex/2d';
|
|
4
4
|
export declare class SourceTargetConnectionDragHandler extends BaseConnectionDragHandler {
|
|
5
|
-
private _callTracker;
|
|
5
|
+
private readonly _callTracker;
|
|
6
6
|
constructor(fConnection: FConnectionBase);
|
|
7
7
|
setSourceDifference(difference: IPoint): void;
|
|
8
8
|
setTargetDifference(difference: IPoint): void;
|
|
@@ -3,9 +3,9 @@ import { IExecution } from '@foblex/mediator';
|
|
|
3
3
|
import { FSummaryNodeMoveDragHandler } from '../f-summary-node-move.drag-handler';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CreateMoveNodesDragModelFromSelectionExecution implements IExecution<CreateMoveNodesDragModelFromSelectionRequest, FSummaryNodeMoveDragHandler> {
|
|
6
|
-
private _fMediator;
|
|
7
|
-
private _fComponentsStore;
|
|
8
|
-
private _fDraggableDataContext;
|
|
6
|
+
private readonly _fMediator;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
|
+
private readonly _fDraggableDataContext;
|
|
9
9
|
handle(request: CreateMoveNodesDragModelFromSelectionRequest): FSummaryNodeMoveDragHandler;
|
|
10
10
|
private _getDraggedNodes;
|
|
11
11
|
private _getNodesFromSelection;
|
|
@@ -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 CalculateCommonNodeMoveLimitsExecution | typeof
|
|
6
|
+
export declare const CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS: (typeof CalculateCommonNodeMoveLimitsExecution | typeof CalculateNodeMoveLimitsExecution | typeof PutInputConnectionHandlersToArrayExecution | typeof PutOutputConnectionHandlersToArrayExecution | typeof CreateMoveNodesDragModelFromSelectionExecution)[];
|
|
@@ -7,8 +7,8 @@ export declare class FLineAlignmentDragHandler implements IFDragHandler {
|
|
|
7
7
|
private _draggedNodeRect;
|
|
8
8
|
private _rects;
|
|
9
9
|
private _restrictions;
|
|
10
|
-
fEventType
|
|
11
|
-
private _fComponentsStore;
|
|
10
|
+
readonly fEventType = "line-alignment";
|
|
11
|
+
private readonly _fComponentsStore;
|
|
12
12
|
private _debounceTimer;
|
|
13
13
|
private readonly _transform;
|
|
14
14
|
constructor(_lineService: LineService, _size: ISize, _draggedNodeRect: IRect, _rects: IRect[], _restrictions: IMinMaxPoint);
|
|
@@ -6,7 +6,7 @@ export declare class FNodeMoveDragHandler implements IFDragHandler {
|
|
|
6
6
|
fNode: FNodeBase;
|
|
7
7
|
fSourceHandlers: BaseConnectionDragHandler[];
|
|
8
8
|
fTargetHandlers: BaseConnectionDragHandler[];
|
|
9
|
-
fEventType
|
|
9
|
+
readonly fEventType = "move-node";
|
|
10
10
|
private readonly _onPointerDownPosition;
|
|
11
11
|
constructor(fNode: FNodeBase, fSourceHandlers?: BaseConnectionDragHandler[], fTargetHandlers?: BaseConnectionDragHandler[]);
|
|
12
12
|
onPointerMove(difference: IPoint): void;
|
|
@@ -5,9 +5,9 @@ export declare class FSummaryNodeMoveDragHandler implements IFDragHandler {
|
|
|
5
5
|
limits: IMinMaxPoint;
|
|
6
6
|
fHandlers: FNodeMoveDragHandler[];
|
|
7
7
|
commonRect: IRect;
|
|
8
|
-
fEventType
|
|
9
|
-
fData: any;
|
|
10
|
-
private _fComponentStore;
|
|
8
|
+
readonly fEventType = "move-node";
|
|
9
|
+
readonly fData: any;
|
|
10
|
+
private readonly _fComponentStore;
|
|
11
11
|
private readonly _fBoundsLimiter;
|
|
12
12
|
constructor(limits: IMinMaxPoint, fHandlers: FNodeMoveDragHandler[], commonRect: IRect);
|
|
13
13
|
onPointerMove(difference: IPoint): void;
|
|
@@ -2,7 +2,7 @@ import { IMinMaxPoint, IPoint } from '@foblex/2d';
|
|
|
2
2
|
export declare class PointBoundsLimiter {
|
|
3
3
|
private _onPointerDown;
|
|
4
4
|
private readonly _limit;
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
private _vCellSize;
|
|
7
7
|
private _hCellSize;
|
|
8
8
|
constructor(_onPointerDown: IPoint, _limit: IMinMaxPoint);
|
|
@@ -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").CalculateCommonNodeMoveLimitsExecution | typeof import("./create-move-nodes-drag-model-from-selection").
|
|
4
|
+
export declare const NODE_PROVIDERS: (typeof import("./create-move-nodes-drag-model-from-selection").CalculateCommonNodeMoveLimitsExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateNodeMoveLimitsExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutInputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutOutputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").CreateMoveNodesDragModelFromSelectionExecution | typeof LineAlignmentPreparationExecution | typeof FNodeMoveFinalizeExecution | typeof FNodeMovePreparationExecution)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IRect } from '@foblex/2d';
|
|
2
|
+
import { INodeResizeRestrictions } from '../get-node-resize-restrictions';
|
|
2
3
|
export declare class ApplyChildResizeRestrictionsRequest {
|
|
3
4
|
rect: IRect;
|
|
4
|
-
|
|
5
|
-
constructor(rect: IRect,
|
|
5
|
+
restrictions: INodeResizeRestrictions;
|
|
6
|
+
constructor(rect: IRect, restrictions: INodeResizeRestrictions);
|
|
6
7
|
}
|
|
@@ -4,9 +4,9 @@ import { EFResizeHandleType, FNodeBase } from '../../f-node';
|
|
|
4
4
|
export declare class FNodeResizeDragHandler implements IFDragHandler {
|
|
5
5
|
private _fNode;
|
|
6
6
|
private _fResizeHandleType;
|
|
7
|
-
fEventType
|
|
8
|
-
fData: any;
|
|
9
|
-
private _fMediator;
|
|
7
|
+
readonly fEventType = "node-resize";
|
|
8
|
+
readonly fData: any;
|
|
9
|
+
private readonly _fMediator;
|
|
10
10
|
private _originalRect;
|
|
11
11
|
private _resizeRestrictions;
|
|
12
12
|
constructor(_fNode: FNodeBase, _fResizeHandleType: EFResizeHandleType);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function calculateDifferenceAfterRotation(position: {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}, rotation: number, pivot: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}): {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function calculatePositionAfterRotation(position: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
}, rotation: number, pivot: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}): {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { IFDragHandler } from '../f-drag-handler';
|
|
3
|
+
import { FNodeBase } from '../../f-node';
|
|
4
|
+
import { BaseConnectionDragHandler } from '../f-node-move';
|
|
5
|
+
export declare class FNodeRotateDragHandler implements IFDragHandler {
|
|
6
|
+
private _fNode;
|
|
7
|
+
private _fSourceHandlers;
|
|
8
|
+
private _fTargetHandlers;
|
|
9
|
+
private readonly _fComponentsStore;
|
|
10
|
+
private readonly _fMediator;
|
|
11
|
+
private readonly _fDraggableDataContext;
|
|
12
|
+
fEventType: string;
|
|
13
|
+
fData: any;
|
|
14
|
+
private _initialRotationToX;
|
|
15
|
+
private readonly _startRotation;
|
|
16
|
+
private _onDownPoint;
|
|
17
|
+
private _fNodeRect;
|
|
18
|
+
private get _transform();
|
|
19
|
+
constructor(_fNode: FNodeBase, _fSourceHandlers: {
|
|
20
|
+
connection: BaseConnectionDragHandler;
|
|
21
|
+
connector: IPoint;
|
|
22
|
+
}[], _fTargetHandlers: {
|
|
23
|
+
connection: BaseConnectionDragHandler;
|
|
24
|
+
connector: IPoint;
|
|
25
|
+
}[]);
|
|
26
|
+
prepareDragSequence(): void;
|
|
27
|
+
private _getOriginalNodeRect;
|
|
28
|
+
private _calculateDownPoint;
|
|
29
|
+
private _calculateAngleBetweenVectors;
|
|
30
|
+
onPointerMove(difference: IPoint): void;
|
|
31
|
+
private _updateNodeRendering;
|
|
32
|
+
private _calculateDifferenceAfterRotation;
|
|
33
|
+
onPointerUp(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FNodeRotateFinalizeRequest } from './f-node-rotate-finalize.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FNodeRotateFinalizeExecution implements IExecution<FNodeRotateFinalizeRequest, void> {
|
|
5
|
+
private readonly _fDraggableDataContext;
|
|
6
|
+
handle(request: FNodeRotateFinalizeRequest): void;
|
|
7
|
+
private _isValid;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FNodeRotateFinalizeExecution, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FNodeRotateFinalizeExecution>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FNodeRotatePreparationRequest } from './f-node-rotate-preparation.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FNodeRotatePreparationExecution implements IExecution<FNodeRotatePreparationRequest, void> {
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fDraggableDataContext;
|
|
8
|
+
private get _transform();
|
|
9
|
+
private get _fHost();
|
|
10
|
+
private _fNode;
|
|
11
|
+
handle(request: FNodeRotatePreparationRequest): void;
|
|
12
|
+
private _isValid;
|
|
13
|
+
private _isNodeCanBeDragged;
|
|
14
|
+
private _getNode;
|
|
15
|
+
private _isValidTrigger;
|
|
16
|
+
private _selectAndUpdateNodeLayer;
|
|
17
|
+
private _calculateInputConnectionsDragHandlers;
|
|
18
|
+
private _calculateOutputConnectionsDragHandlers;
|
|
19
|
+
private _getOriginalNodeRect;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FNodeRotatePreparationExecution, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FNodeRotatePreparationExecution>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
+
import { FEventTrigger } from '../../../domain';
|
|
3
|
+
export declare class FNodeRotatePreparationRequest {
|
|
4
|
+
event: IPointerEvent;
|
|
5
|
+
fTrigger: FEventTrigger;
|
|
6
|
+
constructor(event: IPointerEvent, fTrigger: FEventTrigger);
|
|
7
|
+
}
|
package/f-draggable/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './f-drag-handler';
|
|
|
5
5
|
export * from './f-drop-to-group';
|
|
6
6
|
export * from './f-node-move';
|
|
7
7
|
export * from './f-node-resize';
|
|
8
|
+
export * from './f-node-rotate';
|
|
8
9
|
export * from './f-single-select';
|
|
9
10
|
export * from './f-draggable.directive';
|
|
10
11
|
export * from './f-draggable-base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./
|
|
1
|
+
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./f-canvas").FCanvasMoveFinalizeExecution | typeof import("./f-canvas").FCanvasMovePreparationExecution | typeof import("./f-connection").FCreateConnectionFinalizeExecution | typeof import("./f-connection").FCreateConnectionDragHandlerPreparationExecution | typeof import("./f-connection").FCreateConnectionFromOutletPreparationExecution | typeof import("./f-connection").GetFirstConnectableOutputExecution | typeof import("./f-connection").FCreateConnectionFromOutputPreparationExecution | typeof import("./f-connection").FCreateConnectionPreparationExecution | typeof import("./f-connection").FReassignConnectionFinalizeExecution | typeof import("./f-connection").FReassignConnectionPreparationExecution | typeof import("./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").FExternalItemFinalizeExecution | typeof import("../f-external-item").FExternalItemPreparationExecution | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./f-node-move").CalculateCommonNodeMoveLimitsExecution | typeof import("./f-node-move").CalculateNodeMoveLimitsExecution | typeof import("./f-node-move").PutInputConnectionHandlersToArrayExecution | typeof import("./f-node-move").PutOutputConnectionHandlersToArrayExecution | typeof import("./f-node-move").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./f-node-move").LineAlignmentPreparationExecution | typeof import("./f-node-move").FNodeMoveFinalizeExecution | typeof import("./f-node-move").FNodeMovePreparationExecution | typeof import("./f-drop-to-group").FNodeDropToGroupPreparationExecution | typeof import("./f-drop-to-group").FNodeDropToGroupFinalizeExecution | 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-node-resize").FNodeResizeFinalizeExecution | typeof import("./f-node-resize").FNodeResizePreparationExecution | typeof import("./f-node-rotate").FNodeRotateFinalizeExecution | typeof import("./f-node-rotate").FNodeRotatePreparationExecution | 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)[];
|
package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { FExternalItemCreatePlaceholderRequest } from './f-external-item-create-
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FExternalItemCreatePlaceholderExecution implements IExecution<FExternalItemCreatePlaceholderRequest, HTMLElement | SVGElement> {
|
|
5
|
-
private _fBrowser;
|
|
6
|
-
private _containerRef;
|
|
5
|
+
private readonly _fBrowser;
|
|
6
|
+
private readonly _containerRef;
|
|
7
7
|
handle(request: FExternalItemCreatePlaceholderRequest): HTMLElement | SVGElement;
|
|
8
8
|
private _fromTemplate;
|
|
9
9
|
private _fromHost;
|
|
@@ -2,8 +2,8 @@ import { FExternalItemCreatePreviewRequest } from './f-external-item-create-prev
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FExternalItemCreatePreviewExecution implements IExecution<FExternalItemCreatePreviewRequest, HTMLElement | SVGElement> {
|
|
5
|
-
private _fBrowser;
|
|
6
|
-
private _containerRef;
|
|
5
|
+
private readonly _fBrowser;
|
|
6
|
+
private readonly _containerRef;
|
|
7
7
|
handle(request: FExternalItemCreatePreviewRequest): HTMLElement | SVGElement;
|
|
8
8
|
private _fromTemplate;
|
|
9
9
|
private _fromHost;
|
|
@@ -2,11 +2,11 @@ import { FExternalItemFinalizeRequest } from './f-external-item-finalize.request
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FExternalItemFinalizeExecution implements IExecution<FExternalItemFinalizeRequest, void> {
|
|
5
|
-
private _fResult;
|
|
6
|
-
private _fMediator;
|
|
7
|
-
private _fComponentsStore;
|
|
8
|
-
private _fDraggableDataContext;
|
|
9
|
-
private _fBrowser;
|
|
5
|
+
private readonly _fResult;
|
|
6
|
+
private readonly _fMediator;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
|
+
private readonly _fDraggableDataContext;
|
|
9
|
+
private readonly _fBrowser;
|
|
10
10
|
private get _fHost();
|
|
11
11
|
private get _fCreateNode();
|
|
12
12
|
private get _fDragHandler();
|
|
@@ -2,9 +2,9 @@ import { FExternalItemPreparationRequest } from './f-external-item-preparation.r
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FExternalItemPreparationExecution implements IExecution<FExternalItemPreparationRequest, void> {
|
|
5
|
-
private _fExternalItemService;
|
|
6
|
-
private _fDraggableDataContext;
|
|
7
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fExternalItemService;
|
|
6
|
+
private readonly _fDraggableDataContext;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
8
|
private get _fHost();
|
|
9
9
|
handle(request: FExternalItemPreparationRequest): void;
|
|
10
10
|
private _isValid;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FExternalItemPlaceholderDirective<T = any> implements OnInit, OnDestroy {
|
|
4
|
-
private _fExternalItem;
|
|
5
|
-
private _templateRef;
|
|
4
|
+
private readonly _fExternalItem;
|
|
5
|
+
private readonly _templateRef;
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
ngOnDestroy(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FExternalItemPlaceholderDirective<any>, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FExternalItemPreviewDirective<T = any> implements OnInit, OnDestroy {
|
|
4
|
-
private _fExternalItem;
|
|
5
|
-
private _templateRef;
|
|
4
|
+
private readonly _fExternalItem;
|
|
5
|
+
private readonly _templateRef;
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
ngOnDestroy(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FExternalItemPreviewDirective<any>, never>;
|
|
@@ -2,8 +2,8 @@ import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { FExternalItemBase } from './f-external-item-base';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FExternalItemDirective<TData> extends FExternalItemBase<TData> implements OnInit, OnDestroy {
|
|
5
|
-
private _elementReference;
|
|
6
|
-
private _fExternalItemService;
|
|
5
|
+
private readonly _elementReference;
|
|
6
|
+
private readonly _fExternalItemService;
|
|
7
7
|
fExternalItemId: string;
|
|
8
8
|
get hostElement(): HTMLElement | SVGElement;
|
|
9
9
|
fData: TData | undefined;
|