@foblex/flow 1.0.6 → 1.0.7
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/{lib/directives → directives}/f-containers/f-items-container/f-items-container.directive.d.ts +2 -2
- package/esm2022/common-behaviours/change-position.mjs +15 -0
- package/esm2022/common-behaviours/change-zoom/change-zoom.mjs +25 -0
- package/esm2022/common-behaviours/change-zoom/i-can-change-zoom.mjs +2 -0
- package/esm2022/common-behaviours/change-zoom/index.mjs +3 -0
- package/esm2022/common-behaviours/constructor.mjs +2 -0
- package/esm2022/common-behaviours/fit-to-parent/fit-to-parent.mjs +27 -0
- package/esm2022/common-behaviours/fit-to-parent/i-can-fit-to-parent.mjs +2 -0
- package/esm2022/common-behaviours/fit-to-parent/index.mjs +3 -0
- package/esm2022/common-behaviours/index.mjs +6 -0
- package/esm2022/common-behaviours/one-to-one-centering/i-can-one-to-one-centering.mjs +2 -0
- package/esm2022/common-behaviours/one-to-one-centering/index.mjs +3 -0
- package/esm2022/common-behaviours/one-to-one-centering/one-to-one-centering.mjs +24 -0
- package/esm2022/components/f-connection/f-connection-base.mjs +33 -0
- package/esm2022/components/f-connection/f-connection-identifiers.mjs +21 -0
- package/esm2022/components/f-connection/f-connection-text/f-connection-text-path.directive.mjs +38 -0
- package/esm2022/components/f-connection/f-connection-text/f-connection-text.component.mjs +55 -0
- package/esm2022/components/f-connection/f-connection-text/index.mjs +3 -0
- package/esm2022/components/f-connection/f-connection.component.mjs +91 -0
- package/esm2022/components/f-connection/f-connection.module.mjs +47 -0
- package/esm2022/components/f-connection/f-drag-handle/f-connection-drag-handle.component.mjs +30 -0
- package/esm2022/components/f-connection/f-drag-handle/index.mjs +2 -0
- package/esm2022/components/f-connection/f-gradient/f-connection-gradient.component.mjs +59 -0
- package/esm2022/components/f-connection/f-gradient/index.mjs +2 -0
- package/esm2022/components/f-connection/f-path/f-connection-path.component.mjs +58 -0
- package/esm2022/components/f-connection/f-path/index.mjs +2 -0
- package/esm2022/components/f-connection/f-selection/f-connection-selection.component.mjs +34 -0
- package/esm2022/components/f-connection/f-selection/index.mjs +2 -0
- package/esm2022/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +61 -0
- package/esm2022/components/f-connection/f-temp-connection/index.mjs +3 -0
- package/esm2022/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +7 -0
- package/esm2022/components/f-connection/get-connection-intersect.mjs +10 -0
- package/esm2022/components/f-connection/i-input-output-model.mjs +2 -0
- package/esm2022/components/f-connection/index.mjs +13 -0
- package/esm2022/components/f-connection/public-api.mjs +4 -0
- package/esm2022/components/f-connectors/f-connector-base.mjs +14 -0
- package/esm2022/components/f-connectors/f-node-input/f-node-input-base.mjs +19 -0
- package/esm2022/components/f-connectors/f-node-input/f-node-input.directive.mjs +58 -0
- package/esm2022/components/f-connectors/f-node-input/index.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-input/is-node-input.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-input/public-api.mjs +2 -0
- package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet-base.mjs +22 -0
- package/esm2022/components/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +56 -0
- package/esm2022/components/f-connectors/f-node-outlet/index.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-outlet/is-node-outlet.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-outlet/public-api.mjs +2 -0
- package/esm2022/components/f-connectors/f-node-output/f-node-output-base.mjs +19 -0
- package/esm2022/components/f-connectors/f-node-output/f-node-output.directive.mjs +54 -0
- package/esm2022/components/f-connectors/f-node-output/index.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-output/is-node-output.mjs +4 -0
- package/esm2022/components/f-connectors/f-node-output/public-api.mjs +2 -0
- package/esm2022/components/f-connectors/f-out-connector-base.mjs +4 -0
- package/esm2022/components/f-connectors/get-element-rect-in-canvas.mjs +8 -0
- package/esm2022/components/f-connectors/index.mjs +7 -0
- package/esm2022/components/f-connectors/public-api.mjs +4 -0
- package/esm2022/components/f-flow/f-flow-base.mjs +49 -0
- package/esm2022/components/f-flow/f-flow.component.mjs +67 -0
- package/esm2022/components/f-flow/index.mjs +3 -0
- package/esm2022/components/f-flow/public-api.mjs +2 -0
- package/esm2022/components/f-node/f-drag-handle/f-drag-handle.directive.mjs +54 -0
- package/esm2022/components/f-node/f-drag-handle/index.mjs +3 -0
- package/esm2022/components/f-node/f-drag-handle/is-drag-handle.mjs +20 -0
- package/esm2022/components/f-node/f-drag-handle/public-api.mjs +2 -0
- package/esm2022/components/f-node/f-foreign-object/f-foreign-object-base.mjs +40 -0
- package/esm2022/components/f-node/f-foreign-object/f-foreign-object.component.mjs +49 -0
- package/esm2022/components/f-node/f-foreign-object/index.mjs +3 -0
- package/esm2022/components/f-node/f-foreign-object/public-api.mjs +2 -0
- package/esm2022/components/f-node/f-node-base.mjs +33 -0
- package/esm2022/components/f-node/f-node.component.mjs +62 -0
- package/esm2022/components/f-node/index.mjs +6 -0
- package/esm2022/components/f-node/is-node.mjs +4 -0
- package/esm2022/components/f-node/public-api.mjs +4 -0
- package/esm2022/components/index.mjs +6 -0
- package/esm2022/components/public-api.mjs +5 -0
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +58 -0
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.mjs +6 -0
- package/esm2022/directives/f-connect-if-intersect/connect-if-intersect/index.mjs +3 -0
- package/esm2022/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +41 -0
- package/esm2022/directives/f-connect-if-intersect/index.mjs +3 -0
- package/esm2022/directives/f-connect-if-intersect/public-api.mjs +2 -0
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs +32 -0
- package/esm2022/directives/f-containers/f-connections-container/f-connections-container.component.mjs +30 -0
- package/esm2022/directives/f-containers/f-connections-container/index.mjs +3 -0
- package/esm2022/directives/f-containers/f-connections-container/public-api.mjs +2 -0
- package/esm2022/directives/f-containers/f-items-container/canvas-change.event.mjs +7 -0
- package/esm2022/directives/f-containers/f-items-container/f-items-container-base.mjs +45 -0
- package/esm2022/directives/f-containers/f-items-container/f-items-container.directive.mjs +48 -0
- package/esm2022/directives/f-containers/f-items-container/index.mjs +4 -0
- package/esm2022/directives/f-containers/f-items-container/public-api.mjs +3 -0
- package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container-base.mjs +39 -0
- package/esm2022/directives/f-containers/f-nodes-container/f-nodes-container.component.mjs +25 -0
- package/esm2022/directives/f-containers/f-nodes-container/index.mjs +3 -0
- package/esm2022/directives/f-containers/f-nodes-container/public-api.mjs +2 -0
- package/esm2022/directives/f-containers/index.mjs +4 -0
- package/esm2022/directives/f-containers/public-api.mjs +4 -0
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.mjs +24 -0
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.mjs +6 -0
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.mjs +20 -0
- package/esm2022/directives/f-draggable/canvas/canvas-on-pointer-move/index.mjs +2 -0
- package/esm2022/directives/f-draggable/canvas/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.mjs +78 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.mjs +31 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection.event.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +28 -0
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +20 -0
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.mjs +6 -0
- package/esm2022/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/create-connection/index.mjs +6 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +25 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +20 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.mjs +6 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/index.mjs +5 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +14 -0
- package/esm2022/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.mjs +6 -0
- package/esm2022/directives/f-draggable/connections/index.mjs +4 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/index.mjs +5 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +9 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +36 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.mjs +2 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +31 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.mjs +3 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.mjs +7 -0
- package/esm2022/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.mjs +26 -0
- package/esm2022/directives/f-draggable/default-drag-handler/default-drag.handler.mjs +11 -0
- package/esm2022/directives/f-draggable/default-drag-handler/index.mjs +2 -0
- package/esm2022/directives/f-draggable/e-draggable-type.mjs +12 -0
- package/esm2022/directives/f-draggable/external-item/create-node.event.mjs +7 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.mjs +28 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.mjs +6 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.mjs +30 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-move/index.mjs +2 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.mjs +26 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.mjs +7 -0
- package/esm2022/directives/f-draggable/external-item/external-item-on-pointer-up/index.mjs +3 -0
- package/esm2022/directives/f-draggable/external-item/index.mjs +5 -0
- package/esm2022/directives/f-draggable/f-draggable-base.mjs +103 -0
- package/esm2022/directives/f-draggable/f-draggable.directive.mjs +52 -0
- package/esm2022/directives/f-draggable/f-draggable.module.mjs +49 -0
- package/esm2022/directives/f-draggable/f-draggable.service.mjs +23 -0
- package/esm2022/directives/f-draggable/i-drag-handler.mjs +2 -0
- package/esm2022/directives/f-draggable/i-draggable-item.mjs +2 -0
- package/esm2022/directives/f-draggable/index.mjs +14 -0
- package/esm2022/directives/f-draggable/node/index.mjs +4 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.mjs +9 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.mjs +88 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +24 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +24 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +22 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/index.mjs +5 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.mjs +23 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/index.mjs +3 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.mjs +7 -0
- package/esm2022/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +28 -0
- package/esm2022/directives/f-draggable/public-api.mjs +2 -0
- package/esm2022/directives/f-draggable/selection/index.mjs +4 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/index.mjs +3 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.mjs +8 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +61 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/index.mjs +2 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +54 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/index.mjs +3 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.mjs +8 -0
- package/esm2022/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.mjs +22 -0
- package/esm2022/directives/f-external-item/f-external-item-base.mjs +11 -0
- package/esm2022/directives/f-external-item/f-external-item.directive.mjs +44 -0
- package/esm2022/directives/f-external-item/f-external-item.service.mjs +25 -0
- package/esm2022/directives/f-external-item/index.mjs +5 -0
- package/esm2022/directives/f-external-item/is-external-item.mjs +7 -0
- package/esm2022/directives/f-external-item/public-api.mjs +2 -0
- package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.mjs +40 -0
- package/esm2022/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.mjs +40 -0
- package/esm2022/directives/f-line-alignment/domain/i-line-alignment-result.mjs +2 -0
- package/esm2022/directives/f-line-alignment/domain/i-nearest-coordinate-result.mjs +2 -0
- package/esm2022/directives/f-line-alignment/domain/index.mjs +5 -0
- package/esm2022/directives/f-line-alignment/f-line-alignment.directive.mjs +105 -0
- package/esm2022/directives/f-line-alignment/index.mjs +3 -0
- package/esm2022/directives/f-line-alignment/public-api.mjs +2 -0
- package/esm2022/directives/f-selection/f-selection.directive.mjs +40 -0
- package/esm2022/directives/f-selection/index.mjs +2 -0
- package/esm2022/directives/f-selection/public-api.mjs +2 -0
- package/esm2022/directives/f-zoom/f-zoom-base.mjs +89 -0
- package/esm2022/directives/f-zoom/f-zoom.directive.mjs +57 -0
- package/esm2022/directives/f-zoom/index.mjs +3 -0
- package/esm2022/directives/f-zoom/public-api.mjs +2 -0
- package/esm2022/directives/index.mjs +8 -0
- package/esm2022/directives/public-api.mjs +8 -0
- package/esm2022/f-flow.module.mjs +79 -0
- package/esm2022/i-has-state-changes.mjs +2 -0
- package/esm2022/i-selectable.mjs +2 -0
- package/esm2022/internal/f-backgroud/f-background-base.mjs +25 -0
- package/esm2022/internal/f-backgroud/f-background.directive.mjs +24 -0
- package/esm2022/internal/f-backgroud/index.mjs +3 -0
- package/esm2022/internal/f-canvas/f-canvas-base.mjs +25 -0
- package/esm2022/internal/f-canvas/f-canvas.directive.mjs +19 -0
- package/esm2022/internal/f-canvas/index.mjs +3 -0
- package/esm2022/internal/index.mjs +3 -0
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/foblex-flow.mjs +6 -0
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +4 -2
- package/public-api.d.ts +4 -1
- package/esm2022/lib/common-behaviours/change-position.mjs +0 -15
- package/esm2022/lib/common-behaviours/change-zoom/change-zoom.mjs +0 -25
- package/esm2022/lib/common-behaviours/change-zoom/i-can-change-zoom.mjs +0 -2
- package/esm2022/lib/common-behaviours/change-zoom/index.mjs +0 -3
- package/esm2022/lib/common-behaviours/constructor.mjs +0 -2
- package/esm2022/lib/common-behaviours/fit-to-parent/fit-to-parent.mjs +0 -27
- package/esm2022/lib/common-behaviours/fit-to-parent/i-can-fit-to-parent.mjs +0 -2
- package/esm2022/lib/common-behaviours/fit-to-parent/index.mjs +0 -3
- package/esm2022/lib/common-behaviours/index.mjs +0 -6
- package/esm2022/lib/common-behaviours/one-to-one-centering/i-can-one-to-one-centering.mjs +0 -2
- package/esm2022/lib/common-behaviours/one-to-one-centering/index.mjs +0 -3
- package/esm2022/lib/common-behaviours/one-to-one-centering/one-to-one-centering.mjs +0 -24
- package/esm2022/lib/components/f-connection/f-connection-base.mjs +0 -33
- package/esm2022/lib/components/f-connection/f-connection-identifiers.mjs +0 -21
- package/esm2022/lib/components/f-connection/f-connection-text/f-connection-text-path.directive.mjs +0 -38
- package/esm2022/lib/components/f-connection/f-connection-text/f-connection-text.component.mjs +0 -55
- package/esm2022/lib/components/f-connection/f-connection-text/index.mjs +0 -3
- package/esm2022/lib/components/f-connection/f-connection.component.mjs +0 -91
- package/esm2022/lib/components/f-connection/f-connection.module.mjs +0 -47
- package/esm2022/lib/components/f-connection/f-drag-handle/f-connection-drag-handle.component.mjs +0 -30
- package/esm2022/lib/components/f-connection/f-drag-handle/index.mjs +0 -2
- package/esm2022/lib/components/f-connection/f-gradient/f-connection-gradient.component.mjs +0 -59
- package/esm2022/lib/components/f-connection/f-gradient/index.mjs +0 -2
- package/esm2022/lib/components/f-connection/f-path/f-connection-path.component.mjs +0 -58
- package/esm2022/lib/components/f-connection/f-path/index.mjs +0 -2
- package/esm2022/lib/components/f-connection/f-selection/f-connection-selection.component.mjs +0 -34
- package/esm2022/lib/components/f-connection/f-selection/index.mjs +0 -2
- package/esm2022/lib/components/f-connection/f-temp-connection/f-temp-connection.component.mjs +0 -61
- package/esm2022/lib/components/f-connection/f-temp-connection/index.mjs +0 -3
- package/esm2022/lib/components/f-connection/f-temp-connection/temp-connection-input-output-model.mjs +0 -7
- package/esm2022/lib/components/f-connection/get-connection-intersect.mjs +0 -10
- package/esm2022/lib/components/f-connection/i-input-output-model.mjs +0 -2
- package/esm2022/lib/components/f-connection/index.mjs +0 -13
- package/esm2022/lib/components/f-connection/public-api.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-connector-base.mjs +0 -14
- package/esm2022/lib/components/f-connectors/f-node-input/f-node-input-base.mjs +0 -19
- package/esm2022/lib/components/f-connectors/f-node-input/f-node-input.directive.mjs +0 -58
- package/esm2022/lib/components/f-connectors/f-node-input/index.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-input/is-node-input.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-input/public-api.mjs +0 -2
- package/esm2022/lib/components/f-connectors/f-node-outlet/f-node-outlet-base.mjs +0 -22
- package/esm2022/lib/components/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +0 -56
- package/esm2022/lib/components/f-connectors/f-node-outlet/index.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-outlet/is-node-outlet.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-outlet/public-api.mjs +0 -2
- package/esm2022/lib/components/f-connectors/f-node-output/f-node-output-base.mjs +0 -19
- package/esm2022/lib/components/f-connectors/f-node-output/f-node-output.directive.mjs +0 -54
- package/esm2022/lib/components/f-connectors/f-node-output/index.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-output/is-node-output.mjs +0 -4
- package/esm2022/lib/components/f-connectors/f-node-output/public-api.mjs +0 -2
- package/esm2022/lib/components/f-connectors/f-out-connector-base.mjs +0 -4
- package/esm2022/lib/components/f-connectors/get-element-rect-in-canvas.mjs +0 -8
- package/esm2022/lib/components/f-connectors/index.mjs +0 -7
- package/esm2022/lib/components/f-connectors/public-api.mjs +0 -4
- package/esm2022/lib/components/f-flow/f-flow-base.mjs +0 -49
- package/esm2022/lib/components/f-flow/f-flow.component.mjs +0 -67
- package/esm2022/lib/components/f-flow/index.mjs +0 -3
- package/esm2022/lib/components/f-flow/public-api.mjs +0 -2
- package/esm2022/lib/components/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -54
- package/esm2022/lib/components/f-node/f-drag-handle/index.mjs +0 -3
- package/esm2022/lib/components/f-node/f-drag-handle/is-drag-handle.mjs +0 -20
- package/esm2022/lib/components/f-node/f-drag-handle/public-api.mjs +0 -2
- package/esm2022/lib/components/f-node/f-foreign-object/f-foreign-object-base.mjs +0 -40
- package/esm2022/lib/components/f-node/f-foreign-object/f-foreign-object.component.mjs +0 -49
- package/esm2022/lib/components/f-node/f-foreign-object/index.mjs +0 -3
- package/esm2022/lib/components/f-node/f-foreign-object/public-api.mjs +0 -2
- package/esm2022/lib/components/f-node/f-node-base.mjs +0 -33
- package/esm2022/lib/components/f-node/f-node.component.mjs +0 -62
- package/esm2022/lib/components/f-node/index.mjs +0 -6
- package/esm2022/lib/components/f-node/is-node.mjs +0 -4
- package/esm2022/lib/components/f-node/public-api.mjs +0 -4
- package/esm2022/lib/components/index.mjs +0 -6
- package/esm2022/lib/components/public-api.mjs +0 -5
- package/esm2022/lib/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.mjs +0 -58
- package/esm2022/lib/directives/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.mjs +0 -6
- package/esm2022/lib/directives/f-connect-if-intersect/connect-if-intersect/index.mjs +0 -3
- package/esm2022/lib/directives/f-connect-if-intersect/f-connect-if-intersect.directive.mjs +0 -41
- package/esm2022/lib/directives/f-connect-if-intersect/index.mjs +0 -3
- package/esm2022/lib/directives/f-connect-if-intersect/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-containers/f-connections-container/f-connections-container-base.mjs +0 -32
- package/esm2022/lib/directives/f-containers/f-connections-container/f-connections-container.component.mjs +0 -30
- package/esm2022/lib/directives/f-containers/f-connections-container/index.mjs +0 -3
- package/esm2022/lib/directives/f-containers/f-connections-container/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-containers/f-items-container/canvas-change.event.mjs +0 -7
- package/esm2022/lib/directives/f-containers/f-items-container/f-items-container-base.mjs +0 -45
- package/esm2022/lib/directives/f-containers/f-items-container/f-items-container.directive.mjs +0 -42
- package/esm2022/lib/directives/f-containers/f-items-container/index.mjs +0 -4
- package/esm2022/lib/directives/f-containers/f-items-container/public-api.mjs +0 -3
- package/esm2022/lib/directives/f-containers/f-nodes-container/f-nodes-container-base.mjs +0 -39
- package/esm2022/lib/directives/f-containers/f-nodes-container/f-nodes-container.component.mjs +0 -25
- package/esm2022/lib/directives/f-containers/f-nodes-container/index.mjs +0 -3
- package/esm2022/lib/directives/f-containers/f-nodes-container/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-containers/index.mjs +0 -4
- package/esm2022/lib/directives/f-containers/public-api.mjs +0 -4
- package/esm2022/lib/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.mjs +0 -24
- package/esm2022/lib/directives/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/canvas/canvas-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.mjs +0 -20
- package/esm2022/lib/directives/f-draggable/canvas/canvas-on-pointer-move/index.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/canvas/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.mjs +0 -78
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.mjs +0 -31
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection.event.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/create-connection/create-connection.on-pointer-move.mjs +0 -28
- package/esm2022/lib/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +0 -20
- package/esm2022/lib/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/create-connection/index.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +0 -25
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +0 -20
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/index.mjs +0 -5
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.mjs +0 -14
- package/esm2022/lib/directives/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/connections/index.mjs +0 -4
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/index.mjs +0 -5
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-connection.event.mjs +0 -9
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.mjs +0 -36
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.mjs +0 -31
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.mjs +0 -26
- package/esm2022/lib/directives/f-draggable/default-drag-handler/default-drag.handler.mjs +0 -11
- package/esm2022/lib/directives/f-draggable/default-drag-handler/index.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/e-draggable-type.mjs +0 -12
- package/esm2022/lib/directives/f-draggable/external-item/create-node.event.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.mjs +0 -28
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.mjs +0 -6
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.mjs +0 -30
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-move/index.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.mjs +0 -26
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/external-item/external-item-on-pointer-up/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/external-item/index.mjs +0 -5
- package/esm2022/lib/directives/f-draggable/f-draggable-base.mjs +0 -103
- package/esm2022/lib/directives/f-draggable/f-draggable.directive.mjs +0 -52
- package/esm2022/lib/directives/f-draggable/f-draggable.module.mjs +0 -49
- package/esm2022/lib/directives/f-draggable/f-draggable.service.mjs +0 -23
- package/esm2022/lib/directives/f-draggable/i-drag-handler.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/i-draggable-item.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/index.mjs +0 -14
- package/esm2022/lib/directives/f-draggable/node/index.mjs +0 -4
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.mjs +0 -9
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-down/node.on-pointer-down.mjs +0 -88
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.mjs +0 -24
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.mjs +0 -24
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.mjs +0 -22
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-move/index.mjs +0 -5
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-move/node.on-pointer-move.mjs +0 -23
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-up/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.mjs +0 -7
- package/esm2022/lib/directives/f-draggable/node/node-on-pointer-up/node.on-pointer-up.mjs +0 -28
- package/esm2022/lib/directives/f-draggable/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/selection/index.mjs +0 -4
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-down/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.mjs +0 -8
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.mjs +0 -61
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-move/index.mjs +0 -2
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.mjs +0 -54
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-up/index.mjs +0 -3
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.mjs +0 -8
- package/esm2022/lib/directives/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.mjs +0 -22
- package/esm2022/lib/directives/f-external-item/f-external-item-base.mjs +0 -11
- package/esm2022/lib/directives/f-external-item/f-external-item.directive.mjs +0 -44
- package/esm2022/lib/directives/f-external-item/f-external-item.service.mjs +0 -25
- package/esm2022/lib/directives/f-external-item/index.mjs +0 -5
- package/esm2022/lib/directives/f-external-item/is-external-item.mjs +0 -7
- package/esm2022/lib/directives/f-external-item/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-line-alignment/domain/find-nearest-coordinate-by-x.mjs +0 -40
- package/esm2022/lib/directives/f-line-alignment/domain/find-nearest-coordinate-by-y.mjs +0 -40
- package/esm2022/lib/directives/f-line-alignment/domain/i-line-alignment-result.mjs +0 -2
- package/esm2022/lib/directives/f-line-alignment/domain/i-nearest-coordinate-result.mjs +0 -2
- package/esm2022/lib/directives/f-line-alignment/domain/index.mjs +0 -5
- package/esm2022/lib/directives/f-line-alignment/f-line-alignment.directive.mjs +0 -105
- package/esm2022/lib/directives/f-line-alignment/index.mjs +0 -3
- package/esm2022/lib/directives/f-line-alignment/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-selection/f-selection.directive.mjs +0 -40
- package/esm2022/lib/directives/f-selection/index.mjs +0 -2
- package/esm2022/lib/directives/f-selection/public-api.mjs +0 -2
- package/esm2022/lib/directives/f-zoom/f-zoom-base.mjs +0 -89
- package/esm2022/lib/directives/f-zoom/f-zoom.directive.mjs +0 -57
- package/esm2022/lib/directives/f-zoom/index.mjs +0 -3
- package/esm2022/lib/directives/f-zoom/public-api.mjs +0 -2
- package/esm2022/lib/directives/index.mjs +0 -8
- package/esm2022/lib/directives/public-api.mjs +0 -8
- package/esm2022/lib/f-flow.module.mjs +0 -79
- package/esm2022/lib/i-has-state-changes.mjs +0 -2
- package/esm2022/lib/i-selectable.mjs +0 -2
- package/esm2022/lib/internal/f-backgroud/f-background-base.mjs +0 -25
- package/esm2022/lib/internal/f-backgroud/f-background.directive.mjs +0 -24
- package/esm2022/lib/internal/f-backgroud/index.mjs +0 -3
- package/esm2022/lib/internal/f-canvas/f-canvas-base.mjs +0 -25
- package/esm2022/lib/internal/f-canvas/f-canvas.directive.mjs +0 -19
- package/esm2022/lib/internal/f-canvas/index.mjs +0 -3
- package/esm2022/lib/internal/index.mjs +0 -3
- package/esm2022/lib/public-api.mjs +0 -5
- package/lib/public-api.d.ts +0 -4
- /package/{lib/common-behaviours → common-behaviours}/change-position.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/change-zoom/change-zoom.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/change-zoom/i-can-change-zoom.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/change-zoom/index.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/constructor.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/fit-to-parent/fit-to-parent.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/fit-to-parent/i-can-fit-to-parent.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/fit-to-parent/index.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/index.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/one-to-one-centering/i-can-one-to-one-centering.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/one-to-one-centering/index.d.ts +0 -0
- /package/{lib/common-behaviours → common-behaviours}/one-to-one-centering/one-to-one-centering.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection-base.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection-identifiers.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection-text/f-connection-text-path.directive.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection-text/f-connection-text.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection-text/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-connection.module.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-drag-handle/f-connection-drag-handle.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-drag-handle/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-gradient/f-connection-gradient.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-gradient/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-path/f-connection-path.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-path/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-selection/f-connection-selection.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-selection/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-temp-connection/f-temp-connection.component.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-temp-connection/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/f-temp-connection/temp-connection-input-output-model.d.ts +0 -0
- /package/{lib/components → components}/f-connection/get-connection-intersect.d.ts +0 -0
- /package/{lib/components → components}/f-connection/i-input-output-model.d.ts +0 -0
- /package/{lib/components → components}/f-connection/index.d.ts +0 -0
- /package/{lib/components → components}/f-connection/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-connector-base.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-input/f-node-input-base.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-input/f-node-input.directive.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-input/index.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-input/is-node-input.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-input/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-outlet/index.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-outlet/is-node-outlet.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-outlet/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-output/f-node-output-base.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-output/f-node-output.directive.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-output/index.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-output/is-node-output.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-node-output/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/f-out-connector-base.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/get-element-rect-in-canvas.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/index.d.ts +0 -0
- /package/{lib/components → components}/f-connectors/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-flow/f-flow-base.d.ts +0 -0
- /package/{lib/components → components}/f-flow/f-flow.component.d.ts +0 -0
- /package/{lib/components → components}/f-flow/index.d.ts +0 -0
- /package/{lib/components → components}/f-flow/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-drag-handle/f-drag-handle.directive.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-drag-handle/index.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-drag-handle/is-drag-handle.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-drag-handle/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-foreign-object/f-foreign-object-base.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-foreign-object/f-foreign-object.component.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-foreign-object/index.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-foreign-object/public-api.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-node-base.d.ts +0 -0
- /package/{lib/components → components}/f-node/f-node.component.d.ts +0 -0
- /package/{lib/components → components}/f-node/index.d.ts +0 -0
- /package/{lib/components → components}/f-node/is-node.d.ts +0 -0
- /package/{lib/components → components}/f-node/public-api.d.ts +0 -0
- /package/{lib/components → components}/index.d.ts +0 -0
- /package/{lib/components → components}/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/connect-if-intersect/connect-if-intersect.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/connect-if-intersect/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/f-connect-if-intersect.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-connect-if-intersect/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-connections-container/f-connections-container-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-connections-container/f-connections-container.component.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-connections-container/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-connections-container/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-items-container/canvas-change.event.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-items-container/f-items-container-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-items-container/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-items-container/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-nodes-container/f-nodes-container-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-nodes-container/f-nodes-container.component.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-nodes-container/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/f-nodes-container/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-containers/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/canvas-on-pointer-down/canvas-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/canvas-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/canvas-on-pointer-move/canvas.on-pointer-move.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/canvas-on-pointer-move/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/canvas/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-down/create-connection.on-pointer-down.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection-on-pointer-up.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-up/create-connection.on-pointer-up.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection-on-pointer-up/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection.event.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/create-connection.on-pointer-move.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/create-connection/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/find-inputs-under-pointer/inputs-under-pointer/inputs-under-pointer.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-connection.event.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-down/reassign-connection.on-pointer-down.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-move/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-move/reassign-connection.on-pointer-move.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-up/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection-on-pointer-up.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/connections/reassign-connection/reassign-on-pointer-up/reassign-connection.on-pointer-up.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/default-drag-handler/default-drag.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/default-drag-handler/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/e-draggable-type.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/create-node.event.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-down/external-item-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-move/external-item-on-pointer-move.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-move/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-up/external-item-on-pointer-up.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/external-item-on-pointer-up/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/external-item/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/f-draggable-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/f-draggable.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/f-draggable.module.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/f-draggable.service.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/i-drag-handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/i-draggable-item.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-down/node-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-down/node.on-pointer-down.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-move/f-connection-source.drag-handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-move/f-connection-target.drag-handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-move/f-connection.drag-handler.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-move/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-move/node.on-pointer-move.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-up/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-up/node-on-pointer-up.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/node/node-on-pointer-up/node.on-pointer-up.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-down/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-down/selection-on-pointer-down.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-down/selection.on-pointer-down.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-move/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-move/selection.on-pointer-move.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-up/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-up/selection-on-pointer-up.request.d.ts +0 -0
- /package/{lib/directives → directives}/f-draggable/selection/selection-on-pointer-up/selection.on-pointer-up.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/f-external-item-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/f-external-item.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/f-external-item.service.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/is-external-item.d.ts +0 -0
- /package/{lib/directives → directives}/f-external-item/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/domain/find-nearest-coordinate-by-x.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/domain/find-nearest-coordinate-by-y.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/domain/i-line-alignment-result.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/domain/i-nearest-coordinate-result.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/domain/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/f-line-alignment.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-line-alignment/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-selection/f-selection.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-selection/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-selection/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/f-zoom/f-zoom-base.d.ts +0 -0
- /package/{lib/directives → directives}/f-zoom/f-zoom.directive.d.ts +0 -0
- /package/{lib/directives → directives}/f-zoom/index.d.ts +0 -0
- /package/{lib/directives → directives}/f-zoom/public-api.d.ts +0 -0
- /package/{lib/directives → directives}/index.d.ts +0 -0
- /package/{lib/directives → directives}/public-api.d.ts +0 -0
- /package/{lib/f-flow.module.d.ts → f-flow.module.d.ts} +0 -0
- /package/{lib/i-has-state-changes.d.ts → i-has-state-changes.d.ts} +0 -0
- /package/{lib/i-selectable.d.ts → i-selectable.d.ts} +0 -0
- /package/{lib/internal → internal}/f-backgroud/f-background-base.d.ts +0 -0
- /package/{lib/internal → internal}/f-backgroud/f-background.directive.d.ts +0 -0
- /package/{lib/internal → internal}/f-backgroud/index.d.ts +0 -0
- /package/{lib/internal → internal}/f-canvas/f-canvas-base.d.ts +0 -0
- /package/{lib/internal → internal}/f-canvas/f-canvas.directive.d.ts +0 -0
- /package/{lib/internal → internal}/f-canvas/index.d.ts +0 -0
- /package/{lib/internal → internal}/index.d.ts +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, Input, Output, } from "@angular/core";
|
|
2
|
+
import { PointExtensions } from '@foblex/core';
|
|
3
|
+
import { FNodeBase, F_NODE_COMPONENT } from './f-node-base';
|
|
4
|
+
import { F_DRAG_HANDLE } from './f-drag-handle';
|
|
5
|
+
import { F_FOREIGN_OBJECT_COMPONENT } from './f-foreign-object';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
let uniqueId = 0;
|
|
8
|
+
export class FNodeComponent extends FNodeBase {
|
|
9
|
+
set position(value) {
|
|
10
|
+
this._position = PointExtensions.castToPoint(value);
|
|
11
|
+
this.refresh();
|
|
12
|
+
}
|
|
13
|
+
get position() {
|
|
14
|
+
return this._position;
|
|
15
|
+
}
|
|
16
|
+
get hostElement() {
|
|
17
|
+
return this.elementReference.nativeElement;
|
|
18
|
+
}
|
|
19
|
+
constructor(elementReference) {
|
|
20
|
+
super();
|
|
21
|
+
this.elementReference = elementReference;
|
|
22
|
+
this.id = `f-node-${uniqueId++}`;
|
|
23
|
+
this.positionChange = new EventEmitter();
|
|
24
|
+
}
|
|
25
|
+
ngOnInit() {
|
|
26
|
+
super.redraw();
|
|
27
|
+
}
|
|
28
|
+
refresh() {
|
|
29
|
+
this.stateChanges.next();
|
|
30
|
+
}
|
|
31
|
+
ngOnDestroy() {
|
|
32
|
+
this.stateChanges.complete();
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: FNodeComponent, selector: "g[fNode]", inputs: { id: "id", position: ["fNodePosition", "position"] }, outputs: { positionChange: "fNodePositionChange" }, host: { properties: { "attr.id": "id" }, classAttribute: "f-node f-component" }, providers: [
|
|
36
|
+
{ provide: F_NODE_COMPONENT, useExisting: FNodeComponent }
|
|
37
|
+
], queries: [{ propertyName: "fForeignObject", first: true, predicate: F_FOREIGN_OBJECT_COMPONENT, descendants: true, static: true }, { propertyName: "handles", predicate: F_DRAG_HANDLE, descendants: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content></ng-content>\n</ng-container>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodeComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ selector: "g[fNode]", exportAs: "fComponent", changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
42
|
+
'[attr.id]': 'id',
|
|
43
|
+
class: "f-node f-component"
|
|
44
|
+
}, providers: [
|
|
45
|
+
{ provide: F_NODE_COMPONENT, useExisting: FNodeComponent }
|
|
46
|
+
], template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content></ng-content>\n</ng-container>\n" }]
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { id: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], handles: [{
|
|
50
|
+
type: ContentChildren,
|
|
51
|
+
args: [F_DRAG_HANDLE, { descendants: true }]
|
|
52
|
+
}], fForeignObject: [{
|
|
53
|
+
type: ContentChild,
|
|
54
|
+
args: [F_FOREIGN_OBJECT_COMPONENT, { static: true }]
|
|
55
|
+
}], position: [{
|
|
56
|
+
type: Input,
|
|
57
|
+
args: ['fNodePosition']
|
|
58
|
+
}], positionChange: [{
|
|
59
|
+
type: Output,
|
|
60
|
+
args: ['fNodePositionChange']
|
|
61
|
+
}] } });
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvY29tcG9uZW50cy9mLW5vZGUvZi1ub2RlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvY29tcG9uZW50cy9mLW5vZGUvZi1ub2RlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLGVBQWUsRUFBYyxZQUFZLEVBQzNGLEtBQUssRUFBcUIsTUFBTSxHQUNqQyxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQTJCLGVBQWUsRUFBYyxNQUFNLGNBQWMsQ0FBQztBQUNwRixPQUFPLEVBQ0wsU0FBUyxFQUFFLGdCQUFnQixFQUM1QixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsYUFBYSxFQUF3QixNQUFNLGlCQUFpQixDQUFDO0FBQ3RFLE9BQU8sRUFBRSwwQkFBMEIsRUFBc0IsTUFBTSxvQkFBb0IsQ0FBQzs7QUFFcEYsSUFBSSxRQUFRLEdBQVcsQ0FBQyxDQUFDO0FBZXpCLE1BQU0sT0FBTyxjQUFlLFNBQVEsU0FBUztJQVczQyxJQUNvQixRQUFRLENBQUMsS0FBaUI7UUFDNU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ly93d3cudzMub3JnLzIwMDAvc3ZnXCI+XG4gIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './f-drag-handle';
|
|
2
|
+
export * from './f-foreign-object';
|
|
3
|
+
export * from './f-node.component';
|
|
4
|
+
export * from './f-node-base';
|
|
5
|
+
export * from './is-node';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2NvbXBvbmVudHMvZi1ub2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsV0FBVyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWRyYWctaGFuZGxlJztcbmV4cG9ydCAqIGZyb20gJy4vZi1mb3JlaWduLW9iamVjdCc7XG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9mLW5vZGUtYmFzZSc7XG5leHBvcnQgKiBmcm9tICcuL2lzLW5vZGUnO1xuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function isNode(element) {
|
|
2
|
+
return !!element.closest('[fNode]');
|
|
3
|
+
}
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvY29tcG9uZW50cy9mLW5vZGUvaXMtbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsTUFBTSxDQUFDLE9BQWlDO0lBQ3RELE9BQU8sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDdEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc05vZGUoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogYm9vbGVhbiB7XG4gIHJldHVybiAhIWVsZW1lbnQuY2xvc2VzdCgnW2ZOb2RlXScpO1xufVxuXG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-drag-handle/public-api';
|
|
2
|
+
export * from './f-foreign-object/public-api';
|
|
3
|
+
export * from './f-node.component';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvY29tcG9uZW50cy9mLW5vZGUvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDO0FBRTNDLGNBQWMsK0JBQStCLENBQUM7QUFFOUMsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1kcmFnLWhhbmRsZS9wdWJsaWMtYXBpJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWZvcmVpZ24tb2JqZWN0L3B1YmxpYy1hcGknO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './f-connection';
|
|
2
|
+
export * from './f-connectors';
|
|
3
|
+
export * from './f-flow';
|
|
4
|
+
export * from './f-node';
|
|
5
|
+
export * from '../directives/f-selection';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2YtY29ubmVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2YtY29ubmVjdG9ycyc7XG5leHBvcnQgKiBmcm9tICcuL2YtZmxvdyc7XG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZSc7XG5leHBvcnQgKiBmcm9tICcuLi9kaXJlY3RpdmVzL2Ytc2VsZWN0aW9uJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './f-connection/public-api';
|
|
2
|
+
export * from './f-connectors/public-api';
|
|
3
|
+
export * from './f-flow/public-api';
|
|
4
|
+
export * from './f-node/public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvY29tcG9uZW50cy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2YtY29ubmVjdGlvbi9wdWJsaWMtYXBpJztcbmV4cG9ydCAqIGZyb20gJy4vZi1jb25uZWN0b3JzL3B1YmxpYy1hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9mLWZsb3cvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZS9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { RectExtensions } from '@foblex/core';
|
|
2
|
+
import { getElementRectInCanvas } from '../../../components';
|
|
3
|
+
import { findIncomingConnections, findOutgoingConnections } from '../../f-containers';
|
|
4
|
+
import { EDraggableType } from '../../f-draggable';
|
|
5
|
+
export class ConnectIfIntersectHandler {
|
|
6
|
+
constructor(connections, fFlow, fItemsContainer) {
|
|
7
|
+
this.connections = connections;
|
|
8
|
+
this.fFlow = fFlow;
|
|
9
|
+
this.fItemsContainer = fItemsContainer;
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
const isValid = this.isValidRequest(request);
|
|
13
|
+
if (!isValid) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const fNode = request.draggableItems[0].fNode;
|
|
17
|
+
const outputsOfNode = this.getOutputsForNode(fNode);
|
|
18
|
+
const inputsOfNode = this.getInputsForNode(fNode);
|
|
19
|
+
const isCantBeConnectedByOutput = outputsOfNode.some((x) => !x.canBeConnected);
|
|
20
|
+
const isCantBeConnectedByInput = this.connections.some((x) => {
|
|
21
|
+
return inputsOfNode.find((input) => input.id === x.fromTo?.input?.id);
|
|
22
|
+
});
|
|
23
|
+
if (!isCantBeConnectedByInput && outputsOfNode.length && !isCantBeConnectedByOutput && inputsOfNode.length) {
|
|
24
|
+
const output = outputsOfNode[0];
|
|
25
|
+
const input = inputsOfNode[0];
|
|
26
|
+
const outgoingConnections = findOutgoingConnections(this.connections, [output]);
|
|
27
|
+
const incomingConnections = findIncomingConnections(this.connections, [input]);
|
|
28
|
+
if (outgoingConnections.length === 0 && incomingConnections.length === 0) {
|
|
29
|
+
const connections = this.findConnectionsUnderNode(fNode);
|
|
30
|
+
console.log('connections', connections);
|
|
31
|
+
// if (connections.length) {
|
|
32
|
+
// const connectedTo = (connections[ 0 ].fromTo?.output as FNodeOutputBase).connectedTo;
|
|
33
|
+
// (connections[ 0 ].fromTo?.output as FNodeOutputBase).connectTo(input.id);
|
|
34
|
+
// output.connectTo(connectedTo);
|
|
35
|
+
// }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
isValidRequest(request) {
|
|
40
|
+
const result = request?.draggableItems.length === 1 &&
|
|
41
|
+
request?.draggableItems[0].type === EDraggableType.NODE;
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
getOutputsForNode(node) {
|
|
45
|
+
return this.fFlow.outputs.filter((x) => node.isContains(x.hostElement));
|
|
46
|
+
}
|
|
47
|
+
getInputsForNode(node) {
|
|
48
|
+
return this.fFlow.inputs.filter((x) => node.isContains(x.hostElement));
|
|
49
|
+
}
|
|
50
|
+
findConnectionsUnderNode(node) {
|
|
51
|
+
const nodeRect = getElementRectInCanvas(node.hostElement, this.fItemsContainer.transform, this.fFlow.hostElement);
|
|
52
|
+
return this.connections.filter((x) => {
|
|
53
|
+
const intersection = RectExtensions.intersectionWithVector(nodeRect, x.vector.point1, x.vector.point2);
|
|
54
|
+
return (intersection || []).length > 0;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ubmVjdC1pZi1pbnRlcnNlY3QuaGF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ob3N0RWxlbWVudCkpO1xuICB9XG5cbiAgcHJpdmF0ZSBmaW5kQ29ubmVjdGlvbnNVbmRlck5vZGUobm9kZTogRk5vZGVCYXNlKTogRkNvbm5lY3Rpb25CYXNlPEZOb2RlT3V0cHV0QmFzZT5bXSB7XG4gICAgY29uc3Qgbm9kZVJlY3QgPSBnZXRFbGVtZW50UmVjdEluQ2FudmFzKG5vZGUuaG9zdEVsZW1lbnQsIHRoaXMuZkl0ZW1zQ29udGFpbmVyLnRyYW5zZm9ybSwgdGhpcy5mRmxvdy5ob3N0RWxlbWVudCk7XG4gICAgcmV0dXJuIHRoaXMuY29ubmVjdGlvbnMuZmlsdGVyKCh4KSA9PiB7XG4gICAgICBjb25zdCBpbnRlcnNlY3Rpb24gPSBSZWN0RXh0ZW5zaW9ucy5pbnRlcnNlY3Rpb25XaXRoVmVjdG9yKG5vZGVSZWN0LCB4LnZlY3Rvci5wb2ludDEsIHgudmVjdG9yLnBvaW50Mik7XG4gICAgICByZXR1cm4gKGludGVyc2VjdGlvbiB8fCBbXSkubGVuZ3RoID4gMFxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class ConnectIfIntersectRequest {
|
|
2
|
+
constructor(draggableItems) {
|
|
3
|
+
this.draggableItems = draggableItems;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29ubmVjdC1pZi1pbnRlcnNlY3QucmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbm5lY3QtaWYtaW50ZXJzZWN0L2Nvbm5lY3QtaWYtaW50ZXJzZWN0L2Nvbm5lY3QtaWYtaW50ZXJzZWN0LnJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLHlCQUF5QjtJQUVwQyxZQUNrQixjQUFnQztRQUFoQyxtQkFBYyxHQUFkLGNBQWMsQ0FBa0I7SUFFbEQsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSURyYWdnYWJsZUl0ZW0gfSBmcm9tICcuLi8uLi9mLWRyYWdnYWJsZSc7XG5cbmV4cG9ydCBjbGFzcyBDb25uZWN0SWZJbnRlcnNlY3RSZXF1ZXN0IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgcmVhZG9ubHkgZHJhZ2dhYmxlSXRlbXM6IElEcmFnZ2FibGVJdGVtW11cbiAgKSB7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './connect-if-intersect.handler';
|
|
2
|
+
export * from './connect-if-intersect.request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb25uZWN0LWlmLWludGVyc2VjdC9jb25uZWN0LWlmLWludGVyc2VjdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsZ0NBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Nvbm5lY3QtaWYtaW50ZXJzZWN0LmhhbmRsZXInO1xuZXhwb3J0ICogZnJvbSAnLi9jb25uZWN0LWlmLWludGVyc2VjdC5yZXF1ZXN0JztcbiJdfQ==
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ContentChildren, Directive, Inject, InjectionToken } from '@angular/core';
|
|
2
|
+
import { F_CONNECTION_COMPONENT } from '../../components/f-connection/f-connection-base';
|
|
3
|
+
import { F_FLOW_COMPONENT } from '../../components';
|
|
4
|
+
import { F_ITEMS_CONTAINER } from '../f-containers';
|
|
5
|
+
import { ConnectIfIntersectHandler, ConnectIfIntersectRequest } from './connect-if-intersect';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../components";
|
|
8
|
+
import * as i2 from "../f-containers";
|
|
9
|
+
export const F_CONNECT_IF_INTERSECT = new InjectionToken('F_CONNECT_IF_INTERSECT');
|
|
10
|
+
export class FConnectIfIntersectDirective {
|
|
11
|
+
constructor(fFlow, fItemsContainer) {
|
|
12
|
+
this.fFlow = fFlow;
|
|
13
|
+
this.fItemsContainer = fItemsContainer;
|
|
14
|
+
}
|
|
15
|
+
handle(draggableItems) {
|
|
16
|
+
new ConnectIfIntersectHandler(this.fConnections.toArray(), this.fFlow, this.fItemsContainer).handle(new ConnectIfIntersectRequest(draggableItems));
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectDirective, deps: [{ token: F_FLOW_COMPONENT }, { token: F_ITEMS_CONTAINER }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectIfIntersectDirective, selector: "g[fConnectIfIntersect]", providers: [
|
|
20
|
+
{ provide: F_CONNECT_IF_INTERSECT, useExisting: FConnectIfIntersectDirective }
|
|
21
|
+
], queries: [{ propertyName: "fConnections", predicate: F_CONNECTION_COMPONENT, descendants: true }], ngImport: i0 }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectIfIntersectDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: "g[fConnectIfIntersect]",
|
|
27
|
+
providers: [
|
|
28
|
+
{ provide: F_CONNECT_IF_INTERSECT, useExisting: FConnectIfIntersectDirective }
|
|
29
|
+
]
|
|
30
|
+
}]
|
|
31
|
+
}], ctorParameters: function () { return [{ type: i1.FFlowBase, decorators: [{
|
|
32
|
+
type: Inject,
|
|
33
|
+
args: [F_FLOW_COMPONENT]
|
|
34
|
+
}] }, { type: i2.FItemsContainerBase, decorators: [{
|
|
35
|
+
type: Inject,
|
|
36
|
+
args: [F_ITEMS_CONTAINER]
|
|
37
|
+
}] }]; }, propDecorators: { fConnections: [{
|
|
38
|
+
type: ContentChildren,
|
|
39
|
+
args: [F_CONNECTION_COMPONENT, { descendants: true }]
|
|
40
|
+
}] } });
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0LWlmLWludGVyc2VjdC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb25uZWN0LWlmLWludGVyc2VjdC9mLWNvbm5lY3QtaWYtaW50ZXJzZWN0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsY0FBYyxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBQzlGLE9BQU8sRUFBRSxzQkFBc0IsRUFBbUIsTUFBTSxpREFBaUQsQ0FBQztBQUMxRyxPQUFPLEVBQUUsZ0JBQWdCLEVBQThCLE1BQU0sa0JBQWtCLENBQUM7QUFDaEYsT0FBTyxFQUFFLGlCQUFpQixFQUF1QixNQUFNLGlCQUFpQixDQUFDO0FBRXpFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSx5QkFBeUIsRU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xufSlcbmV4cG9ydCBjbGFzcyBGQ29ubmVjdElmSW50ZXJzZWN0RGlyZWN0aXZlIHtcblxuICBAQ29udGVudENoaWxkcmVuKEZfQ09OTkVDVElPTl9DT01QT05FTlQsIHsgZGVzY2VuZGFudHM6IHRydWUgfSlcbiAgcHVibGljIGZDb25uZWN0aW9ucyE6IFF1ZXJ5TGlzdDxGQ29ubmVjdGlvbkJhc2U8Rk5vZGVPdXRwdXRCYXNlPj47XG5cbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChGX0ZMT1dfQ09NUE9ORU5UKSBwcml2YXRlIGZGbG93OiBGRmxvd0Jhc2UsXG4gICAgQEluamVjdChGX0lURU1TX0NPTlRBSU5FUikgcHJpdmF0ZSBmSXRlbXNDb250YWluZXI6IEZJdGVtc0NvbnRhaW5lckJhc2VcbiAgKSB7XG4gIH1cblxuICBwdWJsaWMgaGFuZGxlKGRyYWdnYWJsZUl0ZW1zOiBJRHJhZ2dhYmxlSXRlbVtdKTogdm9pZCB7XG4gICAgbmV3IENvbm5lY3RJZkludGVyc2VjdEhhbmRsZXIoXG4gICAgICB0aGlzLmZDb25uZWN0aW9ucy50b0FycmF5KCksIHRoaXMuZkZsb3csIHRoaXMuZkl0ZW1zQ29udGFpbmVyXG4gICAgKS5oYW5kbGUoXG4gICAgICBuZXcgQ29ubmVjdElmSW50ZXJzZWN0UmVxdWVzdChkcmFnZ2FibGVJdGVtcylcbiAgICApO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './connect-if-intersect';
|
|
2
|
+
export * from './f-connect-if-intersect.directive';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb25uZWN0LWlmLWludGVyc2VjdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdCQUF3QixDQUFDO0FBRXZDLGNBQWMsb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Nvbm5lY3QtaWYtaW50ZXJzZWN0JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3QtaWYtaW50ZXJzZWN0LmRpcmVjdGl2ZSc7XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './f-connect-if-intersect.directive';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbm5lY3QtaWYtaW50ZXJzZWN0L3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1jb25uZWN0LWlmLWludGVyc2VjdC5kaXJlY3RpdmUnO1xuIl19
|
package/esm2022/directives/f-containers/f-connections-container/f-connections-container-base.mjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export const F_CONNECTIONS_CONTAINER = new InjectionToken('F_CONNECTIONS_CONTAINER');
|
|
4
|
+
export class FConnectionsContainerBase {
|
|
5
|
+
findConnectionWithElement(element) {
|
|
6
|
+
return this.fConnections.toArray().find((x) => {
|
|
7
|
+
return x.isContains(element);
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
findOutgoingConnections(outputs) {
|
|
11
|
+
return findOutgoingConnections(this.fConnections.toArray(), outputs);
|
|
12
|
+
}
|
|
13
|
+
findIncomingConnections(inputs) {
|
|
14
|
+
return findIncomingConnections(this.fConnections.toArray(), inputs);
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionsContainerBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FConnectionsContainerBase, ngImport: i0 }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionsContainerBase, decorators: [{
|
|
20
|
+
type: Directive
|
|
21
|
+
}] });
|
|
22
|
+
export function findIncomingConnections(allConnections, inputs) {
|
|
23
|
+
return allConnections.filter((x) => {
|
|
24
|
+
return inputs.includes(x.fromTo.input);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export function findOutgoingConnections(allConnections, outputs) {
|
|
28
|
+
return allConnections.filter((x) => {
|
|
29
|
+
return outputs.includes(x.fromTo.output);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9ucy1jb250YWluZXItYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1jb25uZWN0aW9ucy1jb250YWluZXIvZi1jb25uZWN0aW9ucy1jb250YWluZXItYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGNBQWMsRUFBYSxNQUFNLGVBQWUsQ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3V0cHV0QmFzZT5bXSwgaW5wdXRzOiBGTm9kZUlucHV0QmFzZVtdKTogRkNvbm5lY3Rpb25CYXNlPEZOb2RlT3V0cHV0QmFzZT5bXSB7XG4gIHJldHVybiBhbGxDb25uZWN0aW9ucy5maWx0ZXIoKHgpID0+IHtcbiAgICByZXR1cm4gaW5wdXRzLmluY2x1ZGVzKHguZnJvbVRvIS5pbnB1dCk7XG4gIH0pITtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGZpbmRPdXRnb2luZ0Nvbm5lY3Rpb25zKGFsbENvbm5lY3Rpb25zOiBGQ29ubmVjdGlvbkJhc2U8Rk5vZGVPdXRwdXRCYXNlPltdLCBvdXRwdXRzOiBGTm9kZU91dHB1dEJhc2VbXSk6IEZDb25uZWN0aW9uQmFzZTxGTm9kZU91dHB1dEJhc2U+W10ge1xuICByZXR1cm4gYWxsQ29ubmVjdGlvbnMuZmlsdGVyKCh4KSA9PiB7XG4gICAgcmV0dXJuIG91dHB1dHMuaW5jbHVkZXMoeC5mcm9tVG8hLm91dHB1dCk7XG4gIH0pITtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, ContentChildren, ViewChild } from "@angular/core";
|
|
2
|
+
import { F_CONNECTIONS_CONTAINER, FConnectionsContainerBase } from './f-connections-container-base';
|
|
3
|
+
import { F_CONNECTION_COMPONENT } from '../../../components/f-connection/f-connection-base';
|
|
4
|
+
import { F_TEMP_CONNECTION_COMPONENT } from '../../../components';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../../components/f-connection/f-temp-connection/f-temp-connection.component";
|
|
7
|
+
export class FConnectionsContainerComponent extends FConnectionsContainerBase {
|
|
8
|
+
get hostElement() {
|
|
9
|
+
return this.elementReference.nativeElement;
|
|
10
|
+
}
|
|
11
|
+
constructor(elementReference) {
|
|
12
|
+
super();
|
|
13
|
+
this.elementReference = elementReference;
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionsContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: FConnectionsContainerComponent, selector: "g[fConnectionsContainer]", host: { classAttribute: "f-connections-container" }, providers: [{ provide: F_CONNECTIONS_CONTAINER, useExisting: FConnectionsContainerComponent }], queries: [{ propertyName: "fConnections", predicate: F_CONNECTION_COMPONENT, descendants: true }], viewQueries: [{ propertyName: "fTempConnection", first: true, predicate: F_TEMP_CONNECTION_COMPONENT, descendants: true, static: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content select=\"[fConnection]\"></ng-content>\n <svg:g fTempConnection></svg:g>\n</ng-container>\n", dependencies: [{ kind: "component", type: i1.FTempConnectionComponent, selector: "g[fTempConnection]" }] }); }
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FConnectionsContainerComponent, decorators: [{
|
|
19
|
+
type: Component,
|
|
20
|
+
args: [{ selector: "g[fConnectionsContainer]", exportAs: 'fComponent', host: {
|
|
21
|
+
'class': 'f-connections-container'
|
|
22
|
+
}, providers: [{ provide: F_CONNECTIONS_CONTAINER, useExisting: FConnectionsContainerComponent }], template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content select=\"[fConnection]\"></ng-content>\n <svg:g fTempConnection></svg:g>\n</ng-container>\n" }]
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { fConnections: [{
|
|
24
|
+
type: ContentChildren,
|
|
25
|
+
args: [F_CONNECTION_COMPONENT, { descendants: true }]
|
|
26
|
+
}], fTempConnection: [{
|
|
27
|
+
type: ViewChild,
|
|
28
|
+
args: [F_TEMP_CONNECTION_COMPONENT, { static: true }]
|
|
29
|
+
}] } });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9ucy1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kaXJlY3RpdmVzL2YtY29udGFpbmVycy9mLWNvbm5lY3Rpb25zLWNvbnRhaW5lci9mLWNvbm5lY3Rpb25zLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2YtY29ubmVjdGlvbnMtY29udGFpbmVyL2YtY29ubmVjdGlvbnMtY29udGFpbmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsZUFBZSxFQUF5QixTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDN0YsT0FBTyxFQUFFLHVCQUF1QixFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEcsT0FBTyxFQUFFLHNCQUFzQixFQUFtQixNQUFNLG9EQUFvRCxDQUFDO0FBRTdHLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHFCQUFxQixDQUFDOzs7QUFXbEUsTUFBTSxPQUFPLDhCQUErQixTQUFRLHlCQUF5QjtJQVEzRSxJQUFvQixXQUFXO1FBQzdCLE9BQU8sSUFBSSxDQUFDLGdCQUFnQixDQUFDLGFBQWEsQ0FBQztJQUM3QyxDQUFDO0lBRUQsWUFDVSxnQkFBeUM7UUFFakQsS0FBSyxFQUFFLENBQUM7UUFGQSxxQkFBZ0IsR0FBa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1xuXG4gIHB1YmxpYyBvdmVycmlkZSBnZXQgaG9zdEVsZW1lbnQoKTogU1ZHR0VsZW1lbnQge1xuICAgIHJldHVybiB0aGlzLmVsZW1lbnRSZWZlcmVuY2UubmF0aXZlRWxlbWVudDtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUgZWxlbWVudFJlZmVyZW5jZTogRWxlbWVudFJlZjxTVkdHRWxlbWVudD4sXG4gICkge1xuICAgIHN1cGVyKCk7XG4gIH1cbn1cblxuXG4iLCI8bmctY29udGFpbmVyIHhtbG5zOnN2Zz1cImh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnXCI+XG4gIDxuZy1jb250ZW50IHNlbGVjdD1cIltmQ29ubmVjdGlvbl1cIj48L25nLWNvbnRlbnQ+XG4gIDxzdmc6ZyBmVGVtcENvbm5lY3Rpb24+PC9zdmc6Zz5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './f-connections-container.component';
|
|
2
|
+
export * from './f-connections-container-base';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2YtY29ubmVjdGlvbnMtY29udGFpbmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUNBQXFDLENBQUM7QUFFcEQsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1jb25uZWN0aW9ucy1jb250YWluZXIuY29tcG9uZW50JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3Rpb25zLWNvbnRhaW5lci1iYXNlJztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './f-connections-container.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1jb25uZWN0aW9ucy1jb250YWluZXIvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFDQUFxQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3Rpb25zLWNvbnRhaW5lci5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class CanvasChangeEvent {
|
|
2
|
+
constructor(position, scale) {
|
|
3
|
+
this.position = position;
|
|
4
|
+
this.scale = scale;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FudmFzLWNoYW5nZS5ldmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1pdGVtcy1jb250YWluZXIvY2FudmFzLWNoYW5nZS5ldmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8saUJBQWlCO0lBQzFCLFlBQ29CLFFBQWdCLEVBQ2hCLEtBQWE7UUFEYixhQUFRLEdBQVIsUUFBUSxDQUFRO1FBQ2hCLFVBQUssR0FBTCxLQUFLLENBQVE7SUFFakMsQ0FBQztDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSVBvaW50IH0gZnJvbSAnQGZvYmxleC9jb3JlJztcblxuZXhwb3J0IGNsYXNzIENhbnZhc0NoYW5nZUV2ZW50IHtcbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgcHVibGljIHJlYWRvbmx5IHBvc2l0aW9uOiBJUG9pbnQsXG4gICAgICAgIHB1YmxpYyByZWFkb25seSBzY2FsZTogbnVtYmVyLFxuICAgICkge1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PointExtensions, TransformModelExtensions } from '@foblex/core';
|
|
2
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
3
|
+
import { mixinChangePosition, mixinChangeZoom, mixinFitToParent, mixinOneToOneCentering } from '../../../common-behaviours';
|
|
4
|
+
import { CanvasChangeEvent } from './canvas-change.event';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export const F_ITEMS_CONTAINER = new InjectionToken('F_ITEMS_CONTAINER');
|
|
7
|
+
const MIXIN_BASE = mixinChangePosition(mixinFitToParent(mixinOneToOneCentering(mixinChangeZoom(class {
|
|
8
|
+
constructor(transform) {
|
|
9
|
+
this.transform = transform;
|
|
10
|
+
}
|
|
11
|
+
}))));
|
|
12
|
+
export class FItemsContainerBase extends MIXIN_BASE {
|
|
13
|
+
get hostElement() {
|
|
14
|
+
return this.elementReference.nativeElement;
|
|
15
|
+
}
|
|
16
|
+
constructor(elementReference) {
|
|
17
|
+
super(TransformModelExtensions.default());
|
|
18
|
+
this.elementReference = elementReference;
|
|
19
|
+
this.parseData();
|
|
20
|
+
}
|
|
21
|
+
parseData() {
|
|
22
|
+
const transform = TransformModelExtensions.fromString(this.hostElement.getAttribute("transform"));
|
|
23
|
+
this.transform = transform ? transform : this.transform;
|
|
24
|
+
}
|
|
25
|
+
redraw() {
|
|
26
|
+
this.hostElement.setAttribute("transform", TransformModelExtensions.toString(this.transform));
|
|
27
|
+
}
|
|
28
|
+
redrawWithAnimation() {
|
|
29
|
+
this.hostElement.setAttribute("style", 'transition: transform 0.15s ease-in-out');
|
|
30
|
+
this.redraw();
|
|
31
|
+
setTimeout(() => {
|
|
32
|
+
this.hostElement.removeAttribute("style");
|
|
33
|
+
}, 150);
|
|
34
|
+
}
|
|
35
|
+
completeDrag() {
|
|
36
|
+
const position = PointExtensions.sum(this.transform.position, this.transform.scaledPosition);
|
|
37
|
+
this.canvasChange.emit(new CanvasChangeEvent(position, this.transform.scale));
|
|
38
|
+
}
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FItemsContainerBase, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
40
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FItemsContainerBase, usesInheritance: true, ngImport: i0 }); }
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FItemsContainerBase, decorators: [{
|
|
43
|
+
type: Directive
|
|
44
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1pdGVtcy1jb250YWluZXItYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1pdGVtcy1jb250YWluZXIvZi1pdGVtcy1jb250YWluZXItYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRVksZUFBZSxFQUNoQyx3QkFBd0IsRUFDekIsTUFBTSxjQUFjLENBQUM7QUFDdEIsT0FBTyxFQUFFLF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JsaWMgcmVkcmF3V2l0aEFuaW1hdGlvbigpOiB2b2lkIHtcbiAgICB0aGlzLmhvc3RFbGVtZW50LnNldEF0dHJpYnV0ZShcInN0eWxlXCIsICd0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4xNXMgZWFzZS1pbi1vdXQnKTtcbiAgICB0aGlzLnJlZHJhdygpO1xuICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgdGhpcy5ob3N0RWxlbWVudC5yZW1vdmVBdHRyaWJ1dGUoXCJzdHlsZVwiKTtcbiAgICB9LCAxNTApXG4gIH1cblxuICBwdWJsaWMgY29tcGxldGVEcmFnKCk6IHZvaWQge1xuICAgIGNvbnN0IHBvc2l0aW9uID0gUG9pbnRFeHRlbnNpb25zLnN1bSh0aGlzLnRyYW5zZm9ybS5wb3NpdGlvbiwgdGhpcy50cmFuc2Zvcm0uc2NhbGVkUG9zaXRpb24pO1xuICAgIHRoaXMuY2FudmFzQ2hhbmdlLmVtaXQoXG4gICAgICAgIG5ldyBDYW52YXNDaGFuZ2VFdmVudChwb3NpdGlvbiwgdGhpcy50cmFuc2Zvcm0uc2NhbGUpXG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Directive, EventEmitter, Input, Output, } from "@angular/core";
|
|
2
|
+
import { FItemsContainerBase, F_ITEMS_CONTAINER } from './f-items-container-base';
|
|
3
|
+
import { PointExtensions } from '@foblex/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class FItemsContainerDirective extends FItemsContainerBase {
|
|
6
|
+
set position(value) {
|
|
7
|
+
if (!value) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const position = PointExtensions.sum(this.transform.position, this.transform.scaledPosition);
|
|
11
|
+
if (!PointExtensions.isEqual(position, value)) {
|
|
12
|
+
this.transform.position = value;
|
|
13
|
+
this.transform.scaledPosition = PointExtensions.initialize();
|
|
14
|
+
this.redraw();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
set scale(value) {
|
|
18
|
+
if (!value) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
this.transform.scale = value;
|
|
22
|
+
this.redraw();
|
|
23
|
+
}
|
|
24
|
+
constructor(elementReference) {
|
|
25
|
+
super(elementReference);
|
|
26
|
+
this.canvasChange = new EventEmitter();
|
|
27
|
+
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FItemsContainerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FItemsContainerDirective, selector: "g[fItemsContainer]", inputs: { position: "position", scale: "scale" }, outputs: { canvasChange: "canvasChange" }, host: { classAttribute: "f-items-container" }, providers: [{ provide: F_ITEMS_CONTAINER, useExisting: FItemsContainerDirective }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0 }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FItemsContainerDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: "g[fItemsContainer]",
|
|
35
|
+
exportAs: 'fComponent',
|
|
36
|
+
host: {
|
|
37
|
+
'class': 'f-items-container'
|
|
38
|
+
},
|
|
39
|
+
providers: [{ provide: F_ITEMS_CONTAINER, useExisting: FItemsContainerDirective }],
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { canvasChange: [{
|
|
42
|
+
type: Output
|
|
43
|
+
}], position: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], scale: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}] } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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nRFeHRlbnNpb25zLmlzRXF1YWwocG9zaXRpb24sIHZhbHVlKSkge1xuICAgICAgdGhpcy50cmFuc2Zvcm0ucG9zaXRpb24gPSB2YWx1ZTtcbiAgICAgIHRoaXMudHJhbnNmb3JtLnNjYWxlZFBvc2l0aW9uID0gUG9pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoKTtcbiAgICAgIHRoaXMucmVkcmF3KCk7XG4gICAgfVxuICB9XG5cbiAgQElucHV0KClcbiAgcHVibGljIHNldCBzY2FsZSh2YWx1ZTogbnVtYmVyIHwgdW5kZWZpbmVkKSB7XG4gICAgaWYgKCF2YWx1ZSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB0aGlzLnRyYW5zZm9ybS5zY2FsZSA9IHZhbHVlO1xuICAgIHRoaXMucmVkcmF3KCk7XG4gIH1cblxuICBjb25zdHJ1Y3RvcihcbiAgICAgIGVsZW1lbnRSZWZlcmVuY2U6IEVsZW1lbnRSZWY8U1ZHR0VsZW1lbnQ+XG4gICkge1xuICAgIHN1cGVyKGVsZW1lbnRSZWZlcmVuY2UpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-items-container.directive';
|
|
2
|
+
export * from './f-items-container-base';
|
|
3
|
+
export * from './canvas-change.event';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2YtaXRlbXMtY29udGFpbmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFFOUMsY0FBYywwQkFBMEIsQ0FBQztBQUV6QyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWl0ZW1zLWNvbnRhaW5lci5kaXJlY3RpdmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2YtaXRlbXMtY29udGFpbmVyLWJhc2UnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NhbnZhcy1jaGFuZ2UuZXZlbnQnO1xuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './f-items-container.directive';
|
|
2
|
+
export * from './canvas-change.event';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1pdGVtcy1jb250YWluZXIvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLCtCQUErQixDQUFDO0FBRTlDLGNBQWMsdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2YtaXRlbXMtY29udGFpbmVyLmRpcmVjdGl2ZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vY2FudmFzLWNoYW5nZS5ldmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Directive, InjectionToken } from '@angular/core';
|
|
2
|
+
import { defer, merge, startWith, switchMap, take } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export const F_NODES_CONTAINER = new InjectionToken('F_NODES_CONTAINER');
|
|
5
|
+
export class FNodesContainerBase {
|
|
6
|
+
constructor(ngZone) {
|
|
7
|
+
this.ngZone = ngZone;
|
|
8
|
+
this.stateChanges = defer(() => {
|
|
9
|
+
const items = this.fNodes;
|
|
10
|
+
if (items) {
|
|
11
|
+
return items.changes.pipe(startWith(items), switchMap(() => merge(...items.map(x => merge(x.fForeignObject.stateChanges, x.stateChanges)))));
|
|
12
|
+
}
|
|
13
|
+
return this.ngZone.onStable.pipe(take(1), switchMap(() => this.stateChanges));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
findNode(element) {
|
|
17
|
+
return this.fNodes.find((x) => {
|
|
18
|
+
return x.isContains(element);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
setNodeToTopLayer(node) {
|
|
22
|
+
const elements = Array.from(this.hostElement.children);
|
|
23
|
+
const elementsCount = elements.length;
|
|
24
|
+
const targetIndex = elements.findIndex((x) => x === node.hostElement);
|
|
25
|
+
if (targetIndex !== elementsCount - 1) {
|
|
26
|
+
const afterElements = elements.splice(targetIndex + 1);
|
|
27
|
+
afterElements.forEach((x) => {
|
|
28
|
+
this.hostElement.removeChild(x);
|
|
29
|
+
this.hostElement.insertBefore(x, node.hostElement);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodesContainerBase, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
34
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.5", type: FNodesContainerBase, ngImport: i0 }); }
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodesContainerBase, decorators: [{
|
|
37
|
+
type: Directive
|
|
38
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2Rlcy1jb250YWluZXItYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4u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SW5kZXg6IG51bWJlciA9IGVsZW1lbnRzLmZpbmRJbmRleCgoeCkgPT4geCA9PT0gbm9kZS5ob3N0RWxlbWVudCk7XG4gICAgaWYgKHRhcmdldEluZGV4ICE9PSBlbGVtZW50c0NvdW50IC0gMSkge1xuICAgICAgY29uc3QgYWZ0ZXJFbGVtZW50cyA9IGVsZW1lbnRzLnNwbGljZSh0YXJnZXRJbmRleCArIDEpO1xuICAgICAgYWZ0ZXJFbGVtZW50cy5mb3JFYWNoKCh4KSA9PiB7XG4gICAgICAgIHRoaXMuaG9zdEVsZW1lbnQucmVtb3ZlQ2hpbGQoeCk7XG4gICAgICAgIHRoaXMuaG9zdEVsZW1lbnQuaW5zZXJ0QmVmb3JlKHgsIG5vZGUuaG9zdEVsZW1lbnQpO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, ContentChildren } from "@angular/core";
|
|
2
|
+
import { F_NODES_CONTAINER, FNodesContainerBase } from './f-nodes-container-base';
|
|
3
|
+
import { F_NODE_COMPONENT } from '../../../components';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class FNodesContainerComponent extends FNodesContainerBase {
|
|
6
|
+
get hostElement() {
|
|
7
|
+
return this.elementReference.nativeElement;
|
|
8
|
+
}
|
|
9
|
+
constructor(elementReference, ngZone) {
|
|
10
|
+
super(ngZone);
|
|
11
|
+
this.elementReference = elementReference;
|
|
12
|
+
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodesContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.5", type: FNodesContainerComponent, selector: "g[fNodesContainer]", host: { classAttribute: "f-nodes-container" }, providers: [{ provide: F_NODES_CONTAINER, useExisting: FNodesContainerComponent }], queries: [{ propertyName: "fNodes", predicate: F_NODE_COMPONENT, descendants: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content select=\"[fNode]\"></ng-content>\n</ng-container>\n" }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.5", ngImport: i0, type: FNodesContainerComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{ selector: "g[fNodesContainer]", exportAs: 'fComponent', host: {
|
|
19
|
+
'class': 'f-nodes-container'
|
|
20
|
+
}, providers: [{ provide: F_NODES_CONTAINER, useExisting: FNodesContainerComponent }], template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <ng-content select=\"[fNode]\"></ng-content>\n</ng-container>\n" }]
|
|
21
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { fNodes: [{
|
|
22
|
+
type: ContentChildren,
|
|
23
|
+
args: [F_NODE_COMPONENT, { descendants: true }]
|
|
24
|
+
}] } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1ub2Rlcy1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kaXJlY3RpdmVzL2YtY29udGFpbmVycy9mLW5vZGVzLWNvbnRhaW5lci9mLW5vZGVzLWNvbnRhaW5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2Ytbm9kZXMtY29udGFpbmVyL2Ytbm9kZXMtY29udGFpbmVyLmNvbXBvbmVudC5odG1s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xlbWVudFJlZmVyZW5jZTogRWxlbWVudFJlZjxTVkdHRWxlbWVudD4sXG4gICAgbmdab25lOiBOZ1pvbmVcbiAgKSB7XG4gICAgc3VwZXIobmdab25lKTtcbiAgfVxufVxuXG5cbiIsIjxuZy1jb250YWluZXIgeG1sbnM6c3ZnPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIj5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2ZOb2RlXVwiPjwvbmctY29udGVudD5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './f-nodes-container.component';
|
|
2
|
+
export * from './f-nodes-container-base';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2Ytbm9kZXMtY29udGFpbmVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFFOUMsY0FBYywwQkFBMEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1ub2Rlcy1jb250YWluZXIuY29tcG9uZW50JztcblxuZXhwb3J0ICogZnJvbSAnLi9mLW5vZGVzLWNvbnRhaW5lci1iYXNlJztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './f-nodes-container.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvZi1ub2Rlcy1jb250YWluZXIvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLW5vZGVzLWNvbnRhaW5lci5jb21wb25lbnQnO1xuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-connections-container';
|
|
2
|
+
export * from './f-items-container';
|
|
3
|
+
export * from './f-nodes-container';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RpcmVjdGl2ZXMvZi1jb250YWluZXJzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFFMUMsY0FBYyxxQkFBcUIsQ0FBQztBQUVwQyxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mLWNvbm5lY3Rpb25zLWNvbnRhaW5lcic7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1pdGVtcy1jb250YWluZXInO1xuXG5leHBvcnQgKiBmcm9tICcuL2Ytbm9kZXMtY29udGFpbmVyJztcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './f-connections-container/public-api';
|
|
2
|
+
export * from './f-items-container/public-api';
|
|
3
|
+
export * from './f-nodes-container/public-api';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZGlyZWN0aXZlcy9mLWNvbnRhaW5lcnMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHNDQUFzQyxDQUFDO0FBRXJELGNBQWMsZ0NBQWdDLENBQUM7QUFFL0MsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZi1jb25uZWN0aW9ucy1jb250YWluZXIvcHVibGljLWFwaSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1pdGVtcy1jb250YWluZXIvcHVibGljLWFwaSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZi1ub2Rlcy1jb250YWluZXIvcHVibGljLWFwaSc7XG4iXX0=
|