kitchen-simulator 1.1.1-test.7 → 1.1.1-test.70
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/es/@history.js +8 -2
- package/es/AppContext.js +8 -3
- package/es/KitchenConfigurator.js +93 -106
- package/es/KitchenConfiguratorApp.js +143 -154
- package/es/actions/area-actions.js +10 -5
- package/es/actions/export.js +27 -12
- package/es/actions/groups-actions.js +43 -27
- package/es/actions/holes-actions.js +53 -34
- package/es/actions/items-actions.js +143 -94
- package/es/actions/lines-actions.js +34 -21
- package/es/actions/project-actions.js +143 -94
- package/es/actions/scene-actions.js +19 -11
- package/es/actions/vertices-actions.js +13 -7
- package/es/actions/viewer2d-actions.js +34 -21
- package/es/actions/viewer3d-actions.js +16 -9
- package/es/catalog/areas/area/planner-element.js +16 -8
- package/es/catalog/catalog.js +19 -24
- package/es/catalog/factories/area-factory-3d.js +29 -22
- package/es/catalog/factories/area-factory.js +18 -14
- package/es/catalog/factories/export.js +12 -6
- package/es/catalog/factories/wall-factory-3d.js +39 -31
- package/es/catalog/factories/wall-factory.js +29 -21
- package/es/catalog/holes/door-closet/planner-element.js +22 -15
- package/es/catalog/holes/door-double/planner-element.js +22 -15
- package/es/catalog/holes/door-exterior/planner-element.js +23 -16
- package/es/catalog/holes/door-interior/planner-element.js +23 -16
- package/es/catalog/holes/door-panic/planner-element.js +14 -7
- package/es/catalog/holes/door-panic-double/planner-element.js +22 -15
- package/es/catalog/holes/door-sliding/planner-element.js +23 -16
- package/es/catalog/holes/doorway-framed/planner-element.js +18 -11
- package/es/catalog/holes/doorway-frameless/planner-element.js +14 -7
- package/es/catalog/holes/export.js +31 -13
- package/es/catalog/holes/window-clear/planner-element.js +17 -10
- package/es/catalog/holes/window-cross/planner-element.js +17 -10
- package/es/catalog/holes/window-double-hung/planner-element.js +17 -10
- package/es/catalog/holes/window-vertical/planner-element.js +17 -10
- package/es/catalog/lines/wall/planner-element.js +19 -11
- package/es/catalog/molding/molding-dcm/planner-element.js +12 -5
- package/es/catalog/molding/molding-fbm/planner-element.js +12 -5
- package/es/catalog/molding/molding-lrm/planner-element.js +12 -5
- package/es/catalog/properties/export.js +33 -20
- package/es/catalog/properties/property-checkbox.js +82 -35
- package/es/catalog/properties/property-color.js +21 -16
- package/es/catalog/properties/property-enum.js +70 -28
- package/es/catalog/properties/property-hidden.js +14 -9
- package/es/catalog/properties/property-lenght-measure.js +43 -39
- package/es/catalog/properties/property-length-measure.js +82 -34
- package/es/catalog/properties/property-length-measure_hole.js +43 -39
- package/es/catalog/properties/property-number.js +22 -17
- package/es/catalog/properties/property-read-only.js +21 -16
- package/es/catalog/properties/property-string.js +21 -16
- package/es/catalog/properties/property-toggle.js +21 -16
- package/es/catalog/properties/shared-property-style.js +5 -1
- package/es/catalog/utils/FuseUtils.js +13 -11
- package/es/catalog/utils/exporter.js +13 -11
- package/es/catalog/utils/geom-utils.js +27 -13
- package/es/catalog/utils/item-loader.js +95 -91
- package/es/catalog/utils/load-obj.js +26 -20
- package/es/catalog/utils/mtl-loader.js +7 -3
- package/es/catalog/utils/obj-loader.js +7 -3
- package/es/class/FuseUtils.js +13 -11
- package/es/class/area.js +26 -26
- package/es/class/export.js +38 -23
- package/es/class/group.js +57 -62
- package/es/class/guide.js +19 -19
- package/es/class/hole.js +87 -88
- package/es/class/item.js +148 -155
- package/es/class/layer.js +63 -63
- package/es/class/line.js +141 -144
- package/es/class/project.js +96 -94
- package/es/class/vertex.js +33 -33
- package/es/components/content.js +27 -19
- package/es/components/disclaimer/disclaimer.js +79 -93
- package/es/components/export.js +15 -8
- package/es/components/style/button.js +29 -30
- package/es/components/style/cancel-button.js +12 -8
- package/es/components/style/content-container.js +14 -12
- package/es/components/style/content-title.js +18 -15
- package/es/components/style/delete-button.js +15 -9
- package/es/components/style/export.js +48 -30
- package/es/components/style/form-block.js +13 -12
- package/es/components/style/form-color-input.js +12 -8
- package/es/components/style/form-label.js +13 -12
- package/es/components/style/form-number-input.js +71 -47
- package/es/components/style/form-number-input_2.js +42 -42
- package/es/components/style/form-select.js +58 -14
- package/es/components/style/form-slider.js +36 -16
- package/es/components/style/form-submit-button.js +15 -9
- package/es/components/style/form-text-input.js +55 -37
- package/es/components/viewer2d/area.js +22 -17
- package/es/components/viewer2d/export.js +48 -30
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +15 -11
- package/es/components/viewer2d/grids/grid-streak.js +15 -11
- package/es/components/viewer2d/grids/grid-vertical-streak.js +15 -11
- package/es/components/viewer2d/grids/grids.js +17 -15
- package/es/components/viewer2d/group.js +22 -15
- package/es/components/viewer2d/item.js +68 -68
- package/es/components/viewer2d/layer.js +28 -23
- package/es/components/viewer2d/line.js +109 -104
- package/es/components/viewer2d/ruler.js +27 -23
- package/es/components/viewer2d/rulerDist.js +26 -21
- package/es/components/viewer2d/rulerX.js +45 -45
- package/es/components/viewer2d/rulerY.js +43 -43
- package/es/components/viewer2d/scene.js +40 -46
- package/es/components/viewer2d/snap.js +20 -13
- package/es/components/viewer2d/state.js +25 -23
- package/es/components/viewer2d/utils.js +63 -21
- package/es/components/viewer2d/vertex.js +15 -8
- package/es/components/viewer2d/viewer2d.js +169 -166
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +21 -24
- package/es/components/viewer3d/dcm.js +5 -1
- package/es/components/viewer3d/fbm.js +5 -1
- package/es/components/viewer3d/front3D.js +19 -17
- package/es/components/viewer3d/grid-creator.js +15 -8
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +12 -6
- package/es/components/viewer3d/grids/grid-streak.js +11 -5
- package/es/components/viewer3d/grids/grid-vertical-streak.js +12 -6
- package/es/components/viewer3d/libs/first-person-controls.js +7 -2
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +5 -1
- package/es/components/viewer3d/libs/mtl-loader.js +6 -2
- package/es/components/viewer3d/libs/obj-loader.js +6 -2
- package/es/components/viewer3d/libs/orbit-controls.js +10 -5
- package/es/components/viewer3d/libs/pointer-lock-controls.js +9 -4
- package/es/components/viewer3d/lrm.js +5 -1
- package/es/components/viewer3d/model.js +5 -1
- package/es/components/viewer3d/pointer-lock-navigation.js +8 -3
- package/es/components/viewer3d/ruler-utils/itemRect.js +23 -18
- package/es/components/viewer3d/ruler-utils/layer3D.js +64 -59
- package/es/components/viewer3d/ruler-utils/ruler3D.js +44 -42
- package/es/components/viewer3d/ruler-utils/scene3D.js +16 -11
- package/es/components/viewer3d/ruler-utils/state3D.js +9 -4
- package/es/components/viewer3d/scene-creator.js +225 -198
- package/es/components/viewer3d/three-memory-cleaner.js +10 -3
- package/es/components/viewer3d/viewer3d-first-person.js +44 -46
- package/es/components/viewer3d/viewer3d.js +206 -209
- package/es/constants.js +356 -349
- package/es/index.js +20 -15
- package/es/models.js +183 -183
- package/es/plugins/SVGLoader.js +51 -48
- package/es/plugins/autosave.js +7 -3
- package/es/plugins/console-debugger.js +10 -8
- package/es/plugins/export.js +15 -8
- package/es/plugins/keyboard.js +33 -29
- package/es/reducers/areas-reducer.js +11 -7
- package/es/reducers/export.js +39 -24
- package/es/reducers/groups-reducer.js +35 -31
- package/es/reducers/holes-reducer.js +47 -43
- package/es/reducers/items-reducer.js +110 -109
- package/es/reducers/lines-reducer.js +32 -28
- package/es/reducers/project-reducer.js +109 -105
- package/es/reducers/reducer.js +21 -16
- package/es/reducers/scene-reducer.js +19 -15
- package/es/reducers/user-reducer.js +9 -6
- package/es/reducers/vertices-reducer.js +15 -11
- package/es/reducers/viewer2d-reducer.js +22 -18
- package/es/reducers/viewer3d-reducer.js +20 -16
- package/es/shared-style.js +14 -10
- package/es/styles/export.js +9 -3
- package/es/translator/en.js +5 -1
- package/es/translator/it.js +5 -1
- package/es/translator/ru.js +5 -1
- package/es/translator/translator.js +17 -17
- package/es/utils/browser.js +7 -2
- package/es/utils/convert-units-lite.js +33 -0
- package/es/utils/email-validator.js +5 -1
- package/es/utils/export.js +32 -15
- package/es/utils/geometry.js +277 -191
- package/es/utils/get-edges-of-subgraphs.js +7 -1
- package/es/utils/graph-cycles.js +9 -9
- package/es/utils/graph-inner-cycles.js +16 -10
- package/es/utils/graph.js +15 -12
- package/es/utils/helper.js +61 -109
- package/es/utils/history.js +13 -8
- package/es/utils/id-broker.js +13 -12
- package/es/utils/logger.js +5 -1
- package/es/utils/math.js +10 -5
- package/es/utils/molding.js +175 -158
- package/es/utils/name-generator.js +11 -11
- package/es/utils/objects-utils.js +17 -7
- package/es/utils/phone-validator.js +5 -1
- package/es/utils/process-black-list.js +8 -6
- package/es/utils/react-if.js +10 -6
- package/es/utils/snap-scene.js +32 -32
- package/es/utils/snap.js +57 -51
- package/es/utils/summarizeCart.js +5 -1
- package/es/utils/threeCSG.es6.js +20 -17
- package/es/version.js +5 -1
- package/lib/@history.js +3 -2
- package/lib/AppContext.js +3 -2
- package/lib/KitchenConfigurator.js +70 -88
- package/lib/KitchenConfiguratorApp.js +98 -113
- package/lib/actions/export.js +1 -1
- package/lib/catalog/areas/area/planner-element.js +13 -8
- package/lib/catalog/catalog.js +9 -16
- package/lib/catalog/factories/area-factory-3d.js +1 -1
- package/lib/catalog/factories/area-factory.js +6 -7
- package/lib/catalog/factories/export.js +1 -1
- package/lib/catalog/factories/wall-factory-3d.js +4 -4
- package/lib/catalog/factories/wall-factory.js +4 -3
- package/lib/catalog/holes/door-closet/planner-element.js +4 -3
- package/lib/catalog/holes/door-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-exterior/planner-element.js +4 -3
- package/lib/catalog/holes/door-interior/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-sliding/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-framed/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-frameless/planner-element.js +4 -3
- package/lib/catalog/holes/export.js +14 -14
- package/lib/catalog/holes/window-clear/planner-element.js +4 -3
- package/lib/catalog/holes/window-cross/planner-element.js +4 -3
- package/lib/catalog/holes/window-double-hung/planner-element.js +4 -3
- package/lib/catalog/holes/window-vertical/planner-element.js +4 -3
- package/lib/catalog/lines/wall/planner-element.js +16 -11
- package/lib/catalog/molding/molding-dcm/planner-element.js +4 -3
- package/lib/catalog/molding/molding-fbm/planner-element.js +4 -3
- package/lib/catalog/molding/molding-lrm/planner-element.js +4 -3
- package/lib/catalog/properties/export.js +1 -1
- package/lib/catalog/properties/property-checkbox.js +68 -25
- package/lib/catalog/properties/property-color.js +3 -2
- package/lib/catalog/properties/property-enum.js +54 -16
- package/lib/catalog/properties/property-hidden.js +3 -2
- package/lib/catalog/properties/property-lenght-measure.js +10 -10
- package/lib/catalog/properties/property-length-measure.js +61 -17
- package/lib/catalog/properties/property-length-measure_hole.js +10 -10
- package/lib/catalog/properties/property-number.js +3 -2
- package/lib/catalog/properties/property-read-only.js +3 -2
- package/lib/catalog/properties/property-string.js +3 -2
- package/lib/catalog/properties/property-toggle.js +3 -2
- package/lib/catalog/properties/shared-property-style.js +2 -1
- package/lib/catalog/utils/FuseUtils.js +10 -11
- package/lib/catalog/utils/exporter.js +10 -12
- package/lib/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +29 -35
- package/lib/catalog/utils/mtl-loader.js +7 -3
- package/lib/catalog/utils/obj-loader.js +7 -3
- package/lib/class/FuseUtils.js +10 -11
- package/lib/class/area.js +9 -11
- package/lib/class/export.js +1 -1
- package/lib/class/group.js +13 -20
- package/lib/class/guide.js +9 -12
- package/lib/class/hole.js +7 -9
- package/lib/class/item.js +25 -35
- package/lib/class/layer.js +7 -9
- package/lib/class/line.js +14 -20
- package/lib/class/project.js +10 -11
- package/lib/class/vertex.js +9 -11
- package/lib/components/content.js +5 -3
- package/lib/components/disclaimer/disclaimer.js +69 -88
- package/lib/components/export.js +1 -1
- package/lib/components/style/button.js +17 -22
- package/lib/components/style/cancel-button.js +7 -7
- package/lib/components/style/content-container.js +5 -7
- package/lib/components/style/content-title.js +10 -12
- package/lib/components/style/delete-button.js +8 -8
- package/lib/components/style/export.js +1 -1
- package/lib/components/style/form-block.js +9 -12
- package/lib/components/style/form-color-input.js +7 -7
- package/lib/components/style/form-label.js +9 -12
- package/lib/components/style/form-number-input.js +43 -23
- package/lib/components/style/form-number-input_2.js +15 -19
- package/lib/components/style/form-select.js +53 -15
- package/lib/components/style/form-slider.js +28 -12
- package/lib/components/style/form-submit-button.js +8 -8
- package/lib/components/style/form-text-input.js +46 -32
- package/lib/components/viewer2d/area.js +8 -7
- package/lib/components/viewer2d/export.js +1 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +3 -3
- package/lib/components/viewer2d/grids/grids.js +6 -10
- package/lib/components/viewer2d/group.js +4 -3
- package/lib/components/viewer2d/item.js +14 -19
- package/lib/components/viewer2d/layer.js +3 -2
- package/lib/components/viewer2d/line.js +4 -7
- package/lib/components/viewer2d/ruler.js +9 -9
- package/lib/components/viewer2d/rulerDist.js +7 -6
- package/lib/components/viewer2d/rulerX.js +15 -19
- package/lib/components/viewer2d/rulerY.js +15 -19
- package/lib/components/viewer2d/scene.js +24 -34
- package/lib/components/viewer2d/snap.js +4 -3
- package/lib/components/viewer2d/state.js +7 -11
- package/lib/components/viewer2d/utils.js +35 -2
- package/lib/components/viewer2d/vertex.js +4 -3
- package/lib/components/viewer2d/viewer2d.js +40 -41
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +14 -20
- package/lib/components/viewer3d/dcm.js +2 -1
- package/lib/components/viewer3d/fbm.js +2 -1
- package/lib/components/viewer3d/front3D.js +6 -10
- package/lib/components/viewer3d/grid-creator.js +4 -3
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +3 -2
- package/lib/components/viewer3d/libs/mtl-loader.js +7 -2
- package/lib/components/viewer3d/libs/obj-loader.js +7 -2
- package/lib/components/viewer3d/libs/orbit-controls.js +10 -5
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +9 -4
- package/lib/components/viewer3d/lrm.js +2 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +10 -9
- package/lib/components/viewer3d/ruler-utils/layer3D.js +35 -34
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +5 -7
- package/lib/components/viewer3d/ruler-utils/scene3D.js +4 -5
- package/lib/components/viewer3d/ruler-utils/state3D.js +3 -2
- package/lib/components/viewer3d/scene-creator.js +40 -45
- package/lib/components/viewer3d/three-memory-cleaner.js +1 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +13 -17
- package/lib/components/viewer3d/viewer3d.js +34 -38
- package/lib/index.js +16 -88
- package/lib/models.js +58 -63
- package/lib/plugins/autosave.js +2 -1
- package/lib/plugins/console-debugger.js +5 -7
- package/lib/plugins/export.js +1 -1
- package/lib/plugins/keyboard.js +2 -1
- package/lib/reducers/areas-reducer.js +2 -1
- package/lib/reducers/export.js +1 -1
- package/lib/reducers/groups-reducer.js +2 -1
- package/lib/reducers/holes-reducer.js +2 -1
- package/lib/reducers/items-reducer.js +2 -1
- package/lib/reducers/lines-reducer.js +2 -1
- package/lib/reducers/project-reducer.js +2 -1
- package/lib/reducers/scene-reducer.js +2 -1
- package/lib/reducers/user-reducer.js +2 -2
- package/lib/reducers/vertices-reducer.js +2 -1
- package/lib/reducers/viewer2d-reducer.js +5 -5
- package/lib/reducers/viewer3d-reducer.js +5 -5
- package/lib/styles/export.js +1 -1
- package/lib/translator/en.js +2 -1
- package/lib/translator/it.js +2 -1
- package/lib/translator/ru.js +2 -1
- package/lib/translator/translator.js +7 -10
- package/lib/utils/convert-units-lite.js +35 -0
- package/lib/utils/export.js +2 -2
- package/lib/utils/geometry.js +20 -28
- package/lib/utils/get-edges-of-subgraphs.js +7 -1
- package/lib/utils/graph-cycles.js +9 -9
- package/lib/utils/graph-inner-cycles.js +1 -1
- package/lib/utils/graph.js +15 -12
- package/lib/utils/helper.js +14 -83
- package/lib/utils/history.js +1 -1
- package/lib/utils/id-broker.js +7 -10
- package/lib/utils/molding.js +66 -71
- package/lib/utils/name-generator.js +7 -9
- package/lib/utils/objects-utils.js +5 -3
- package/lib/utils/process-black-list.js +3 -5
- package/lib/utils/react-if.js +3 -2
- package/lib/utils/snap-scene.js +3 -7
- package/lib/utils/snap.js +22 -26
- package/lib/utils/threeCSG.es6.js +16 -15
- package/package.json +26 -54
- package/es/analytics/ga4.js +0 -191
- package/es/analytics/posthog.js +0 -60
- package/lib/analytics/ga4.js +0 -197
- package/lib/analytics/posthog.js +0 -68
|
@@ -1,166 +1,215 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.animateObject = animateObject;
|
|
5
|
+
exports.beginDraggingItem = beginDraggingItem;
|
|
6
|
+
exports.beginDraggingItem3D = beginDraggingItem3D;
|
|
7
|
+
exports.beginRotatingItem = beginRotatingItem;
|
|
8
|
+
exports.beginRotatingItem3D = beginRotatingItem3D;
|
|
9
|
+
exports.duplicateSelected = duplicateSelected;
|
|
10
|
+
exports.editWidth = editWidth;
|
|
11
|
+
exports.endCreatingCabinet = endCreatingCabinet;
|
|
12
|
+
exports.endDraggingItem = endDraggingItem;
|
|
13
|
+
exports.endDraggingItem3D = endDraggingItem3D;
|
|
14
|
+
exports.endDrawingItem = endDrawingItem;
|
|
15
|
+
exports.endLoading = endLoading;
|
|
16
|
+
exports.endRotatingItem = endRotatingItem;
|
|
17
|
+
exports.endRotatingItem3D = endRotatingItem3D;
|
|
18
|
+
exports.removeReplacingSupport = removeReplacingSupport;
|
|
19
|
+
exports.replaceItem = replaceItem;
|
|
20
|
+
exports.replaceSubmodule = replaceSubmodule;
|
|
21
|
+
exports.selectItem = selectItem;
|
|
22
|
+
exports.selectToolDrawingItem = selectToolDrawingItem;
|
|
23
|
+
exports.selectToolDrawingItem3D = selectToolDrawingItem3D;
|
|
24
|
+
exports.setApplianceMaterial = setApplianceMaterial;
|
|
25
|
+
exports.setBacksplash = setBacksplash;
|
|
26
|
+
exports.setBacksplashVisible = setBacksplashVisible;
|
|
27
|
+
exports.setCounterTop = setCounterTop;
|
|
28
|
+
exports.setDoorHandle = setDoorHandle;
|
|
29
|
+
exports.setDoorStyle = setDoorStyle;
|
|
30
|
+
exports.setHandleMaterial = setHandleMaterial;
|
|
31
|
+
exports.setInitialDoorStyle = setInitialDoorStyle;
|
|
32
|
+
exports.setModelling = setModelling;
|
|
33
|
+
exports.setMolding = setMolding;
|
|
34
|
+
exports.setMoveStatus = setMoveStatus;
|
|
35
|
+
exports.setRotateStatus = setRotateStatus;
|
|
36
|
+
exports.setWallColor = setWallColor;
|
|
37
|
+
exports.storeDistArray = storeDistArray;
|
|
38
|
+
exports.toggleLoadingCabinet = toggleLoadingCabinet;
|
|
39
|
+
exports.updateDraggingItem = updateDraggingItem;
|
|
40
|
+
exports.updateDraggingItem3DX = updateDraggingItem3DX;
|
|
41
|
+
exports.updateDraggingItem3DY = updateDraggingItem3DY;
|
|
42
|
+
exports.updateDraggingItemChanged = updateDraggingItemChanged;
|
|
43
|
+
exports.updateDrawingItem = updateDrawingItem;
|
|
44
|
+
exports.updateItemsAltitude = updateItemsAltitude;
|
|
45
|
+
exports.updateMolding = updateMolding;
|
|
46
|
+
exports.updatePopupOpen = updatePopupOpen;
|
|
47
|
+
exports.updateRotatingItem = updateRotatingItem;
|
|
48
|
+
exports.updateRotatingItemChanged = updateRotatingItemChanged;
|
|
49
|
+
exports.validateItemPositions = validateItemPositions;
|
|
50
|
+
var _constants = require("../constants");
|
|
51
|
+
function storeDistArray(layerID, itemID, distArray) {
|
|
52
|
+
return {
|
|
53
|
+
type: _constants.STORE_DIST_ARRAY,
|
|
5
54
|
layerID: layerID,
|
|
6
55
|
itemID: itemID,
|
|
7
56
|
distArray: distArray
|
|
8
57
|
};
|
|
9
58
|
}
|
|
10
|
-
|
|
59
|
+
function validateItemPositions(layerID) {
|
|
11
60
|
return {
|
|
12
|
-
type: VALIDATE_ITEM_POSTIONS,
|
|
61
|
+
type: _constants.VALIDATE_ITEM_POSTIONS,
|
|
13
62
|
layerID: layerID
|
|
14
63
|
};
|
|
15
64
|
}
|
|
16
|
-
|
|
65
|
+
function endLoading() {
|
|
17
66
|
return {
|
|
18
|
-
type: END_LOADING
|
|
67
|
+
type: _constants.END_LOADING
|
|
19
68
|
};
|
|
20
69
|
}
|
|
21
|
-
|
|
70
|
+
function toggleLoadingCabinet() {
|
|
22
71
|
return {
|
|
23
|
-
type: TOGGLE_LOADING_CABINET
|
|
72
|
+
type: _constants.TOGGLE_LOADING_CABINET
|
|
24
73
|
};
|
|
25
74
|
}
|
|
26
|
-
|
|
75
|
+
function editWidth(newWidth, layerID, itemID) {
|
|
27
76
|
return {
|
|
28
|
-
type: EDIT_WIDTH,
|
|
77
|
+
type: _constants.EDIT_WIDTH,
|
|
29
78
|
newWidth: newWidth,
|
|
30
79
|
layerID: layerID,
|
|
31
80
|
itemID: itemID
|
|
32
81
|
};
|
|
33
82
|
}
|
|
34
|
-
|
|
83
|
+
function duplicateSelected(currentObject) {
|
|
35
84
|
return {
|
|
36
|
-
type: DUPLICATE_SELECTED,
|
|
85
|
+
type: _constants.DUPLICATE_SELECTED,
|
|
37
86
|
currentObject: currentObject
|
|
38
87
|
};
|
|
39
88
|
}
|
|
40
|
-
|
|
89
|
+
function replaceItem(selectedPos, currentObject, selectedObject) {
|
|
41
90
|
return {
|
|
42
|
-
type: REPLACE_ITEM,
|
|
91
|
+
type: _constants.REPLACE_ITEM,
|
|
43
92
|
selectedPos: selectedPos,
|
|
44
93
|
currentObject: currentObject,
|
|
45
94
|
selectedObject: selectedObject
|
|
46
95
|
};
|
|
47
96
|
}
|
|
48
|
-
|
|
97
|
+
function selectItem(layerID, itemID) {
|
|
49
98
|
return {
|
|
50
|
-
type: SELECT_ITEM,
|
|
99
|
+
type: _constants.SELECT_ITEM,
|
|
51
100
|
layerID: layerID,
|
|
52
101
|
itemID: itemID
|
|
53
102
|
};
|
|
54
103
|
}
|
|
55
|
-
|
|
104
|
+
function endCreatingCabinet() {
|
|
56
105
|
return {
|
|
57
|
-
type: END_CREATING_CABINET
|
|
106
|
+
type: _constants.END_CREATING_CABINET
|
|
58
107
|
};
|
|
59
108
|
}
|
|
60
|
-
|
|
109
|
+
function updatePopupOpen(value) {
|
|
61
110
|
return {
|
|
62
|
-
type: UPDATE_POPUP_OPEN,
|
|
111
|
+
type: _constants.UPDATE_POPUP_OPEN,
|
|
63
112
|
value: value
|
|
64
113
|
};
|
|
65
114
|
}
|
|
66
|
-
|
|
115
|
+
function selectToolDrawingItem(sceneComponentType) {
|
|
67
116
|
return {
|
|
68
|
-
type: SELECT_TOOL_DRAWING_ITEM,
|
|
117
|
+
type: _constants.SELECT_TOOL_DRAWING_ITEM,
|
|
69
118
|
sceneComponentType: sceneComponentType
|
|
70
119
|
};
|
|
71
120
|
}
|
|
72
|
-
|
|
121
|
+
function selectToolDrawingItem3D(sceneComponentType) {
|
|
73
122
|
return {
|
|
74
|
-
type: SELECT_TOOL_DRAWING_ITEM_3D,
|
|
123
|
+
type: _constants.SELECT_TOOL_DRAWING_ITEM_3D,
|
|
75
124
|
sceneComponentType: sceneComponentType
|
|
76
125
|
};
|
|
77
126
|
}
|
|
78
|
-
|
|
127
|
+
function updateDrawingItem(layerID, x, y) {
|
|
79
128
|
return {
|
|
80
|
-
type: UPDATE_DRAWING_ITEM,
|
|
129
|
+
type: _constants.UPDATE_DRAWING_ITEM,
|
|
81
130
|
layerID: layerID,
|
|
82
131
|
x: x,
|
|
83
132
|
y: y
|
|
84
133
|
};
|
|
85
134
|
}
|
|
86
|
-
|
|
135
|
+
function endDrawingItem(layerID, x, y) {
|
|
87
136
|
return {
|
|
88
|
-
type: END_DRAWING_ITEM,
|
|
137
|
+
type: _constants.END_DRAWING_ITEM,
|
|
89
138
|
layerID: layerID,
|
|
90
139
|
x: x,
|
|
91
140
|
y: y
|
|
92
141
|
};
|
|
93
142
|
}
|
|
94
|
-
|
|
143
|
+
function beginDraggingItem(layerID, itemID, x, y) {
|
|
95
144
|
return {
|
|
96
|
-
type: BEGIN_DRAGGING_ITEM,
|
|
145
|
+
type: _constants.BEGIN_DRAGGING_ITEM,
|
|
97
146
|
layerID: layerID,
|
|
98
147
|
itemID: itemID,
|
|
99
148
|
x: x,
|
|
100
149
|
y: y
|
|
101
150
|
};
|
|
102
151
|
}
|
|
103
|
-
|
|
152
|
+
function beginDraggingItem3D(layerID, itemID, x, y) {
|
|
104
153
|
return {
|
|
105
|
-
type: BEGIN_DRAGGING_ITEM_3D,
|
|
154
|
+
type: _constants.BEGIN_DRAGGING_ITEM_3D,
|
|
106
155
|
layerID: layerID,
|
|
107
156
|
itemID: itemID,
|
|
108
157
|
x: x,
|
|
109
158
|
y: y
|
|
110
159
|
};
|
|
111
160
|
}
|
|
112
|
-
|
|
161
|
+
function updateDraggingItem(x, y) {
|
|
113
162
|
return {
|
|
114
|
-
type: UPDATE_DRAGGING_ITEM,
|
|
163
|
+
type: _constants.UPDATE_DRAGGING_ITEM,
|
|
115
164
|
x: x,
|
|
116
165
|
y: y
|
|
117
166
|
};
|
|
118
167
|
}
|
|
119
|
-
|
|
168
|
+
function updateDraggingItemChanged(x, y, layerID, itemID) {
|
|
120
169
|
return {
|
|
121
|
-
type: UPDATE_DRAGGING_ITEM_CHANGED,
|
|
170
|
+
type: _constants.UPDATE_DRAGGING_ITEM_CHANGED,
|
|
122
171
|
x: x,
|
|
123
172
|
y: y,
|
|
124
173
|
layerID: layerID,
|
|
125
174
|
itemID: itemID
|
|
126
175
|
};
|
|
127
176
|
}
|
|
128
|
-
|
|
177
|
+
function updateDraggingItem3DX(x) {
|
|
129
178
|
return {
|
|
130
|
-
type: UPDATE_DRAGGING_ITEM_3DX,
|
|
179
|
+
type: _constants.UPDATE_DRAGGING_ITEM_3DX,
|
|
131
180
|
x: x
|
|
132
181
|
};
|
|
133
182
|
}
|
|
134
|
-
|
|
183
|
+
function updateDraggingItem3DY(y) {
|
|
135
184
|
return {
|
|
136
|
-
type: UPDATE_DRAGGING_ITEM_3DY,
|
|
185
|
+
type: _constants.UPDATE_DRAGGING_ITEM_3DY,
|
|
137
186
|
y: y
|
|
138
187
|
};
|
|
139
188
|
}
|
|
140
|
-
|
|
189
|
+
function endDraggingItem(x, y) {
|
|
141
190
|
return {
|
|
142
|
-
type: END_DRAGGING_ITEM,
|
|
191
|
+
type: _constants.END_DRAGGING_ITEM,
|
|
143
192
|
x: x,
|
|
144
193
|
y: y
|
|
145
194
|
};
|
|
146
195
|
}
|
|
147
|
-
|
|
196
|
+
function endDraggingItem3D() {
|
|
148
197
|
return {
|
|
149
|
-
type: END_DRAGGING_ITEM_3D
|
|
198
|
+
type: _constants.END_DRAGGING_ITEM_3D
|
|
150
199
|
};
|
|
151
200
|
}
|
|
152
|
-
|
|
201
|
+
function beginRotatingItem(layerID, itemID, x, y) {
|
|
153
202
|
return {
|
|
154
|
-
type: BEGIN_ROTATING_ITEM,
|
|
203
|
+
type: _constants.BEGIN_ROTATING_ITEM,
|
|
155
204
|
layerID: layerID,
|
|
156
205
|
itemID: itemID,
|
|
157
206
|
x: x,
|
|
158
207
|
y: y
|
|
159
208
|
};
|
|
160
209
|
}
|
|
161
|
-
|
|
210
|
+
function beginRotatingItem3D(layerID, itemID, x, y, centerX, centerY) {
|
|
162
211
|
return {
|
|
163
|
-
type: BEGIN_ROTATING_ITEM_3D,
|
|
212
|
+
type: _constants.BEGIN_ROTATING_ITEM_3D,
|
|
164
213
|
layerID: layerID,
|
|
165
214
|
itemID: itemID,
|
|
166
215
|
x: x,
|
|
@@ -169,145 +218,145 @@ export function beginRotatingItem3D(layerID, itemID, x, y, centerX, centerY) {
|
|
|
169
218
|
centerY: centerY
|
|
170
219
|
};
|
|
171
220
|
}
|
|
172
|
-
|
|
221
|
+
function updateRotatingItem(x, y) {
|
|
173
222
|
return {
|
|
174
|
-
type: UPDATE_ROTATING_ITEM,
|
|
223
|
+
type: _constants.UPDATE_ROTATING_ITEM,
|
|
175
224
|
x: x,
|
|
176
225
|
y: y
|
|
177
226
|
};
|
|
178
227
|
}
|
|
179
|
-
|
|
228
|
+
function updateRotatingItemChanged(rotation, layerID, itemID) {
|
|
180
229
|
return {
|
|
181
|
-
type: UPDATE_ROTATING_ITEM_CHANGED,
|
|
230
|
+
type: _constants.UPDATE_ROTATING_ITEM_CHANGED,
|
|
182
231
|
rotation: rotation,
|
|
183
232
|
layerID: layerID,
|
|
184
233
|
itemID: itemID
|
|
185
234
|
};
|
|
186
235
|
}
|
|
187
|
-
|
|
236
|
+
function endRotatingItem(x, y) {
|
|
188
237
|
return {
|
|
189
|
-
type: END_ROTATING_ITEM,
|
|
238
|
+
type: _constants.END_ROTATING_ITEM,
|
|
190
239
|
x: x,
|
|
191
240
|
y: y
|
|
192
241
|
};
|
|
193
242
|
}
|
|
194
|
-
|
|
243
|
+
function endRotatingItem3D(x, y) {
|
|
195
244
|
return {
|
|
196
|
-
type: END_ROTATING_ITEM_3D,
|
|
245
|
+
type: _constants.END_ROTATING_ITEM_3D,
|
|
197
246
|
x: x,
|
|
198
247
|
y: y
|
|
199
248
|
};
|
|
200
249
|
}
|
|
201
|
-
|
|
250
|
+
function replaceSubmodule(url) {
|
|
202
251
|
return {
|
|
203
|
-
type: REPLACE_SUBMODULE,
|
|
252
|
+
type: _constants.REPLACE_SUBMODULE,
|
|
204
253
|
url: url
|
|
205
254
|
};
|
|
206
255
|
}
|
|
207
|
-
|
|
256
|
+
function animateObject(value) {
|
|
208
257
|
return {
|
|
209
|
-
type: ANIMATE_OBJECT,
|
|
258
|
+
type: _constants.ANIMATE_OBJECT,
|
|
210
259
|
value: value
|
|
211
260
|
};
|
|
212
261
|
}
|
|
213
|
-
|
|
262
|
+
function removeReplacingSupport() {
|
|
214
263
|
return {
|
|
215
|
-
type: REMOVE_REPLACE_SUBMODULE
|
|
264
|
+
type: _constants.REMOVE_REPLACE_SUBMODULE
|
|
216
265
|
};
|
|
217
266
|
}
|
|
218
|
-
|
|
267
|
+
function updateItemsAltitude(layerID, itemID, value) {
|
|
219
268
|
return {
|
|
220
|
-
type: ITEM_MOVE_UP,
|
|
269
|
+
type: _constants.ITEM_MOVE_UP,
|
|
221
270
|
layerID: layerID,
|
|
222
271
|
itemID: itemID,
|
|
223
272
|
value: value
|
|
224
273
|
};
|
|
225
274
|
}
|
|
226
|
-
|
|
275
|
+
function setDoorStyle(doorStyle, pathes, isAll) {
|
|
227
276
|
return {
|
|
228
|
-
type: SET_DOOR_STYLE,
|
|
277
|
+
type: _constants.SET_DOOR_STYLE,
|
|
229
278
|
doorStyle: doorStyle,
|
|
230
279
|
pathes: pathes,
|
|
231
280
|
isAll: isAll
|
|
232
281
|
};
|
|
233
282
|
}
|
|
234
|
-
|
|
283
|
+
function setCounterTop(counterTop) {
|
|
235
284
|
return {
|
|
236
|
-
type: SET_COUNTER_TOP,
|
|
285
|
+
type: _constants.SET_COUNTER_TOP,
|
|
237
286
|
counterTop: counterTop
|
|
238
287
|
};
|
|
239
288
|
}
|
|
240
|
-
|
|
289
|
+
function setHandleMaterial(material) {
|
|
241
290
|
return {
|
|
242
|
-
type: SET_HANDLE_MATERIAL,
|
|
291
|
+
type: _constants.SET_HANDLE_MATERIAL,
|
|
243
292
|
material: material
|
|
244
293
|
};
|
|
245
294
|
}
|
|
246
|
-
|
|
295
|
+
function setDoorHandle(texture) {
|
|
247
296
|
return {
|
|
248
|
-
type: SET_DOOR_HANDLE,
|
|
297
|
+
type: _constants.SET_DOOR_HANDLE,
|
|
249
298
|
doorHandle: texture
|
|
250
299
|
};
|
|
251
300
|
}
|
|
252
|
-
|
|
301
|
+
function setWallColor(texture) {
|
|
253
302
|
return {
|
|
254
|
-
type: SET_WALL_COLOR,
|
|
303
|
+
type: _constants.SET_WALL_COLOR,
|
|
255
304
|
wallColor: texture
|
|
256
305
|
};
|
|
257
306
|
}
|
|
258
|
-
|
|
307
|
+
function setMolding(texture, isAll) {
|
|
259
308
|
return {
|
|
260
|
-
type: SET_MOLDING,
|
|
309
|
+
type: _constants.SET_MOLDING,
|
|
261
310
|
molding: texture,
|
|
262
311
|
isAll: isAll
|
|
263
312
|
};
|
|
264
313
|
}
|
|
265
|
-
|
|
314
|
+
function updateMolding() {
|
|
266
315
|
return {
|
|
267
|
-
type: UPDATE_MOLDING
|
|
316
|
+
type: _constants.UPDATE_MOLDING
|
|
268
317
|
};
|
|
269
318
|
}
|
|
270
|
-
|
|
319
|
+
function setBacksplash(texture) {
|
|
271
320
|
return {
|
|
272
|
-
type: SET_BACKSPLASH,
|
|
321
|
+
type: _constants.SET_BACKSPLASH,
|
|
273
322
|
backsplash: texture
|
|
274
323
|
};
|
|
275
324
|
}
|
|
276
|
-
|
|
325
|
+
function setBacksplashVisible(itemID, value) {
|
|
277
326
|
return {
|
|
278
|
-
type: SET_BACKSPLASH_VISIBLE,
|
|
327
|
+
type: _constants.SET_BACKSPLASH_VISIBLE,
|
|
279
328
|
backsplashVisible: value,
|
|
280
329
|
itemID: itemID
|
|
281
330
|
};
|
|
282
331
|
}
|
|
283
|
-
|
|
332
|
+
function setApplianceMaterial(material) {
|
|
284
333
|
return {
|
|
285
|
-
type: SET_APPLIANCE_MATERIAL,
|
|
334
|
+
type: _constants.SET_APPLIANCE_MATERIAL,
|
|
286
335
|
material: material
|
|
287
336
|
};
|
|
288
337
|
}
|
|
289
|
-
|
|
338
|
+
function setModelling(model) {
|
|
290
339
|
return {
|
|
291
|
-
type: SET_MODELLING,
|
|
340
|
+
type: _constants.SET_MODELLING,
|
|
292
341
|
model: model
|
|
293
342
|
};
|
|
294
343
|
}
|
|
295
|
-
|
|
344
|
+
function setInitialDoorStyle(doorStyle, oStyle) {
|
|
296
345
|
return {
|
|
297
|
-
type: SET_INITIAL_DOOR_STYLE,
|
|
346
|
+
type: _constants.SET_INITIAL_DOOR_STYLE,
|
|
298
347
|
doorStyle: doorStyle,
|
|
299
348
|
oStyle: oStyle
|
|
300
349
|
};
|
|
301
350
|
}
|
|
302
|
-
|
|
351
|
+
function setMoveStatus(status) {
|
|
303
352
|
return {
|
|
304
|
-
type: SET_MOVE_STATUS,
|
|
353
|
+
type: _constants.SET_MOVE_STATUS,
|
|
305
354
|
status: status
|
|
306
355
|
};
|
|
307
356
|
}
|
|
308
|
-
|
|
357
|
+
function setRotateStatus(status) {
|
|
309
358
|
return {
|
|
310
|
-
type: SET_ROTATE_STATUS,
|
|
359
|
+
type: _constants.SET_ROTATE_STATUS,
|
|
311
360
|
status: status
|
|
312
361
|
};
|
|
313
362
|
}
|
|
@@ -1,51 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.beginDraggingLine = beginDraggingLine;
|
|
5
|
+
exports.beginDrawingLine = beginDrawingLine;
|
|
6
|
+
exports.endDraggingLine = endDraggingLine;
|
|
7
|
+
exports.endDrawingLine = endDrawingLine;
|
|
8
|
+
exports.selectLine = selectLine;
|
|
9
|
+
exports.selectToolDrawingLine = selectToolDrawingLine;
|
|
10
|
+
exports.setRelatedLine = setRelatedLine;
|
|
11
|
+
exports.stopDrawingLine = stopDrawingLine;
|
|
12
|
+
exports.updateDraggingLine = updateDraggingLine;
|
|
13
|
+
exports.updateDrawingLine = updateDrawingLine;
|
|
14
|
+
var _constants = require("../constants");
|
|
15
|
+
function selectLine(layerID, lineID) {
|
|
3
16
|
return {
|
|
4
|
-
type: SELECT_LINE,
|
|
17
|
+
type: _constants.SELECT_LINE,
|
|
5
18
|
layerID: layerID,
|
|
6
19
|
lineID: lineID
|
|
7
20
|
};
|
|
8
21
|
}
|
|
9
|
-
|
|
22
|
+
function selectToolDrawingLine(sceneComponentType) {
|
|
10
23
|
return {
|
|
11
|
-
type: SELECT_TOOL_DRAWING_LINE,
|
|
24
|
+
type: _constants.SELECT_TOOL_DRAWING_LINE,
|
|
12
25
|
sceneComponentType: sceneComponentType
|
|
13
26
|
};
|
|
14
27
|
}
|
|
15
|
-
|
|
28
|
+
function beginDrawingLine(layerID, x, y, snapMask) {
|
|
16
29
|
return {
|
|
17
|
-
type: BEGIN_DRAWING_LINE,
|
|
30
|
+
type: _constants.BEGIN_DRAWING_LINE,
|
|
18
31
|
layerID: layerID,
|
|
19
32
|
x: x,
|
|
20
33
|
y: y,
|
|
21
34
|
snapMask: snapMask
|
|
22
35
|
};
|
|
23
36
|
}
|
|
24
|
-
|
|
37
|
+
function updateDrawingLine(x, y, relatedLines, snapMask) {
|
|
25
38
|
return {
|
|
26
|
-
type: UPDATE_DRAWING_LINE,
|
|
39
|
+
type: _constants.UPDATE_DRAWING_LINE,
|
|
27
40
|
x: x,
|
|
28
41
|
y: y,
|
|
29
42
|
relatedLines: relatedLines,
|
|
30
43
|
snapMask: snapMask
|
|
31
44
|
};
|
|
32
45
|
}
|
|
33
|
-
|
|
46
|
+
function stopDrawingLine() {
|
|
34
47
|
return {
|
|
35
|
-
type: STOP_DRAWING_LINE
|
|
48
|
+
type: _constants.STOP_DRAWING_LINE
|
|
36
49
|
};
|
|
37
50
|
}
|
|
38
|
-
|
|
51
|
+
function endDrawingLine(x, y, snapMask) {
|
|
39
52
|
return {
|
|
40
|
-
type: END_DRAWING_LINE,
|
|
53
|
+
type: _constants.END_DRAWING_LINE,
|
|
41
54
|
x: x,
|
|
42
55
|
y: y,
|
|
43
56
|
snapMask: snapMask
|
|
44
57
|
};
|
|
45
58
|
}
|
|
46
|
-
|
|
59
|
+
function beginDraggingLine(layerID, lineID, x, y, snapMask) {
|
|
47
60
|
return {
|
|
48
|
-
type: BEGIN_DRAGGING_LINE,
|
|
61
|
+
type: _constants.BEGIN_DRAGGING_LINE,
|
|
49
62
|
layerID: layerID,
|
|
50
63
|
lineID: lineID,
|
|
51
64
|
x: x,
|
|
@@ -53,27 +66,27 @@ export function beginDraggingLine(layerID, lineID, x, y, snapMask) {
|
|
|
53
66
|
snapMask: snapMask
|
|
54
67
|
};
|
|
55
68
|
}
|
|
56
|
-
|
|
69
|
+
function updateDraggingLine(x, y, relatedLines, snapMask) {
|
|
57
70
|
return {
|
|
58
|
-
type: UPDATE_DRAGGING_LINE,
|
|
71
|
+
type: _constants.UPDATE_DRAGGING_LINE,
|
|
59
72
|
x: x,
|
|
60
73
|
y: y,
|
|
61
74
|
relatedLines: relatedLines,
|
|
62
75
|
snapMask: snapMask
|
|
63
76
|
};
|
|
64
77
|
}
|
|
65
|
-
|
|
78
|
+
function endDraggingLine(x, y, relatedLines, snapMask) {
|
|
66
79
|
return {
|
|
67
|
-
type: END_DRAGGING_LINE,
|
|
80
|
+
type: _constants.END_DRAGGING_LINE,
|
|
68
81
|
x: x,
|
|
69
82
|
y: y,
|
|
70
83
|
relatedLines: relatedLines,
|
|
71
84
|
snapMask: snapMask
|
|
72
85
|
};
|
|
73
86
|
}
|
|
74
|
-
|
|
87
|
+
function setRelatedLine(layerID, lineID, intersection) {
|
|
75
88
|
return {
|
|
76
|
-
type: SET_RELATED_LINE,
|
|
89
|
+
type: _constants.SET_RELATED_LINE,
|
|
77
90
|
layerID: layerID,
|
|
78
91
|
lineID: lineID,
|
|
79
92
|
intersection: intersection
|