@foblex/flow 17.0.4 → 17.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.d.ts +10 -0
- package/domain/{get-connection-line/get-connection-line.request.d.ts → f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.d.ts} +3 -3
- package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +3 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +3 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +3 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/index.d.ts +5 -0
- package/domain/f-connection/index.d.ts +1 -0
- package/domain/f-connection/providers.d.ts +2 -1
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +2 -0
- package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections.execution.d.ts +1 -1
- package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +1 -1
- package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.execution.d.ts +1 -1
- package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connection.d.ts +1 -1
- package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connector.d.ts +1 -1
- package/domain/f-flow/index.d.ts +1 -0
- package/domain/f-flow/providers.d.ts +1 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +12 -0
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.d.ts +2 -0
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +2 -0
- package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.execution.d.ts +2 -4
- package/domain/f-node/index.d.ts +3 -0
- package/domain/f-node/providers.d.ts +4 -1
- package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +18 -0
- package/domain/f-selection/get-can-be-selected-items/i-can-be-selected.d.ts +6 -0
- package/domain/f-selection/get-can-be-selected-items/index.d.ts +3 -0
- package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +13 -0
- package/domain/f-selection/get-current-selection/get-current-selection.request.d.ts +2 -0
- package/domain/f-selection/get-current-selection/i-current-selection.d.ts +5 -0
- package/domain/f-selection/get-current-selection/index.d.ts +3 -0
- package/domain/f-selection/index.d.ts +2 -1
- package/domain/f-selection/providers.d.ts +4 -3
- package/domain/{get-element-rect-in-flow/get-element-rect-in-flow-request.d.ts → get-element-rounded-rect/get-element-rounded-rect-request.d.ts} +1 -1
- package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +13 -0
- package/domain/get-element-rounded-rect/index.d.ts +2 -0
- package/domain/{create-rounded-rect-from-element/create-rounded-rect-from-element-request.d.ts → get-normalized-element-rect/get-normalized-element-rect-request.d.ts} +1 -1
- package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +15 -0
- package/domain/get-normalized-element-rect/index.d.ts +2 -0
- package/domain/{get-position-in-flow/get-position-in-flow-request.d.ts → get-normalized-point/get-normalized-point-request.d.ts} +1 -1
- package/domain/get-normalized-point/get-normalized-point.execution.d.ts +11 -0
- package/domain/get-normalized-point/index.d.ts +2 -0
- package/domain/index.d.ts +3 -7
- package/domain/providers.d.ts +4 -7
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +29 -0
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.mjs +15 -0
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +5 -0
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +32 -0
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +14 -0
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/index.mjs +6 -0
- package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +3 -3
- package/esm2022/domain/f-connection/index.mjs +2 -1
- package/esm2022/domain/f-connection/providers.mjs +3 -1
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +4 -4
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +10 -4
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +34 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +7 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +51 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +41 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state.request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connection.mjs +2 -0
- package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connector.mjs +2 -0
- package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-node.mjs +2 -0
- package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state.mjs +2 -0
- package/esm2022/domain/f-flow/get-flow-state/index.mjs +10 -0
- package/esm2022/domain/f-flow/get-flow-state/providers.mjs +9 -0
- package/esm2022/domain/f-flow/index.mjs +2 -1
- package/esm2022/domain/f-flow/providers.mjs +3 -1
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +4 -2
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +31 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +3 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.mjs +3 -0
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.execution.mjs +34 -0
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.request.mjs +9 -0
- package/esm2022/domain/f-node/get-node-padding/index.mjs +3 -0
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +34 -0
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +7 -0
- package/esm2022/domain/f-node/get-parent-nodes/index.mjs +3 -0
- package/esm2022/domain/f-node/index.mjs +4 -1
- package/esm2022/domain/f-node/providers.mjs +7 -1
- package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items-request.mjs +3 -0
- package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +57 -0
- package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected.mjs +2 -0
- package/esm2022/domain/f-selection/get-can-be-selected-items/index.mjs +4 -0
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +41 -0
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +3 -0
- package/esm2022/domain/f-selection/get-current-selection/i-current-selection.mjs +2 -0
- package/esm2022/domain/f-selection/get-current-selection/index.mjs +4 -0
- package/esm2022/domain/f-selection/index.mjs +3 -2
- package/esm2022/domain/f-selection/providers.mjs +6 -4
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +7 -0
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +32 -0
- package/esm2022/domain/{get-element-rect-in-flow → get-element-rounded-rect}/index.mjs +3 -3
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect-request.mjs +7 -0
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +40 -0
- package/esm2022/domain/get-normalized-element-rect/index.mjs +3 -0
- package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +7 -0
- package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +27 -0
- package/esm2022/domain/get-normalized-point/index.mjs +3 -0
- package/esm2022/domain/index.mjs +4 -8
- package/esm2022/domain/providers.mjs +7 -15
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +6 -6
- package/esm2022/f-draggable/domain/index.mjs +1 -4
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +2 -2
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.request.mjs +1 -1
- package/esm2022/f-draggable/domain/providers.mjs +1 -7
- package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/f-draggable/f-draggable.directive.mjs +8 -2
- package/esm2022/f-draggable/f-selection-change-event.mjs +4 -2
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +32 -35
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +12 -15
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +37 -31
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +41 -43
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +19 -23
- package/esm2022/f-draggable/node/node.drag-handler.mjs +25 -10
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +3 -2
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +4 -5
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +3 -3
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +3 -3
- package/esm2022/f-flow/f-flow.component.mjs +6 -6
- package/esm2022/f-flow.module.mjs +1 -1
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +4 -4
- package/esm2022/f-node/f-drag-handle.directive.mjs +22 -0
- package/esm2022/f-node/index.mjs +3 -3
- package/esm2022/f-node/is-node.mjs +4 -0
- package/esm2022/f-node/providers.mjs +2 -2
- package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +12 -11
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +1 -1
- package/f-draggable/domain/index.d.ts +0 -3
- package/f-draggable/domain/providers.d.ts +1 -4
- package/f-draggable/f-draggable-base.d.ts +2 -0
- package/f-draggable/f-draggable.directive.d.ts +4 -2
- package/f-draggable/f-selection-change-event.d.ts +4 -2
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +7 -9
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.d.ts +3 -4
- package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +11 -11
- package/f-draggable/node/node-move-preparation/node-move-preparation.execution.d.ts +11 -14
- package/f-draggable/node/node-move-preparation/node-move-preparation.validator.d.ts +6 -9
- package/f-draggable/node/node.drag-handler.d.ts +9 -5
- package/f-draggable/providers.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +3 -4
- package/f-flow.module.d.ts +1 -1
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-node/{f-drag-handle/f-drag-handle.directive.d.ts → f-drag-handle.directive.d.ts} +1 -1
- package/f-node/index.d.ts +2 -2
- package/f-node/providers.d.ts +2 -2
- package/f-selection-area/domain/selection-area.drag-handle.d.ts +2 -2
- package/f-storage/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +591 -603
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +1 -1
- package/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.d.ts +0 -15
- package/domain/create-rounded-rect-from-element/index.d.ts +0 -2
- package/domain/f-selection/get-selection/get-selection.execution.d.ts +0 -11
- package/domain/f-selection/get-selection/get-selection.request.d.ts +0 -2
- package/domain/f-selection/get-selection/index.d.ts +0 -2
- package/domain/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +0 -19
- package/domain/get-can-be-selected-items/i-selectable-with-rect.d.ts +0 -6
- package/domain/get-can-be-selected-items/index.d.ts +0 -2
- package/domain/get-connection-line/get-connection-line.execution.d.ts +0 -13
- package/domain/get-connection-line/index.d.ts +0 -2
- package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +0 -16
- package/domain/get-element-rect-in-flow/index.d.ts +0 -2
- package/domain/get-position-in-flow/get-position-in-flow.execution.d.ts +0 -14
- package/domain/get-position-in-flow/index.d.ts +0 -2
- package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.d.ts +0 -14
- package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.d.ts +0 -2
- package/domain/get-scaled-node-rects-with-flow-position/index.d.ts +0 -2
- package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs +0 -7
- package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +0 -40
- package/esm2022/domain/create-rounded-rect-from-element/index.mjs +0 -3
- package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +0 -36
- package/esm2022/domain/f-selection/get-selection/get-selection.request.mjs +0 -3
- package/esm2022/domain/f-selection/get-selection/index.mjs +0 -3
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs +0 -3
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +0 -60
- package/esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs +0 -2
- package/esm2022/domain/get-can-be-selected-items/index.mjs +0 -3
- package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +0 -65
- package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +0 -15
- package/esm2022/domain/get-connection-line/index.mjs +0 -3
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +0 -7
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +0 -43
- package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +0 -3
- package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +0 -34
- package/esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs +0 -3
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +0 -7
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +0 -51
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs +0 -3
- package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +0 -41
- package/esm2022/domain/get-flow-state/get-flow-state.request.mjs +0 -3
- package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +0 -2
- package/esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs +0 -2
- package/esm2022/domain/get-flow-state/i-f-flow-state-node.mjs +0 -2
- package/esm2022/domain/get-flow-state/i-f-flow-state.mjs +0 -2
- package/esm2022/domain/get-flow-state/index.mjs +0 -10
- package/esm2022/domain/get-flow-state/providers.mjs +0 -9
- package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +0 -7
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +0 -33
- package/esm2022/domain/get-position-in-flow/index.mjs +0 -3
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +0 -35
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs +0 -3
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs +0 -3
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +0 -34
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs +0 -9
- package/esm2022/f-draggable/domain/get-node-padding/index.mjs +0 -3
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +0 -30
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs +0 -7
- package/esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs +0 -3
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +0 -37
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs +0 -7
- package/esm2022/f-draggable/domain/get-parent-nodes/index.mjs +0 -3
- package/esm2022/f-node/domain/index.mjs +0 -2
- package/esm2022/f-node/domain/is-node.mjs +0 -4
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -22
- package/esm2022/f-node/f-drag-handle/index.mjs +0 -2
- package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.d.ts +0 -13
- package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.d.ts +0 -5
- package/f-draggable/domain/get-normalized-node-rect/index.d.ts +0 -2
- package/f-node/domain/index.d.ts +0 -1
- package/f-node/f-drag-handle/index.d.ts +0 -1
- /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections-request.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/index.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes-request.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/index.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.request.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-node.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/index.d.ts +0 -0
- /package/domain/{get-flow-state → f-flow/get-flow-state}/providers.d.ts +0 -0
- /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.execution.d.ts +0 -0
- /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.request.d.ts +0 -0
- /package/{f-draggable/domain → domain/f-node}/get-node-padding/index.d.ts +0 -0
- /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.request.d.ts +0 -0
- /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/index.d.ts +0 -0
- /package/domain/{get-can-be-selected-items → f-selection/get-can-be-selected-items}/get-can-be-selected-items-request.d.ts +0 -0
- /package/f-node/{domain/is-node.d.ts → is-node.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { ILine } from '@foblex/2d';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalculateConnectionLineByBehaviorExecution implements IExecution<CalculateConnectionLineByBehaviorRequest, ILine> {
|
|
6
|
+
private _handlers;
|
|
7
|
+
handle(payload: CalculateConnectionLineByBehaviorRequest): ILine;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectionLineByBehaviorExecution, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectionLineByBehaviorExecution>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EFConnectionBehavior } from '
|
|
2
|
-
import { EFConnectableSide } from '
|
|
1
|
+
import { EFConnectionBehavior } from '../../../f-connection';
|
|
2
|
+
import { EFConnectableSide } from '../../../f-connectors';
|
|
3
3
|
import { IRoundedRect } from '@foblex/2d';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class CalculateConnectionLineByBehaviorRequest {
|
|
5
5
|
outputRect: IRoundedRect;
|
|
6
6
|
inputRect: IRoundedRect;
|
|
7
7
|
behavior: EFConnectionBehavior | string;
|
|
@@ -5,6 +5,7 @@ export * from './add-snap-connection-to-store';
|
|
|
5
5
|
export * from './create-connection-markers';
|
|
6
6
|
export * from './find-closest-input-using-snap-threshold';
|
|
7
7
|
export * from './get-all-can-be-connected-input-positions';
|
|
8
|
+
export * from './calculate-connection-line-by-behavior';
|
|
8
9
|
export * from './get-connector-with-rect';
|
|
9
10
|
export * from './redraw-connections';
|
|
10
11
|
export * from './remove-connection-for-create-from-store';
|
|
@@ -11,4 +11,5 @@ import { RemoveSnapConnectionFromStoreExecution } from './remove-snap-connection
|
|
|
11
11
|
import { AddConnectionMarkerToStoreExecution } from './add-connection-marker-to-store';
|
|
12
12
|
import { RemoveConnectionMarkerFromStoreExecution } from './remove-connection-marker-from-store';
|
|
13
13
|
import { RedrawConnectionsExecution } from './redraw-connections';
|
|
14
|
-
|
|
14
|
+
import { CalculateConnectionLineByBehaviorExecution } from './calculate-connection-line-by-behavior';
|
|
15
|
+
export declare const F_CONNECTION_FEATURES: (typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof FindClosestInputUsingSnapThresholdExecution | typeof GetAllCanBeConnectedInputPositionsExecution | typeof CalculateConnectionLineByBehaviorExecution | typeof GetConnectorWithRectExecution | typeof RedrawConnectionsExecution | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
|
package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare class EmitSelectionChangeEventExecution implements IExecution<Emi
|
|
|
7
7
|
private get _fSelectionChange();
|
|
8
8
|
private _fDraggableDataContext;
|
|
9
9
|
handle(request: EmitSelectionChangeEventRequest): void;
|
|
10
|
+
private _getSelection;
|
|
11
|
+
private _emitSelectionChange;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmitSelectionChangeEventExecution, never>;
|
|
11
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<EmitSelectionChangeEventExecution>;
|
|
12
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetFlowStateConnectionsRequest } from './get-flow-state-connections-request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FComponentsStore } from '
|
|
3
|
+
import { FComponentsStore } from '../../../../f-storage';
|
|
4
4
|
import { IFFlowStateConnection } from '../i-f-flow-state-connection';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class GetFlowStateConnectionsExecution implements IExecution<GetFlowStateConnectionsRequest, IFFlowStateConnection[]> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetFlowStateNodesRequest } from './get-flow-state-nodes-request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IFFlowStateNode } from '../i-f-flow-state-node';
|
|
4
|
-
import { FComponentsStore } from '
|
|
4
|
+
import { FComponentsStore } from '../../../../f-storage';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class GetFlowStateNodesExecution implements IExecution<GetFlowStateNodesRequest, IFFlowStateNode[]> {
|
|
7
7
|
private fComponentsStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetFlowStateRequest } from './get-flow-state.request';
|
|
2
2
|
import { FMediator, IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IFFlowState } from './i-f-flow-state';
|
|
4
|
-
import { FComponentsStore } from '
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class GetFlowStateExecution implements IExecution<GetFlowStateRequest, IFFlowState> {
|
|
7
7
|
private fComponentsStore;
|
package/domain/f-flow/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { GetFlowHostElementExecution } from './get-flow-host-element';
|
|
|
2
2
|
import { AddFlowToStoreExecution } from './add-flow-to-store';
|
|
3
3
|
import { RemoveFlowFromStoreExecution } from './remove-flow-from-store';
|
|
4
4
|
import { GetFlowExecution } from './get-flow';
|
|
5
|
-
export declare const F_FLOW_FEATURES: (typeof AddFlowToStoreExecution | typeof GetFlowExecution | typeof GetFlowHostElementExecution | typeof RemoveFlowFromStoreExecution)[];
|
|
5
|
+
export declare const F_FLOW_FEATURES: (typeof AddFlowToStoreExecution | typeof GetFlowExecution | typeof GetFlowHostElementExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof RemoveFlowFromStoreExecution)[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRect } from '@foblex/2d';
|
|
2
|
+
import { CalculateNodesBoundingBoxNormalizedPositionRequest } from './calculate-nodes-bounding-box-normalized-position.request';
|
|
3
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CalculateNodesBoundingBoxNormalizedPositionExecution implements IExecution<CalculateNodesBoundingBoxNormalizedPositionRequest, IRect | null> {
|
|
6
|
+
private _fComponentsStore;
|
|
7
|
+
handle(request: CalculateNodesBoundingBoxNormalizedPositionRequest): IRect | null;
|
|
8
|
+
private _getNodesRects;
|
|
9
|
+
private _getElementRect;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateNodesBoundingBoxNormalizedPositionExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalculateNodesBoundingBoxNormalizedPositionExecution>;
|
|
12
|
+
}
|
package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.execution.d.ts
RENAMED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { GetParentNodesRequest } from './get-parent-nodes.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { FNodeBase } from '../../../f-node';
|
|
4
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class GetParentNodesExecution implements IExecution<GetParentNodesRequest, FNodeBase[]> {
|
|
7
|
-
private
|
|
8
|
-
constructor(fComponentsStore: FComponentsStore);
|
|
6
|
+
private _fComponentsStore;
|
|
9
7
|
handle(request: GetParentNodesRequest): FNodeBase[];
|
|
10
|
-
private
|
|
8
|
+
private _getParentNodes;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetParentNodesExecution, never>;
|
|
12
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetParentNodesExecution>;
|
|
13
11
|
}
|
package/domain/f-node/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './add-node-to-store';
|
|
2
2
|
export * from './calculate-nodes-bounding-box';
|
|
3
|
+
export * from './calculate-nodes-bounding-box-normalized-position';
|
|
4
|
+
export * from './get-node-padding';
|
|
3
5
|
export * from './get-nodes';
|
|
6
|
+
export * from './get-parent-nodes';
|
|
4
7
|
export * from './update-node-when-state-or-size-changed';
|
|
5
8
|
export * from './remove-node-from-store';
|
|
6
9
|
export * from './providers';
|
|
@@ -3,4 +3,7 @@ import { RemoveNodeFromStoreExecution } from './remove-node-from-store';
|
|
|
3
3
|
import { UpdateNodeWhenStateOrSizeChangedExecution } from './update-node-when-state-or-size-changed';
|
|
4
4
|
import { GetNodesExecution } from './get-nodes';
|
|
5
5
|
import { CalculateNodesBoundingBoxExecution } from './calculate-nodes-bounding-box';
|
|
6
|
-
|
|
6
|
+
import { CalculateNodesBoundingBoxNormalizedPositionExecution } from './calculate-nodes-bounding-box-normalized-position';
|
|
7
|
+
import { GetNodePaddingExecution } from './get-node-padding';
|
|
8
|
+
import { GetParentNodesExecution } from './get-parent-nodes';
|
|
9
|
+
export declare const F_NODE_FEATURES: (typeof GetParentNodesExecution | typeof AddNodeToStoreExecution | typeof CalculateNodesBoundingBoxExecution | typeof CalculateNodesBoundingBoxNormalizedPositionExecution | typeof GetNodePaddingExecution | typeof GetNodesExecution | typeof UpdateNodeWhenStateOrSizeChangedExecution | typeof RemoveNodeFromStoreExecution)[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICanBeSelected } from './i-can-be-selected';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetCanBeSelectedItemsExecution implements IExecution<void, ICanBeSelected[]> {
|
|
6
|
+
private fDraggableDataContext;
|
|
7
|
+
private _fMediator;
|
|
8
|
+
private _fComponentsStore;
|
|
9
|
+
private get fNodes();
|
|
10
|
+
private get fConnections();
|
|
11
|
+
private get transform();
|
|
12
|
+
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
13
|
+
handle(): ICanBeSelected[];
|
|
14
|
+
private getNodesWithRects;
|
|
15
|
+
private getConnectionsWithRects;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetCanBeSelectedItemsExecution, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetCanBeSelectedItemsExecution>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetCurrentSelectionRequest } from './get-current-selection.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { ICurrentSelection } from './i-current-selection';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetCurrentSelectionExecution implements IExecution<GetCurrentSelectionRequest, ICurrentSelection> {
|
|
6
|
+
private _fDraggableDataContext;
|
|
7
|
+
handle(): ICurrentSelection;
|
|
8
|
+
private _getSelectedNodes;
|
|
9
|
+
private _getSelectedGroups;
|
|
10
|
+
private _getSelectedConnections;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetCurrentSelectionExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetCurrentSelectionExecution>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './clear-selection';
|
|
2
|
-
export * from './get-
|
|
2
|
+
export * from './get-can-be-selected-items';
|
|
3
|
+
export * from './get-current-selection';
|
|
3
4
|
export * from './select';
|
|
4
5
|
export * from './select-all';
|
|
5
6
|
export * from './select-and-update-node-layer';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClearSelectionExecution } from './clear-selection';
|
|
2
|
-
import {
|
|
2
|
+
import { GetCurrentSelectionExecution } from './get-current-selection';
|
|
3
3
|
import { SelectExecution } from './select';
|
|
4
4
|
import { SelectAllExecution } from './select-all';
|
|
5
|
-
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer
|
|
6
|
-
|
|
5
|
+
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer';
|
|
6
|
+
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
7
|
+
export declare const F_SELECTION_FEATURES: (typeof ClearSelectionExecution | typeof GetCanBeSelectedItemsExecution | typeof GetCurrentSelectionExecution | typeof SelectExecution | typeof SelectAllExecution | typeof SelectAndUpdateNodeLayerExecution)[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetElementRoundedRectRequest } from './get-element-rounded-rect-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { RoundedRect } from '@foblex/2d';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetElementRoundedRectExecution implements IExecution<GetElementRoundedRectRequest, RoundedRect> {
|
|
6
|
+
private _fBrowser;
|
|
7
|
+
handle(request: GetElementRoundedRectRequest): RoundedRect;
|
|
8
|
+
private _getRoundedRect;
|
|
9
|
+
private _getComputedStyle;
|
|
10
|
+
private _toPixels;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetElementRoundedRectExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetElementRoundedRectExecution>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetNormalizedElementRectRequest } from './get-normalized-element-rect-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IRoundedRect } from '@foblex/2d';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetNormalizedElementRectExecution implements IExecution<GetNormalizedElementRectRequest, IRoundedRect> {
|
|
6
|
+
private _fComponentsStore;
|
|
7
|
+
private _fMediator;
|
|
8
|
+
private get _transform();
|
|
9
|
+
handle(request: GetNormalizedElementRectRequest): IRoundedRect;
|
|
10
|
+
private _getElementRoundedRect;
|
|
11
|
+
private _normalizePosition;
|
|
12
|
+
private _normalizeSize;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedElementRectExecution, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedElementRectExecution>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { GetNormalizedPointRequest } from './get-normalized-point-request';
|
|
3
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetNormalizedPointExecution implements IExecution<GetNormalizedPointRequest, IPoint> {
|
|
6
|
+
private _fComponentsStore;
|
|
7
|
+
private get _transform();
|
|
8
|
+
handle(request: GetNormalizedPointRequest): IPoint;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedPointExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedPointExecution>;
|
|
11
|
+
}
|
package/domain/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './get-element-rounded-rect';
|
|
2
2
|
export * from './f-background';
|
|
3
3
|
export * from './f-canvas';
|
|
4
4
|
export * from './f-connection';
|
|
@@ -8,13 +8,9 @@ export * from './f-flow';
|
|
|
8
8
|
export * from './f-line-alignment';
|
|
9
9
|
export * from './f-node';
|
|
10
10
|
export * from './f-selection';
|
|
11
|
-
export * from './get-can-be-selected-items';
|
|
12
11
|
export * from './get-deep-children-nodes-and-groups';
|
|
13
|
-
export * from './get-
|
|
14
|
-
export * from './get-
|
|
15
|
-
export * from './get-flow-state';
|
|
16
|
-
export * from './get-scaled-node-rects-with-flow-position';
|
|
17
|
-
export * from './get-position-in-flow';
|
|
12
|
+
export * from './get-normalized-element-rect';
|
|
13
|
+
export * from './get-normalized-point';
|
|
18
14
|
export * from './sort-item-layers';
|
|
19
15
|
export * from './update-item-and-children-layers';
|
|
20
16
|
export * from './create-dom-element';
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetElementRectInFlowExecution } from './get-element-rect-in-flow';
|
|
1
|
+
import { GetNormalizedElementRectExecution } from './get-normalized-element-rect';
|
|
3
2
|
import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
|
|
4
|
-
import {
|
|
5
|
-
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
6
|
-
import { GetScaledNodeRectsWithFlowPositionExecution } from './get-scaled-node-rects-with-flow-position';
|
|
3
|
+
import { GetNormalizedPointExecution } from './get-normalized-point';
|
|
7
4
|
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
8
5
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
9
|
-
import {
|
|
10
|
-
export declare const COMMON_PROVIDERS: (typeof
|
|
6
|
+
import { GetElementRoundedRectExecution } from './get-element-rounded-rect';
|
|
7
|
+
export declare const COMMON_PROVIDERS: (typeof GetElementRoundedRectExecution | typeof import("./f-node").GetParentNodesExecution | 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").FindClosestInputUsingSnapThresholdExecution | typeof import("./f-connection").GetAllCanBeConnectedInputPositionsExecution | typeof import("./f-connection").CalculateConnectionLineByBehaviorExecution | typeof import("./f-connection").GetConnectorWithRectExecution | typeof import("./f-connection").RedrawConnectionsExecution | 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").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-flow").GetFlowStateConnectionsExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStoreExecution | typeof import("./f-node").GetNodePaddingExecution | typeof import("./f-node").UpdateNodeWhenStateOrSizeChangedExecution | typeof import("./f-node").RemoveNodeFromStoreExecution | typeof import("./f-selection").ClearSelectionExecution | typeof import("./f-selection").GetCanBeSelectedItemsExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAllExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof SortItemLayersExecution | typeof SortItemsByParentExecution | typeof SortNodeLayersExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
|
|
3
|
+
import { Injectable } from '@angular/core';
|
|
4
|
+
import { EFConnectionBehavior } from '../../../f-connection';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { floatingBehavior } from './floating-behavior';
|
|
7
|
+
import { fixedCenterBehavior } from './fixed-center-behavior';
|
|
8
|
+
import { fixedOutboundBehavior } from './fixed-outbound-behavior';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
let CalculateConnectionLineByBehaviorExecution = class CalculateConnectionLineByBehaviorExecution {
|
|
11
|
+
_handlers = {
|
|
12
|
+
[EFConnectionBehavior.FLOATING.toString()]: floatingBehavior,
|
|
13
|
+
[EFConnectionBehavior.FIXED_CENTER.toString()]: fixedCenterBehavior,
|
|
14
|
+
[EFConnectionBehavior.FIXED.toString()]: fixedOutboundBehavior,
|
|
15
|
+
};
|
|
16
|
+
handle(payload) {
|
|
17
|
+
return this._handlers[payload.behavior](payload);
|
|
18
|
+
}
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution });
|
|
21
|
+
};
|
|
22
|
+
CalculateConnectionLineByBehaviorExecution = __decorate([
|
|
23
|
+
FExecutionRegister(CalculateConnectionLineByBehaviorRequest)
|
|
24
|
+
], CalculateConnectionLineByBehaviorExecution);
|
|
25
|
+
export { CalculateConnectionLineByBehaviorExecution };
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution, decorators: [{
|
|
27
|
+
type: Injectable
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZs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laGF2aW9yRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0LCBJTGluZT4ge1xuXG4gIHByaXZhdGUgX2hhbmRsZXJzID0ge1xuXG4gICAgWyBFRkNvbm5lY3Rpb25CZWhhdmlvci5GTE9BVElORy50b1N0cmluZygpIF06IGZsb2F0aW5nQmVoYXZpb3IsXG5cbiAgICBbIEVGQ29ubmVjdGlvbkJlaGF2aW9yLkZJWEVEX0NFTlRFUi50b1N0cmluZygpIF06IGZpeGVkQ2VudGVyQmVoYXZpb3IsXG5cbiAgICBbIEVGQ29ubmVjdGlvbkJlaGF2aW9yLkZJWEVELnRvU3RyaW5nKCkgXTogZml4ZWRPdXRib3VuZEJlaGF2aW9yLFxuICB9XG5cbiAgcHVibGljIGhhbmRsZShwYXlsb2FkOiBDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0KTogSUxpbmUge1xuICAgIHJldHVybiB0aGlzLl9oYW5kbGVyc1sgcGF5bG9hZC5iZWhhdmlvciBdKHBheWxvYWQpO1xuICB9XG59XG5cbiJdfQ==
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class CalculateConnectionLineByBehaviorRequest {
|
|
2
|
+
outputRect;
|
|
3
|
+
inputRect;
|
|
4
|
+
behavior;
|
|
5
|
+
outputSide;
|
|
6
|
+
inputSide;
|
|
7
|
+
constructor(outputRect, inputRect, behavior, outputSide, inputSide) {
|
|
8
|
+
this.outputRect = outputRect;
|
|
9
|
+
this.inputRect = inputRect;
|
|
10
|
+
this.behavior = behavior;
|
|
11
|
+
this.outputSide = outputSide;
|
|
12
|
+
this.inputSide = inputSide;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNvbm5lY3Rpb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AgICBwdWJsaWMgaW5wdXRSZWN0OiBJUm91bmRlZFJlY3QsXG4gICAgcHVibGljIGJlaGF2aW9yOiBFRkNvbm5lY3Rpb25CZWhhdmlvciB8IHN0cmluZyxcbiAgICBwdWJsaWMgb3V0cHV0U2lkZTogRUZDb25uZWN0YWJsZVNpZGUsXG4gICAgcHVibGljIGlucHV0U2lkZTogRUZDb25uZWN0YWJsZVNpZGUsXG4gICkge1xuXG4gIH1cbn1cbiJdfQ==
|
package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Line } from '@foblex/2d';
|
|
2
|
+
export function fixedCenterBehavior(payload) {
|
|
3
|
+
return new Line(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter);
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtY2VudGVyLWJlaGF2aW9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jb25uZWN0aW9uL2NhbGN1bGF0ZS1jb25uZWN0aW9uLWxpbmUtYnktYmVoYXZpb3IvZml4ZWQtY2VudGVyLWJlaGF2aW9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBUyxJQUFJLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFHekMsTUFBTSxVQUFVLG1CQUFtQixDQUFDLE9BQWlEO0lBQ25GLE9BQU8sSUFBSSxJQUFJLENBQ2IsT0FBTyxDQUFDLFVBQVUsQ0FBQyxhQUFhLEVBQ2hDLE9BQU8sQ0FBQyxTQUFTLENBQUMsYUFBYSxDQUNoQyxDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElMaW5lLCBMaW5lIH0gZnJvbSAnQGZvYmxleC8yZCc7XG5pbXBvcnQgeyBDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0IH0gZnJvbSAnLi9jYWxjdWxhdGUtY29ubmVjdGlvbi1saW5lLWJ5LWJlaGF2aW9yLnJlcXVlc3QnO1xuXG5leHBvcnQgZnVuY3Rpb24gZml4ZWRDZW50ZXJCZWhhdmlvcihwYXlsb2FkOiBDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0KTogSUxpbmUge1xuICByZXR1cm4gbmV3IExpbmUoXG4gICAgcGF5bG9hZC5vdXRwdXRSZWN0LmdyYXZpdHlDZW50ZXIsXG4gICAgcGF5bG9hZC5pbnB1dFJlY3QuZ3Jhdml0eUNlbnRlclxuICApO1xufVxuIl19
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Line, Point } from '@foblex/2d';
|
|
2
|
+
import { EFConnectableSide } from '../../../f-connectors';
|
|
3
|
+
export function fixedOutboundBehavior(payload) {
|
|
4
|
+
return new Line(positions[payload.outputSide === EFConnectableSide.AUTO ? EFConnectableSide.BOTTOM : payload.outputSide](payload.outputRect), positions[payload.inputSide === EFConnectableSide.AUTO ? EFConnectableSide.TOP : payload.inputSide](payload.inputRect));
|
|
5
|
+
}
|
|
6
|
+
const positions = {
|
|
7
|
+
[EFConnectableSide.TOP]: (rect) => {
|
|
8
|
+
const result = new Point();
|
|
9
|
+
result.y = rect.y;
|
|
10
|
+
result.x = rect.x + rect.width / 2;
|
|
11
|
+
return result;
|
|
12
|
+
},
|
|
13
|
+
[EFConnectableSide.BOTTOM]: (rect) => {
|
|
14
|
+
const result = new Point();
|
|
15
|
+
result.y = rect.y + rect.height;
|
|
16
|
+
result.x = rect.x + rect.width / 2;
|
|
17
|
+
return result;
|
|
18
|
+
},
|
|
19
|
+
[EFConnectableSide.LEFT]: (rect) => {
|
|
20
|
+
const result = new Point();
|
|
21
|
+
result.x = rect.x;
|
|
22
|
+
result.y = rect.y + rect.height / 2;
|
|
23
|
+
return result;
|
|
24
|
+
},
|
|
25
|
+
[EFConnectableSide.RIGHT]: (rect) => {
|
|
26
|
+
const result = new Point();
|
|
27
|
+
result.x = rect.x + rect.width;
|
|
28
|
+
result.y = rect.y + rect.height / 2;
|
|
29
|
+
return result;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtb3V0Ym91bmQtYmVoYXZpb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNvbm5lY3Rpb24vY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci9maXhlZC1vdXRib3VuZC1iZWhhdmlvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXdCLElBQUksRUFBRSxLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFL0QsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFFMUQsTUFBTSxVQUFVLHFCQUFxQixDQUFDLE9BQWlEO0lBQ3JGLE9BQU8sSUFBSSxJQUFJLENBQ2IsU0FBUyxDQUFFLE9BQU8sQ0FBQyxVQUFVLEtBQUssaUJBQWlCLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxpQkFBaUIsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUUsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDLEVBQzlILFNBQVMsQ0FBRSxPQUFPLENBQUMsU0FBUyxLQUFLLGlCQUFpQixDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsaUJBQWlCLENBQUMsR0FBRyxD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gRUZDb25uZWN0YWJsZVNpZGUuUklHSFQgXTogKHJlY3Q6IElSZWN0KTogSVBvaW50ID0+IHtcbiAgICBjb25zdCByZXN1bHQgPSBuZXcgUG9pbnQoKTtcbiAgICByZXN1bHQueCA9IHJlY3QueCArIHJlY3Qud2lkdGg7XG4gICAgcmVzdWx0LnkgPSByZWN0LnkgKyByZWN0LmhlaWdodCAvIDI7XG4gICAgcmV0dXJuIHJlc3VsdDtcbiAgfSxcbn07XG5cblxuXG5cbiJdfQ==
|
package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GetIntersections, Line } from '@foblex/2d';
|
|
2
|
+
export function floatingBehavior(payload) {
|
|
3
|
+
return _getIntersectionsLine(_fromRoundedRectIntersections(payload), _toRoundedRectIntersections(payload), payload);
|
|
4
|
+
}
|
|
5
|
+
function _fromRoundedRectIntersections(payload) {
|
|
6
|
+
return GetIntersections.getRoundedRectIntersections(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter, payload.outputRect)[0];
|
|
7
|
+
}
|
|
8
|
+
function _toRoundedRectIntersections(payload) {
|
|
9
|
+
return GetIntersections.getRoundedRectIntersections(payload.inputRect.gravityCenter, payload.outputRect.gravityCenter, payload.inputRect)[0];
|
|
10
|
+
}
|
|
11
|
+
function _getIntersectionsLine(from, to, payload) {
|
|
12
|
+
return new Line(from ? from : payload.outputRect.gravityCenter, to ? to : payload.inputRect.gravityCenter);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvYXRpbmctYmVoYXZpb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNvbm5lY3Rpb24vY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhh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ZUJ5QmVoYXZpb3JSZXF1ZXN0KSB7XG4gIHJldHVybiBHZXRJbnRlcnNlY3Rpb25zLmdldFJvdW5kZWRSZWN0SW50ZXJzZWN0aW9ucyhcbiAgICBwYXlsb2FkLmlucHV0UmVjdC5ncmF2aXR5Q2VudGVyLCBwYXlsb2FkLm91dHB1dFJlY3QuZ3Jhdml0eUNlbnRlciwgcGF5bG9hZC5pbnB1dFJlY3RcbiAgKVsgMCBdO1xufVxuXG5mdW5jdGlvbiBfZ2V0SW50ZXJzZWN0aW9uc0xpbmUoZnJvbTogSVBvaW50LCB0bzogSVBvaW50LCBwYXlsb2FkOiBDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0KTogSUxpbmUge1xuICByZXR1cm4gbmV3IExpbmUoXG4gICAgZnJvbSA/IGZyb20gOiBwYXlsb2FkLm91dHB1dFJlY3QuZ3Jhdml0eUNlbnRlcixcbiAgICB0byA/IHRvIDogcGF5bG9hZC5pbnB1dFJlY3QuZ3Jhdml0eUNlbnRlclxuICApO1xufVxuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './calculate-connection-line-by-behavior.execution';
|
|
2
|
+
export * from './calculate-connection-line-by-behavior.request';
|
|
3
|
+
export * from './fixed-center-behavior';
|
|
4
|
+
export * from './fixed-outbound-behavior';
|
|
5
|
+
export * from './floating-behavior';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNvbm5lY3Rpb24vY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1EQUFtRCxDQUFDO0FBRWxFLGNBQWMsaURBQWlELENBQUM7QUFFaEUsY0FBYyx5QkFBeUIsQ0FBQztBQUV4QyxjQUFjLDJCQUEyQixDQUFDO0FBRTFDLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NhbGN1bGF0ZS1jb25uZWN0aW9uLWxpbmUtYnktYmVoYXZpb3IuZXhlY3V0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi9jYWxjdWxhdGUtY29ubmVjdGlvbi1saW5lLWJ5LWJlaGF2aW9yLnJlcXVlc3QnO1xuXG5leHBvcnQgKiBmcm9tICcuL2ZpeGVkLWNlbnRlci1iZWhhdmlvcic7XG5cbmV4cG9ydCAqIGZyb20gJy4vZml4ZWQtb3V0Ym91bmQtYmVoYXZpb3InO1xuXG5leHBvcnQgKiBmcm9tICcuL2Zsb2F0aW5nLWJlaGF2aW9yJztcbiJdfQ==
|
package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { Injectable } from '@angular/core';
|
|
3
3
|
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
4
|
import { GetConnectorWithRectRequest } from './get-connector-with-rect-request';
|
|
5
|
-
import {
|
|
5
|
+
import { GetNormalizedElementRectRequest } from '../../get-normalized-element-rect';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@foblex/mediator";
|
|
8
8
|
let GetConnectorWithRectExecution = class GetConnectorWithRectExecution {
|
|
@@ -13,7 +13,7 @@ let GetConnectorWithRectExecution = class GetConnectorWithRectExecution {
|
|
|
13
13
|
handle(request) {
|
|
14
14
|
return {
|
|
15
15
|
fConnector: request.connector,
|
|
16
|
-
fRect: this.fMediator.send(new
|
|
16
|
+
fRect: this.fMediator.send(new GetNormalizedElementRectRequest(request.connector.hostElement))
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectorWithRectExecution, deps: [{ token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -26,4 +26,4 @@ export { GetConnectorWithRectExecution };
|
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectorWithRectExecution, decorators: [{
|
|
27
27
|
type: Injectable
|
|
28
28
|
}], ctorParameters: () => [{ type: i1.FMediator }] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWNvbm5lY3Rvci13aXRoLXJlY3QuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jb25uZWN0aW9uL2dldC1jb25uZWN0b3Itd2l0aC1yZWN0L2dldC1jb25uZWN0b3Itd2l0aC1yZWN0LmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsa0JBQWtCLEVBQXlCLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFHaEYsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7OztBQUk3RSxJQUFNLDZCQUE2QixHQUFuQyxNQUFNLDZCQUE2QjtJQUc1QjtJQURaLFlBQ1ksU0FBb0I7UUFBcEIsY0FBUyxHQUFULFNBQVMsQ0FBVztJQUVoQyxDQUFDO0lBRU0sTUFBTSxDQU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