@foblex/flow 12.6.1 → 12.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/create-connection-markers/create-connection-markers.execution.d.ts +3 -0
- package/domain/create-dom-element.d.ts +2 -0
- package/domain/deep-clone-node.d.ts +1 -0
- package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +3 -1
- package/domain/index.d.ts +2 -0
- package/domain/intersections/rounded-rect/rounded-rect.d.ts +2 -2
- package/domain/providers.d.ts +1 -1
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +3 -3
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +3 -3
- package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +1 -3
- package/esm2022/domain/clear-selection/clear-selection.execution.mjs +3 -3
- package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +21 -8
- package/esm2022/domain/create-dom-element.mjs +4 -0
- package/esm2022/domain/deep-clone-node.mjs +47 -0
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +3 -3
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +3 -3
- package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +3 -3
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +3 -3
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +10 -7
- package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.mjs +3 -3
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +3 -3
- package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.mjs +3 -3
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +3 -3
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +3 -3
- package/esm2022/domain/get-selection/get-selection.execution.mjs +3 -3
- package/esm2022/domain/index.mjs +3 -1
- package/esm2022/domain/intersections/rounded-rect/rounded-rect.mjs +10 -35
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -3
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +3 -3
- package/esm2022/domain/select/select.execution.mjs +3 -3
- package/esm2022/domain/select-all/select-all.execution.mjs +3 -3
- package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +10 -10
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +10 -10
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +3 -3
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +3 -3
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +6 -9
- package/esm2022/f-backgroud/f-background-base.mjs +3 -3
- package/esm2022/f-backgroud/f-background.component.mjs +13 -9
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +13 -9
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +14 -10
- package/esm2022/f-canvas/f-canvas-base.mjs +3 -3
- package/esm2022/f-canvas/f-canvas.component.mjs +3 -3
- package/esm2022/f-connection/common/f-connection-base.mjs +3 -3
- package/esm2022/f-connection/common/f-connection-identifiers.mjs +7 -2
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +19 -10
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +3 -3
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +3 -3
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +3 -3
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +3 -3
- package/esm2022/f-connection/common/f-path/get-path-marker-id.mjs +7 -3
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +3 -3
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +3 -3
- package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +3 -3
- package/esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs +3 -3
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +3 -3
- package/esm2022/f-connection/f-marker/f-marker-base.mjs +3 -3
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +3 -3
- package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +3 -3
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +3 -3
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +3 -3
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +3 -3
- package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +3 -3
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +3 -3
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +10 -7
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +10 -7
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +10 -7
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +14 -18
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/index.mjs +1 -2
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/providers.mjs +1 -3
- package/esm2022/f-draggable/f-draggable-base.mjs +24 -24
- package/esm2022/f-draggable/f-draggable-data-context.mjs +3 -3
- package/esm2022/f-draggable/f-draggable.directive.mjs +10 -13
- package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +3 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +3 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +3 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +3 -3
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +3 -3
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +17 -11
- package/esm2022/f-draggable/single-select/single-select.validator.mjs +3 -3
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +10 -7
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs +3 -3
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +10 -7
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +3 -3
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +11 -8
- package/esm2022/f-external-item/f-external-item-base.mjs +3 -3
- package/esm2022/f-external-item/f-external-item.directive.mjs +3 -3
- package/esm2022/f-external-item/f-external-item.service.mjs +3 -3
- package/esm2022/f-flow/f-flow.component.mjs +12 -6
- package/esm2022/f-flow.module.mjs +4 -4
- package/esm2022/f-line-alignment/domain/line-element.mjs +4 -4
- package/esm2022/f-line-alignment/domain/line-service.mjs +4 -4
- package/esm2022/f-line-alignment/f-line-alignment-base.mjs +3 -3
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +8 -7
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +3 -3
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +3 -3
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +3 -3
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +3 -3
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs +3 -3
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +12 -8
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +3 -3
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +3 -3
- package/esm2022/f-minimap/f-minimap.component.mjs +3 -3
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +3 -3
- package/esm2022/f-node/f-group.directive.mjs +12 -6
- package/esm2022/f-node/f-node.directive.mjs +12 -6
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +3 -3
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +3 -3
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs +3 -3
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs +3 -3
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs +8 -6
- package/esm2022/f-selection-area/f-selection-area-base.mjs +3 -3
- package/esm2022/f-selection-area/f-selection-area.component.mjs +3 -3
- package/esm2022/f-storage/f-components-store.mjs +3 -3
- package/esm2022/f-storage/f-transform-store.mjs +3 -3
- package/esm2022/f-zoom/f-zoom.directive.mjs +3 -3
- package/esm2022/infrastructure/f-mediator/f-flow-mediator.mjs +3 -3
- package/f-backgroud/f-background.component.d.ts +3 -1
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +3 -1
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +3 -1
- package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +3 -1
- package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.d.ts +3 -1
- package/f-draggable/connections/providers.d.ts +1 -1
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.d.ts +3 -1
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.d.ts +3 -1
- package/f-draggable/domain/get-node-padding/get-node-padding.execution.d.ts +4 -4
- package/f-draggable/domain/index.d.ts +0 -1
- package/f-draggable/domain/providers.d.ts +1 -2
- package/f-draggable/f-draggable-base.d.ts +2 -2
- package/f-draggable/f-draggable.directive.d.ts +3 -2
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
- package/f-draggable/node/providers.d.ts +1 -1
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.execution.d.ts +5 -3
- package/f-external-item/domain/external-item-finalize/external-item-finalize.execution.d.ts +3 -1
- package/f-external-item/domain/external-item-preparation/external-item-preparation.execution.d.ts +3 -1
- package/f-external-item/domain/external-item.drag-handler.d.ts +3 -1
- package/f-flow/f-flow.component.d.ts +3 -1
- package/f-line-alignment/domain/line-element.d.ts +2 -1
- package/f-line-alignment/domain/line-service.d.ts +2 -1
- package/f-line-alignment/f-line-alignment.component.d.ts +2 -1
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +3 -1
- package/f-node/f-group.directive.d.ts +3 -1
- package/f-node/f-node.directive.d.ts +3 -1
- package/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.d.ts +1 -0
- package/fesm2022/foblex-flow.mjs +2438 -2396
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +3 -2
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels-request.mjs +0 -13
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.mjs +0 -49
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/index.mjs +0 -3
- package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels-request.d.ts +0 -7
- package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.d.ts +0 -12
- package/f-draggable/domain/convert-computed-to-pixels/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foblex/flow",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.2",
|
|
4
4
|
"description": "An Angular library designed to simplify the creation and manipulation of dynamic flow. Provides components for flows, nodes, and connections, automating node manipulation and inter-node connections.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@angular/common": ">=12.0.0",
|
|
33
33
|
"@angular/core": ">=12.0.0",
|
|
34
|
-
"@foblex/
|
|
34
|
+
"@foblex/platform": "1.0.2",
|
|
35
|
+
"@foblex/core": "1.2.5",
|
|
35
36
|
"rxjs": ">=6.6.0"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
package/esm2022/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels-request.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export class ConvertComputedToPixelsRequest {
|
|
2
|
-
value;
|
|
3
|
-
clientWidth;
|
|
4
|
-
clientHeight;
|
|
5
|
-
fontSize;
|
|
6
|
-
constructor(value, clientWidth, clientHeight, fontSize) {
|
|
7
|
-
this.value = value;
|
|
8
|
-
this.clientWidth = clientWidth;
|
|
9
|
-
this.clientHeight = clientHeight;
|
|
10
|
-
this.fontSize = fontSize;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC1jb21wdXRlZC10by1waXhlbHMtcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvZG9tYWluL2NvbnZlcnQtY29tcHV0ZWQtdG8tcGl4ZWxzL2NvbnZlcnQtY29tcHV0ZWQtdG8tcGl4ZWxzLXJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLDhCQUE4QjtJQUdoQztJQUNBO0lBQ0E7SUFDQTtJQUpULFlBQ1MsS0FBYSxFQUNiLFdBQW1CLEVBQ25CLFlBQW9CLEVBQ3BCLFFBQWdCO1FBSGhCLFVBQUssR0FBTCxLQUFLLENBQVE7UUFDYixnQkFBVyxHQUFYLFdBQVcsQ0FBUTtRQUNuQixpQkFBWSxHQUFaLFlBQVksQ0FBUTtRQUNwQixhQUFRLEdBQVIsUUFBUSxDQUFRO0lBRXpCLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBDb252ZXJ0Q29tcHV0ZWRUb1BpeGVsc1JlcXVlc3Qge1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyB2YWx1ZTogc3RyaW5nLFxuICAgIHB1YmxpYyBjbGllbnRXaWR0aDogbnVtYmVyLFxuICAgIHB1YmxpYyBjbGllbnRIZWlnaHQ6IG51bWJlcixcbiAgICBwdWJsaWMgZm9udFNpemU6IHN0cmluZ1xuICApIHtcbiAgfVxufVxuIl19
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { ConvertComputedToPixelsRequest } from './convert-computed-to-pixels-request';
|
|
4
|
-
import { FExecutionRegister } from '../../../infrastructure';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@foblex/core";
|
|
7
|
-
let ConvertComputedToPixelsExecution = class ConvertComputedToPixelsExecution {
|
|
8
|
-
windowService;
|
|
9
|
-
constructor(windowService) {
|
|
10
|
-
this.windowService = windowService;
|
|
11
|
-
}
|
|
12
|
-
handle(request) {
|
|
13
|
-
return this.convert(request.value, request.clientWidth, request.clientHeight, request.fontSize);
|
|
14
|
-
}
|
|
15
|
-
convert(value, clientWidth, clientHeight, fontSize) {
|
|
16
|
-
if (value.endsWith('px')) {
|
|
17
|
-
return parseFloat(value);
|
|
18
|
-
}
|
|
19
|
-
else if (value.endsWith('%')) {
|
|
20
|
-
const percentage = parseFloat(value) / 100;
|
|
21
|
-
return Math.max(clientWidth, clientHeight) * percentage;
|
|
22
|
-
}
|
|
23
|
-
else if (value.endsWith('em')) {
|
|
24
|
-
return parseFloat(value) * parseFloat(fontSize);
|
|
25
|
-
}
|
|
26
|
-
else if (value.endsWith('rem')) {
|
|
27
|
-
return parseFloat(value) * parseFloat(getComputedStyle(this.windowService.getWindow().document.documentElement).fontSize);
|
|
28
|
-
}
|
|
29
|
-
else if (value.endsWith('vh')) {
|
|
30
|
-
const vh = this.windowService.getWindow().innerHeight / 100;
|
|
31
|
-
return parseFloat(value) * vh;
|
|
32
|
-
}
|
|
33
|
-
else if (value.endsWith('vw')) {
|
|
34
|
-
const vw = this.windowService.getWindow().innerWidth / 100;
|
|
35
|
-
return parseFloat(value) * vw;
|
|
36
|
-
}
|
|
37
|
-
return parseFloat(value) || 0;
|
|
38
|
-
}
|
|
39
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: ConvertComputedToPixelsExecution, deps: [{ token: i1.WindowService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: ConvertComputedToPixelsExecution });
|
|
41
|
-
};
|
|
42
|
-
ConvertComputedToPixelsExecution = __decorate([
|
|
43
|
-
FExecutionRegister(ConvertComputedToPixelsRequest)
|
|
44
|
-
], ConvertComputedToPixelsExecution);
|
|
45
|
-
export { ConvertComputedToPixelsExecution };
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: ConvertComputedToPixelsExecution, decorators: [{
|
|
47
|
-
type: Injectable
|
|
48
|
-
}], ctorParameters: () => [{ type: i1.WindowService }] });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC1jb21wdXRlZC10by1waXhlbHMuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93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nN0IHZ3ID0gdGhpcy53aW5kb3dTZXJ2aWNlLmdldFdpbmRvdygpLmlubmVyV2lkdGggLyAxMDA7XG4gICAgICByZXR1cm4gcGFyc2VGbG9hdCh2YWx1ZSkgKiB2dztcbiAgICB9XG4gICAgcmV0dXJuIHBhcnNlRmxvYXQodmFsdWUpIHx8IDA7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './convert-computed-to-pixels.execution';
|
|
2
|
-
export * from './convert-computed-to-pixels-request';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL2RvbWFpbi9jb252ZXJ0LWNvbXB1dGVkLXRvLXBpeGVscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdDQUF3QyxDQUFDO0FBRXZELGNBQWMsc0NBQXNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnZlcnQtY29tcHV0ZWQtdG8tcGl4ZWxzLmV4ZWN1dGlvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vY29udmVydC1jb21wdXRlZC10by1waXhlbHMtcmVxdWVzdCc7XG4iXX0=
|
package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ConvertComputedToPixelsRequest } from './convert-computed-to-pixels-request';
|
|
2
|
-
import { WindowService } from '@foblex/core';
|
|
3
|
-
import { IExecution } from '../../../infrastructure';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ConvertComputedToPixelsExecution implements IExecution<ConvertComputedToPixelsRequest, number> {
|
|
6
|
-
private windowService;
|
|
7
|
-
constructor(windowService: WindowService);
|
|
8
|
-
handle(request: ConvertComputedToPixelsRequest): number;
|
|
9
|
-
private convert;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertComputedToPixelsExecution, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConvertComputedToPixelsExecution>;
|
|
12
|
-
}
|