@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
package/domain/css-cls.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { AddBackgroundToStoreRequest } from './add-background-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AddBackgroundToStoreExecution implements IExecution<AddBackgroundToStoreRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
handle(request: AddBackgroundToStoreRequest): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddBackgroundToStoreExecution, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddBackgroundToStoreExecution>;
|
package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { AddPatternToBackgroundRequest } from './add-pattern-to-background.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
-
import { BrowserService } from '@foblex/platform';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class AddPatternToBackgroundExecution implements IExecution<AddPatternToBackgroundRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private get
|
|
10
|
-
constructor(fComponentsStore: FComponentsStore, fBrowser: BrowserService);
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
|
+
private readonly _fBrowser;
|
|
7
|
+
private get _fBackground();
|
|
11
8
|
handle(request: AddPatternToBackgroundRequest): void;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddPatternToBackgroundExecution, never>;
|
|
13
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddPatternToBackgroundExecution>;
|
package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { RemoveBackgroundFromStoreRequest } from './remove-background-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RemoveBackgroundFromStoreExecution implements IExecution<RemoveBackgroundFromStoreRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
handle(request: RemoveBackgroundFromStoreRequest): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveBackgroundFromStoreExecution, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveBackgroundFromStoreExecution>;
|
package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { SetBackgroundTransformRequest } from './set-background-transform-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SetBackgroundTransformExecution implements IExecution<SetBackgroundTransformRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
handle(request: SetBackgroundTransformRequest): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SetBackgroundTransformExecution, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<SetBackgroundTransformExecution>;
|
|
@@ -2,7 +2,7 @@ import { InputCanvasPositionRequest } from './input-canvas-position-request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InputCanvasPositionExecution implements IExecution<InputCanvasPositionRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
handle(request: InputCanvasPositionRequest): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasPositionExecution, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasPositionExecution>;
|
|
@@ -2,7 +2,7 @@ import { InputCanvasScaleRequest } from './input-canvas-scale-request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InputCanvasScaleExecution implements IExecution<InputCanvasScaleRequest, void> {
|
|
5
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fComponentsStore;
|
|
6
6
|
handle(request: InputCanvasScaleRequest): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasScaleExecution, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasScaleExecution>;
|
|
@@ -3,12 +3,12 @@ import { IExecution } from '@foblex/mediator';
|
|
|
3
3
|
import { IPoint, IRect } from '@foblex/2d';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ResetScaleAndCenterExecution implements IExecution<ResetScaleAndCenterRequest, void> {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private
|
|
6
|
+
private readonly _fMediator;
|
|
7
|
+
private readonly _fComponentsStore;
|
|
8
|
+
private get _transform();
|
|
9
9
|
handle(request: ResetScaleAndCenterRequest): void;
|
|
10
|
-
|
|
11
|
-
private
|
|
10
|
+
_oneToOneCentering(rect: IRect, parentRect: IRect, points: IPoint[]): void;
|
|
11
|
+
private _getZeroPositionWithoutScale;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResetScaleAndCenterExecution, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResetScaleAndCenterExecution>;
|
|
14
14
|
}
|
|
@@ -2,8 +2,8 @@ import { RedrawConnectionsRequest } from './redraw-connections-request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RedrawConnectionsExecution implements IExecution<RedrawConnectionsRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
6
|
-
private _fComponentsStore;
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
7
|
handle(request: RedrawConnectionsRequest): void;
|
|
8
8
|
private _getOutput;
|
|
9
9
|
private _getInput;
|
|
@@ -3,7 +3,7 @@ import { GetConnectorAndRectRequest } from './get-connector-and-rect-request';
|
|
|
3
3
|
import { IConnectorAndRect } from '../i-connector-and-rect';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GetConnectorAndRectExecution implements IExecution<GetConnectorAndRectRequest, IConnectorAndRect> {
|
|
6
|
-
private _fMediator;
|
|
6
|
+
private readonly _fMediator;
|
|
7
7
|
handle(request: GetConnectorAndRectRequest): IConnectorAndRect;
|
|
8
8
|
private _getConnectorRect;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetConnectorAndRectExecution, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IExecution } from '@foblex/mediator';
|
|
2
|
+
import { CalculateInputConnectionsRequest } from './calculate-input-connections-request';
|
|
3
|
+
import { FConnectionBase } from '../../../f-connection';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalculateInputConnectionsExecution implements IExecution<CalculateInputConnectionsRequest, FConnectionBase[]> {
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
handle(request: CalculateInputConnectionsRequest): FConnectionBase[];
|
|
8
|
+
private _calculateConnectors;
|
|
9
|
+
private _calculateConnections;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateInputConnectionsExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateInputConnectionsExecution>;
|
|
12
|
+
}
|
package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IExecution } from '@foblex/mediator';
|
|
2
|
+
import { CalculateOutputConnectionsRequest } from './calculate-output-connections-request';
|
|
3
|
+
import { FConnectionBase } from '../../../f-connection';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalculateOutputConnectionsExecution implements IExecution<CalculateOutputConnectionsRequest, FConnectionBase[]> {
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
handle(request: CalculateOutputConnectionsRequest): FConnectionBase[];
|
|
8
|
+
private _calculateConnectors;
|
|
9
|
+
private _calculateConnections;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateOutputConnectionsExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateOutputConnectionsExecution>;
|
|
12
|
+
}
|
package/domain/f-node/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './add-node-to-store';
|
|
2
|
+
export * from './calculate-input-connections';
|
|
2
3
|
export * from './calculate-nodes-bounding-box';
|
|
3
4
|
export * from './calculate-nodes-bounding-box-normalized-position';
|
|
5
|
+
export * from './calculate-output-connections';
|
|
4
6
|
export * from './get-node-padding';
|
|
5
7
|
export * from './get-nodes';
|
|
6
8
|
export * from './get-parent-nodes';
|
|
@@ -6,4 +6,6 @@ import { CalculateNodesBoundingBoxExecution } from './calculate-nodes-bounding-b
|
|
|
6
6
|
import { CalculateNodesBoundingBoxNormalizedPositionExecution } from './calculate-nodes-bounding-box-normalized-position';
|
|
7
7
|
import { GetNodePaddingExecution } from './get-node-padding';
|
|
8
8
|
import { GetParentNodesExecution } from './get-parent-nodes';
|
|
9
|
-
|
|
9
|
+
import { CalculateInputConnectionsExecution } from './calculate-input-connections';
|
|
10
|
+
import { CalculateOutputConnectionsExecution } from './calculate-output-connections';
|
|
11
|
+
export declare const F_NODE_FEATURES: (typeof UpdateNodeWhenStateOrSizeChangedExecution | typeof AddNodeToStoreExecution | typeof CalculateInputConnectionsExecution | typeof CalculateNodesBoundingBoxExecution | typeof CalculateNodesBoundingBoxNormalizedPositionExecution | typeof CalculateOutputConnectionsExecution | typeof GetNodePaddingExecution | typeof GetNodesExecution | typeof GetParentNodesExecution | typeof RemoveNodeFromStoreExecution)[];
|
|
@@ -2,7 +2,7 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { UpdateNodeWhenStateOrSizeChangedRequest } from './update-node-when-state-or-size-changed-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class UpdateNodeWhenStateOrSizeChangedExecution implements IExecution<UpdateNodeWhenStateOrSizeChangedRequest, void> {
|
|
5
|
-
private _fMediator;
|
|
5
|
+
private readonly _fMediator;
|
|
6
6
|
handle(request: UpdateNodeWhenStateOrSizeChangedRequest): void;
|
|
7
7
|
private _calculateConnectorsConnectableSide;
|
|
8
8
|
private _calculateConnectorConnectableSide;
|
|
@@ -3,13 +3,15 @@ import { IExecution } from '@foblex/mediator';
|
|
|
3
3
|
import { IRoundedRect } from '@foblex/2d';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GetNormalizedElementRectExecution implements IExecution<GetNormalizedElementRectRequest, IRoundedRect> {
|
|
6
|
-
private _fComponentsStore;
|
|
7
|
-
private _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fMediator;
|
|
8
8
|
private get _transform();
|
|
9
9
|
handle(request: GetNormalizedElementRectRequest): IRoundedRect;
|
|
10
10
|
private _getElementRoundedRect;
|
|
11
11
|
private _normalizePosition;
|
|
12
|
-
private
|
|
12
|
+
private _unscaleSize;
|
|
13
|
+
private _getUnscaledRect;
|
|
14
|
+
private _getOffsetSize;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedElementRectExecution, never>;
|
|
14
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedElementRectExecution>;
|
|
15
17
|
}
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GetNormalizedElementRectExecution } from './get-normalized-element-rect';
|
|
2
2
|
import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
|
|
3
3
|
import { GetNormalizedPointExecution } from './get-normalized-point';
|
|
4
|
-
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
5
4
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
6
5
|
import { GetElementRoundedRectExecution } from './get-element-rounded-rect';
|
|
7
|
-
export declare const COMMON_PROVIDERS: (typeof
|
|
6
|
+
export declare const COMMON_PROVIDERS: (typeof import("./f-node").UpdateNodeWhenStateOrSizeChangedExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehaviorExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStoreExecution | typeof import("./f-connectors").AddOutletToStoreExecution | typeof import("./f-connectors").AddOutputToStoreExecution | typeof import("./f-connectors").CalculateClosestInputExecution | typeof import("./f-connectors").FindInputAtPositionExecution | typeof import("./f-connectors").GetAllCanBeConnectedInputsAndRectsExecution | typeof import("./f-connectors").GetConnectorAndRectExecution | typeof import("./f-connectors").MarkAllCanBeConnectedInputsExecution | typeof import("./f-connectors").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkAllCanBeConnectedInputsExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStoreExecution | typeof import("./f-node").CalculateInputConnectionsExecution | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPositionExecution | typeof import("./f-node").CalculateOutputConnectionsExecution | typeof import("./f-node").GetNodePaddingExecution | typeof import("./f-node").GetParentNodesExecution | typeof import("./f-node").RemoveNodeFromStoreExecution | typeof GetElementRoundedRectExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SortItemLayersRequest } from './sort-item-layers.request';
|
|
2
|
-
import {
|
|
3
|
-
import { FComponentsStore } from '../../f-storage';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class SortItemLayersExecution implements IExecution<SortItemLayersRequest, void> {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private get _fCanvas();
|
|
9
8
|
handle(request: SortItemLayersRequest): void;
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemLayersExecution, never>;
|
|
11
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<SortItemLayersExecution>;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { SortItemsByParentRequest } from './sort-items-by-parent.request';
|
|
2
|
-
import {
|
|
3
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
-
import { BrowserService } from '@foblex/platform';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class SortItemsByParentExecution implements IExecution<SortItemsByParentRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fBrowser;
|
|
8
|
+
private _fItemsContainer;
|
|
11
9
|
private get _fItemElements();
|
|
12
|
-
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator, fBrowser: BrowserService);
|
|
13
10
|
handle(request: SortItemsByParentRequest): void;
|
|
14
11
|
private _getItemsOfContainer;
|
|
15
12
|
private _getSortedChildrenItems;
|
|
16
13
|
private _getChildrenItems;
|
|
17
|
-
private
|
|
14
|
+
private _moveChildrenItems;
|
|
18
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemsByParentExecution, never>;
|
|
19
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<SortItemsByParentExecution>;
|
|
20
17
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { SortNodeLayersRequest } from './sort-node-layers.request';
|
|
2
|
-
import {
|
|
3
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
-
import { BrowserService } from '@foblex/platform';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class SortNodeLayersExecution implements IExecution<SortNodeLayersRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private get
|
|
11
|
-
private get
|
|
12
|
-
private get
|
|
13
|
-
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private readonly _fBrowser;
|
|
8
|
+
private get _fCanvas();
|
|
9
|
+
private get _fGroupsContainer();
|
|
10
|
+
private get _fNodesContainer();
|
|
11
|
+
private get _fNodeElements();
|
|
14
12
|
handle(request: SortNodeLayersRequest): void;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
13
|
+
private _getGroups;
|
|
14
|
+
private _getSortedChildrenNodes;
|
|
15
|
+
private _getChildrenNodes;
|
|
16
|
+
private _moveChildrenNodes;
|
|
19
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortNodeLayersExecution, never>;
|
|
20
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<SortNodeLayersExecution>;
|
|
21
19
|
}
|
package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { UpdateItemAndChildrenLayersRequest } from './update-item-and-children-layers.request';
|
|
2
|
-
import {
|
|
3
|
-
import { FComponentsStore } from '../../f-storage';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class UpdateItemAndChildrenLayersExecution implements IExecution<UpdateItemAndChildrenLayersRequest, void> {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
private get
|
|
9
|
-
private get
|
|
10
|
-
private get
|
|
11
|
-
|
|
5
|
+
private readonly _fMediator;
|
|
6
|
+
private readonly _fComponentsStore;
|
|
7
|
+
private get _fCanvas();
|
|
8
|
+
private get _fGroupsContainer();
|
|
9
|
+
private get _fNodesContainer();
|
|
10
|
+
private get _fConnectionsContainer();
|
|
12
11
|
handle(request: UpdateItemAndChildrenLayersRequest): void;
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
12
|
+
private _handleGroup;
|
|
13
|
+
private _handleNode;
|
|
14
|
+
private _handleConnection;
|
|
15
|
+
private _updateLayers;
|
|
16
|
+
private _isAnythingNeedToBeMoved;
|
|
17
|
+
private _getChildrenGroups;
|
|
18
|
+
private _getChildrenNodes;
|
|
19
|
+
private _getChildrenNodesAndGroups;
|
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateItemAndChildrenLayersExecution, never>;
|
|
22
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateItemAndChildrenLayersExecution>;
|
|
23
22
|
}
|
|
@@ -9,6 +9,9 @@ export const F_CSS_CLASS = {
|
|
|
9
9
|
INPUT_CONNECTED: 'f-node-input-connected',
|
|
10
10
|
INPUT_NOT_CONNECTABLE: 'f-node-input-not-connectable',
|
|
11
11
|
INPUT_CAN_BE_CONNECTED_TO: 'f-node-input-can-be-connected-to',
|
|
12
|
+
},
|
|
13
|
+
CONNECTION: {
|
|
14
|
+
DRAG_HANDLE: 'f-connection-drag-handle',
|
|
12
15
|
}
|
|
13
16
|
};
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzLWNscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2Nzcy1jbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHO0lBRXpCLGFBQWEsRUFBRTtRQUViLFFBQVEsRUFBRSxZQUFZO1FBRXRCLG9CQUFvQixFQUFFLHdCQUF3QjtLQUMvQztJQUVELFNBQVMsRUFBRTtRQUVULGdCQUFnQixFQUFFLHlCQUF5QjtRQUUzQyxzQkFBc0IsRUFBRSwrQkFBK0I7UUFFdkQsZUFBZSxFQUFFLHdCQUF3QjtRQUV6QyxxQkFBcUIsRUFBRSw4QkFBOEI7UUFFckQseUJBQXlCLEVBQUUsa0NBQWtDO0tBQzlEO0lBRUQsVUFBVSxFQUFFO1FBRVYsV0FBVyxFQUFFLDBCQUEwQjtLQUV4QztDQUNGLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgRl9DU1NfQ0xBU1MgPSB7XG5cbiAgRFJBR19BTkRfRFJPUDoge1xuXG4gICAgRFJBR0dJTkc6ICdmLWRyYWdnaW5nJyxcblxuICAgIENPTk5FQ1RJT05TX0RSQUdHSU5HOiAnZi1jb25uZWN0aW9ucy1kcmFnZ2luZycsXG4gIH0sXG5cbiAgQ09OTkVDVE9SOiB7XG5cbiAgICBPVVRQVVRfQ09OTkVDVEVEOiAnZi1ub2RlLW91dHB1dC1jb25uZWN0ZWQnLFxuXG4gICAgT1VUUFVUX05PVF9DT05ORUNUQUJMRTogJ2Ytbm9kZS1vdXRwdXQtbm90LWNvbm5lY3RhYmxlJyxcblxuICAgIElOUFVUX0NPTk5FQ1RFRDogJ2Ytbm9kZS1pbnB1dC1jb25uZWN0ZWQnLFxuXG4gICAgSU5QVVRfTk9UX0NPTk5FQ1RBQkxFOiAnZi1ub2RlLWlucHV0LW5vdC1jb25uZWN0YWJsZScsXG5cbiAgICBJTlBVVF9DQU5fQkVfQ09OTkVDVEVEX1RPOiAnZi1ub2RlLWlucHV0LWNhbi1iZS1jb25uZWN0ZWQtdG8nLFxuICB9LFxuXG4gIENPTk5FQ1RJT046IHtcblxuICAgIERSQUdfSEFORExFOiAnZi1jb25uZWN0aW9uLWRyYWctaGFuZGxlJyxcblxuICB9XG59XG4iXX0=
|
package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs
CHANGED
|
@@ -19,4 +19,4 @@ export { AddBackgroundToStoreExecution };
|
|
|
19
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: AddBackgroundToStoreExecution, decorators: [{
|
|
20
20
|
type: Injectable
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWJhY2tncm91bmQtdG8tc3RvcmUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1iYWNrZ3JvdW5kL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBp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pc3RlcihBZGRCYWNrZ3JvdW5kVG9TdG9yZVJlcXVlc3QpXG5leHBvcnQgY2xhc3MgQWRkQmFja2dyb3VuZFRvU3RvcmVFeGVjdXRpb24gaW1wbGVtZW50cyBJRXhlY3V0aW9uPEFkZEJhY2tncm91bmRUb1N0b3JlUmVxdWVzdCwgdm9pZD4ge1xuXG4gIHByaXZhdGUgcmVhZG9ubHkgX2ZDb21wb25lbnRzU3RvcmUgPSBpbmplY3QoRkNvbXBvbmVudHNTdG9yZSk7XG5cbiAgcHVibGljIGhhbmRsZShyZXF1ZXN0OiBBZGRCYWNrZ3JvdW5kVG9TdG9yZVJlcXVlc3QpOiB2b2lkIHtcbiAgICB0aGlzLl9mQ29tcG9uZW50c1N0b3JlLmZCYWNrZ3JvdW5kID0gcmVxdWVzdC5mQmFja2dyb3VuZDtcbiAgfVxufVxuIl19
|
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { TransformModelExtensions } from '@foblex/2d';
|
|
3
3
|
import { AddPatternToBackgroundRequest } from './add-pattern-to-background.request';
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
4
|
+
import { inject, Injectable } from '@angular/core';
|
|
5
5
|
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
6
|
import { createSVGElement } from '../../../domain';
|
|
7
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
8
|
+
import { BrowserService } from '@foblex/platform';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../f-storage";
|
|
9
|
-
import * as i2 from "@foblex/platform";
|
|
10
10
|
let uniqueId = 0;
|
|
11
11
|
let AddPatternToBackgroundExecution = class AddPatternToBackgroundExecution {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
get
|
|
15
|
-
return this.
|
|
16
|
-
}
|
|
17
|
-
constructor(fComponentsStore, fBrowser) {
|
|
18
|
-
this.fComponentsStore = fComponentsStore;
|
|
19
|
-
this.fBrowser = fBrowser;
|
|
12
|
+
_fComponentsStore = inject(FComponentsStore);
|
|
13
|
+
_fBrowser = inject(BrowserService);
|
|
14
|
+
get _fBackground() {
|
|
15
|
+
return this._fComponentsStore.fBackground;
|
|
20
16
|
}
|
|
21
17
|
handle(request) {
|
|
22
18
|
const children = request.fPattern?.hostElement.getElementsByTagName('pattern') || [];
|
|
23
19
|
const pattern = children.length ? children[0] : undefined;
|
|
24
20
|
if (pattern) {
|
|
25
|
-
const defs = createSVGElement('defs', this.
|
|
21
|
+
const defs = createSVGElement('defs', this._fBrowser);
|
|
26
22
|
pattern.id = 'f-background-pattern-' + uniqueId++;
|
|
27
23
|
request.fPattern?.hostElement.remove();
|
|
28
24
|
defs.appendChild(pattern);
|
|
29
|
-
this.
|
|
30
|
-
const rect = createSVGElement('rect', this.
|
|
25
|
+
this._fBackground.hostElement?.firstChild?.appendChild(defs);
|
|
26
|
+
const rect = createSVGElement('rect', this._fBrowser);
|
|
31
27
|
rect.setAttribute('fill', 'url(#' + pattern.id + ')');
|
|
32
28
|
rect.setAttribute('width', '100%');
|
|
33
29
|
rect.setAttribute('height', '100%');
|
|
34
|
-
this.
|
|
35
|
-
const transform = this.
|
|
30
|
+
this._fBackground.hostElement.firstChild?.appendChild(rect);
|
|
31
|
+
const transform = this._fComponentsStore.fCanvas?.transform || TransformModelExtensions.default();
|
|
36
32
|
request.fPattern?.setTransform(transform);
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: AddPatternToBackgroundExecution, deps: [
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: AddPatternToBackgroundExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
36
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: AddPatternToBackgroundExecution });
|
|
41
37
|
};
|
|
42
38
|
AddPatternToBackgroundExecution = __decorate([
|
|
@@ -45,5 +41,5 @@ AddPatternToBackgroundExecution = __decorate([
|
|
|
45
41
|
export { AddPatternToBackgroundExecution };
|
|
46
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: AddPatternToBackgroundExecution, decorators: [{
|
|
47
43
|
type: Injectable
|
|
48
|
-
}]
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
44
|
+
}] });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC9hZGQtcGF0dGVybi10by1iYWNrZ3JvdW5kLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BGLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxrQkFBa0IsRUFBYyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQz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YXVsdCgpO1xuICAgICAgcmVxdWVzdC5mUGF0dGVybj8uc2V0VHJhbnNmb3JtKHRyYW5zZm9ybSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -19,4 +19,4 @@ export { RemoveBackgroundFromStoreExecution };
|
|
|
19
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: RemoveBackgroundFromStoreExecution, decorators: [{
|
|
20
20
|
type: Injectable
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvcmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS9yZW1vdmUtYmFja2dyb3VuZC1mcm9tLXN0b3JlLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDMUYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7O0FBSS9DLElBQU0sa0NBQWtDLEdBQXhDLE1BQU0sa0NBQWtDO0lBRTVCLGlCQUFpQixHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBRXZELE1BQU0sQ0FBQyxPQUF5QztRQUNyRCx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2ZDb21wb25lbnRzU3RvcmUuZkJhY2tncm91bmQgPSB1bmRlZmluZWQ7XG4gIH1cbn1cbiJdfQ==
|
package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs
CHANGED
|
@@ -19,4 +19,4 @@ export { SetBackgroundTransformExecution };
|
|
|
19
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: SetBackgroundTransformExecution, decorators: [{
|
|
20
20
|
type: Injectable
|
|
21
21
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtYmFja2dyb3VuZC9zZXQtYmFja2dyb3VuZC10cmFuc2Zvcm0vc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDbEUsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDbkYsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7O0FBSS9DLElBQU0sK0JBQStCLEdBQXJDLE1BQU0sK0JBQStCO0lBRXpCLGlCQUFpQixHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBRXZELE1BQU0sQ0FBQyxPQUFzQztRQUNsRCxJQUFJLEN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b21wb25lbnRzU3RvcmUuZkJhY2tncm91bmQ/LnNldFRyYW5zZm9ybShyZXF1ZXN0LmZUcmFuc2Zvcm0pO1xuICB9XG59XG4iXX0=
|
|
@@ -17,6 +17,7 @@ let InputCanvasPositionExecution = class InputCanvasPositionExecution {
|
|
|
17
17
|
request.transform.scaledPosition = PointExtensions.initialize();
|
|
18
18
|
this._fComponentsStore.fCanvas?.redraw();
|
|
19
19
|
}
|
|
20
|
+
return void 0;
|
|
20
21
|
}
|
|
21
22
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: InputCanvasPositionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
23
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: InputCanvasPositionExecution });
|
|
@@ -28,4 +29,4 @@ export { InputCanvasPositionExecution };
|
|
|
28
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: InputCanvasPositionExecution, decorators: [{
|
|
29
30
|
type: Injectable
|
|
30
31
|
}] });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXBvc2l0aW9uLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1wb3NpdGlvbi9pbnB1dC1jYW52YXMtcG9zaXRpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPL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c2Zvcm0ucG9zaXRpb24sIHJlcXVlc3QudHJhbnNmb3JtLnNjYWxlZFBvc2l0aW9uKTtcbiAgICBpZiAoIVBvaW50RXh0ZW5zaW9ucy5pc0VxdWFsKHBvc2l0aW9uLCByZXF1ZXN0LnBvc2l0aW9uKSkge1xuICAgICAgcmVxdWVzdC50cmFuc2Zvcm0ucG9zaXRpb24gPSByZXF1ZXN0LnBvc2l0aW9uO1xuICAgICAgcmVxdWVzdC50cmFuc2Zvcm0uc2NhbGVkUG9zaXRpb24gPSBQb2ludEV4dGVuc2lvbnMuaW5pdGlhbGl6ZSgpO1xuICAgICAgdGhpcy5fZkNvbXBvbmVudHNTdG9yZS5mQ2FudmFzPy5yZWRyYXcoKTtcbiAgICB9XG4gICAgcmV0dXJuIHZvaWQgMDtcbiAgfVxufVxuIl19
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
let InputCanvasScaleExecution = class InputCanvasScaleExecution {
|
|
8
8
|
_fComponentsStore = inject(FComponentsStore);
|
|
9
9
|
handle(request) {
|
|
10
|
-
if (!request.scale) {
|
|
10
|
+
if (!request.scale && request.scale !== 0) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
request.transform.scale = request.scale;
|
|
@@ -23,4 +23,4 @@ export { InputCanvasScaleExecution };
|
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: InputCanvasScaleExecution, decorators: [{
|
|
24
24
|
type: Injectable
|
|
25
25
|
}] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXNjYWxlLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYW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