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