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,81 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.addCircularGuide = addCircularGuide;
|
|
5
|
+
exports.addHorizontalGuide = addHorizontalGuide;
|
|
6
|
+
exports.addVerticalGuide = addVerticalGuide;
|
|
7
|
+
exports.changeCatalogPage = changeCatalogPage;
|
|
8
|
+
exports.copyProperties = copyProperties;
|
|
9
|
+
exports.goBackToCatalogPage = goBackToCatalogPage;
|
|
10
|
+
exports.initCatalog = initCatalog;
|
|
11
|
+
exports.loadProject = loadProject;
|
|
12
|
+
exports.newProject = newProject;
|
|
13
|
+
exports.openCatalog = openCatalog;
|
|
14
|
+
exports.openProjectConfigurator = openProjectConfigurator;
|
|
15
|
+
exports.pasteProperties = pasteProperties;
|
|
16
|
+
exports.pushLastSelectedCatalogElementToHistory = pushLastSelectedCatalogElementToHistory;
|
|
17
|
+
exports.recreate = recreate;
|
|
18
|
+
exports.redo = redo;
|
|
19
|
+
exports.remove = remove;
|
|
20
|
+
exports.removeCircularGuide = removeCircularGuide;
|
|
21
|
+
exports.removeDrawingSupport = removeDrawingSupport;
|
|
22
|
+
exports.removeHorizontalGuide = removeHorizontalGuide;
|
|
23
|
+
exports.removeVerticalGuide = removeVerticalGuide;
|
|
24
|
+
exports.rename = rename;
|
|
25
|
+
exports.rollback = rollback;
|
|
26
|
+
exports.saveProject = saveProject;
|
|
27
|
+
exports.selectAll = selectAll;
|
|
28
|
+
exports.selectToolEdit = selectToolEdit;
|
|
29
|
+
exports.setAlterateState = setAlterateState;
|
|
30
|
+
exports.setHolesAttributes = setHolesAttributes;
|
|
31
|
+
exports.setIsCabinetDrawing = setIsCabinetDrawing;
|
|
32
|
+
exports.setIsHelp = setIsHelp;
|
|
33
|
+
exports.setItemsAttributes = setItemsAttributes;
|
|
34
|
+
exports.setLinesAttributes = setLinesAttributes;
|
|
35
|
+
exports.setMode = setMode;
|
|
36
|
+
exports.setProjectID = setProjectID;
|
|
37
|
+
exports.setProjectProperties = setProjectProperties;
|
|
38
|
+
exports.setProperties = setProperties;
|
|
39
|
+
exports.setStateProperties = setStateProperties;
|
|
40
|
+
exports.shift2doff = shift2doff;
|
|
41
|
+
exports.shift2don = shift2don;
|
|
42
|
+
exports.throwError = throwError;
|
|
43
|
+
exports.throwWarning = throwWarning;
|
|
44
|
+
exports.toggleSnap = toggleSnap;
|
|
45
|
+
exports.uncreate = uncreate;
|
|
46
|
+
exports.undo = undo;
|
|
47
|
+
exports.unselectAll = unselectAll;
|
|
48
|
+
exports.updateMouseCoord = updateMouseCoord;
|
|
49
|
+
exports.updateZoomScale = updateZoomScale;
|
|
50
|
+
var _constants = require("../constants");
|
|
51
|
+
function setIsHelp(isHelp) {
|
|
52
|
+
return {
|
|
53
|
+
type: _constants.SET_IS_HELP,
|
|
5
54
|
isHelp: isHelp
|
|
6
55
|
};
|
|
7
56
|
}
|
|
8
|
-
|
|
57
|
+
function setIsCabinetDrawing(isCabinetDrawing) {
|
|
9
58
|
return {
|
|
10
|
-
type: SET_IS_CABINET_DRAWING,
|
|
59
|
+
type: _constants.SET_IS_CABINET_DRAWING,
|
|
11
60
|
isCabinetDrawing: isCabinetDrawing
|
|
12
61
|
};
|
|
13
62
|
}
|
|
14
|
-
|
|
63
|
+
function setStateProperties(properties) {
|
|
15
64
|
return {
|
|
16
|
-
type: SET_STATE_PROPERTIES,
|
|
65
|
+
type: _constants.SET_STATE_PROPERTIES,
|
|
17
66
|
properties: properties
|
|
18
67
|
};
|
|
19
68
|
}
|
|
20
|
-
|
|
69
|
+
function loadProject(sceneJSON, categoryData) {
|
|
21
70
|
return {
|
|
22
|
-
type: LOAD_PROJECT,
|
|
71
|
+
type: _constants.LOAD_PROJECT,
|
|
23
72
|
sceneJSON: sceneJSON,
|
|
24
73
|
categoryData: categoryData
|
|
25
74
|
};
|
|
26
75
|
}
|
|
27
|
-
|
|
76
|
+
function newProject() {
|
|
28
77
|
return {
|
|
29
|
-
type: NEW_PROJECT
|
|
78
|
+
type: _constants.NEW_PROJECT
|
|
30
79
|
};
|
|
31
80
|
}
|
|
32
|
-
|
|
81
|
+
function saveProject() {
|
|
33
82
|
return {
|
|
34
|
-
type: SAVE_PROJECT
|
|
83
|
+
type: _constants.SAVE_PROJECT
|
|
35
84
|
};
|
|
36
85
|
}
|
|
37
|
-
|
|
86
|
+
function openCatalog() {
|
|
38
87
|
return {
|
|
39
|
-
type: OPEN_CATALOG
|
|
88
|
+
type: _constants.OPEN_CATALOG
|
|
40
89
|
};
|
|
41
90
|
}
|
|
42
|
-
|
|
91
|
+
function changeCatalogPage(newPage, oldPage) {
|
|
43
92
|
return {
|
|
44
|
-
type: CHANGE_CATALOG_PAGE,
|
|
93
|
+
type: _constants.CHANGE_CATALOG_PAGE,
|
|
45
94
|
newPage: newPage,
|
|
46
95
|
oldPage: oldPage
|
|
47
96
|
};
|
|
48
97
|
}
|
|
49
|
-
|
|
98
|
+
function goBackToCatalogPage(newPage) {
|
|
50
99
|
return {
|
|
51
|
-
type: GO_BACK_TO_CATALOG_PAGE,
|
|
100
|
+
type: _constants.GO_BACK_TO_CATALOG_PAGE,
|
|
52
101
|
newPage: newPage
|
|
53
102
|
};
|
|
54
103
|
}
|
|
55
|
-
|
|
104
|
+
function selectToolEdit() {
|
|
56
105
|
return {
|
|
57
|
-
type: SELECT_TOOL_EDIT
|
|
106
|
+
type: _constants.SELECT_TOOL_EDIT
|
|
58
107
|
};
|
|
59
108
|
}
|
|
60
|
-
|
|
109
|
+
function unselectAll() {
|
|
61
110
|
return {
|
|
62
|
-
type: UNSELECT_ALL
|
|
111
|
+
type: _constants.UNSELECT_ALL
|
|
63
112
|
};
|
|
64
113
|
}
|
|
65
|
-
|
|
114
|
+
function setProperties(properties) {
|
|
66
115
|
return {
|
|
67
|
-
type: SET_PROPERTIES,
|
|
116
|
+
type: _constants.SET_PROPERTIES,
|
|
68
117
|
properties: properties
|
|
69
118
|
};
|
|
70
119
|
}
|
|
71
|
-
|
|
120
|
+
function setItemsAttributes(itemsAttributes) {
|
|
72
121
|
itemsAttributes = itemsAttributes.set('rotation', parseFloat(itemsAttributes.get('rotation')));
|
|
73
122
|
return {
|
|
74
|
-
type: SET_ITEMS_ATTRIBUTES,
|
|
123
|
+
type: _constants.SET_ITEMS_ATTRIBUTES,
|
|
75
124
|
itemsAttributes: itemsAttributes
|
|
76
125
|
};
|
|
77
126
|
}
|
|
78
|
-
|
|
127
|
+
function setLinesAttributes(linesAttributes) {
|
|
79
128
|
var isDirect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
80
129
|
var directData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
81
130
|
linesAttributes = linesAttributes.withMutations(function (attributes) {
|
|
@@ -85,197 +134,197 @@ export function setLinesAttributes(linesAttributes) {
|
|
|
85
134
|
attributes.setIn(['vertexTwo', 'y'], parseFloat(linesAttributes.getIn(['vertexTwo', 'y'])));
|
|
86
135
|
});
|
|
87
136
|
return {
|
|
88
|
-
type: SET_LINES_ATTRIBUTES,
|
|
137
|
+
type: _constants.SET_LINES_ATTRIBUTES,
|
|
89
138
|
linesAttributes: linesAttributes,
|
|
90
139
|
isDirect: isDirect,
|
|
91
140
|
directData: directData
|
|
92
141
|
};
|
|
93
142
|
}
|
|
94
|
-
|
|
143
|
+
function setHolesAttributes(holesAttributes) {
|
|
95
144
|
holesAttributes = holesAttributes.set('offset', parseFloat(holesAttributes.get('offset')));
|
|
96
145
|
return {
|
|
97
|
-
type: SET_HOLES_ATTRIBUTES,
|
|
146
|
+
type: _constants.SET_HOLES_ATTRIBUTES,
|
|
98
147
|
holesAttributes: holesAttributes
|
|
99
148
|
};
|
|
100
149
|
}
|
|
101
|
-
|
|
150
|
+
function remove() {
|
|
102
151
|
return {
|
|
103
|
-
type: REMOVE
|
|
152
|
+
type: _constants.REMOVE
|
|
104
153
|
};
|
|
105
154
|
}
|
|
106
|
-
|
|
155
|
+
function undo() {
|
|
107
156
|
return {
|
|
108
|
-
type: UNDO
|
|
157
|
+
type: _constants.UNDO
|
|
109
158
|
};
|
|
110
159
|
}
|
|
111
|
-
|
|
160
|
+
function redo() {
|
|
112
161
|
return {
|
|
113
|
-
type: REDO
|
|
162
|
+
type: _constants.REDO
|
|
114
163
|
};
|
|
115
164
|
}
|
|
116
|
-
|
|
165
|
+
function uncreate() {
|
|
117
166
|
return {
|
|
118
|
-
type: UNCREATE
|
|
167
|
+
type: _constants.UNCREATE
|
|
119
168
|
};
|
|
120
169
|
}
|
|
121
|
-
|
|
170
|
+
function rename(name) {
|
|
122
171
|
return {
|
|
123
|
-
type: PROJECT_RE_NAME,
|
|
172
|
+
type: _constants.PROJECT_RE_NAME,
|
|
124
173
|
name: name
|
|
125
174
|
};
|
|
126
175
|
}
|
|
127
|
-
|
|
176
|
+
function recreate() {
|
|
128
177
|
return {
|
|
129
|
-
type: RECREATE
|
|
178
|
+
type: _constants.RECREATE
|
|
130
179
|
};
|
|
131
180
|
}
|
|
132
|
-
|
|
181
|
+
function shift2doff() {
|
|
133
182
|
return {
|
|
134
|
-
type: SHIFT2DOFF
|
|
183
|
+
type: _constants.SHIFT2DOFF
|
|
135
184
|
};
|
|
136
185
|
}
|
|
137
|
-
|
|
186
|
+
function shift2don() {
|
|
138
187
|
return {
|
|
139
|
-
type: SHIFT2DON
|
|
188
|
+
type: _constants.SHIFT2DON
|
|
140
189
|
};
|
|
141
190
|
}
|
|
142
|
-
|
|
191
|
+
function rollback() {
|
|
143
192
|
return {
|
|
144
|
-
type: ROLLBACK
|
|
193
|
+
type: _constants.ROLLBACK
|
|
145
194
|
};
|
|
146
195
|
}
|
|
147
|
-
|
|
196
|
+
function openProjectConfigurator() {
|
|
148
197
|
return {
|
|
149
|
-
type: OPEN_PROJECT_CONFIGURATOR
|
|
198
|
+
type: _constants.OPEN_PROJECT_CONFIGURATOR
|
|
150
199
|
};
|
|
151
200
|
}
|
|
152
|
-
|
|
201
|
+
function setProjectProperties(properties) {
|
|
153
202
|
return {
|
|
154
|
-
type: SET_PROJECT_PROPERTIES,
|
|
203
|
+
type: _constants.SET_PROJECT_PROPERTIES,
|
|
155
204
|
properties: properties
|
|
156
205
|
};
|
|
157
206
|
}
|
|
158
|
-
|
|
207
|
+
function setProjectID(id) {
|
|
159
208
|
return {
|
|
160
|
-
type: SET_PROJECT_ID,
|
|
209
|
+
type: _constants.SET_PROJECT_ID,
|
|
161
210
|
id: id
|
|
162
211
|
};
|
|
163
212
|
}
|
|
164
|
-
|
|
213
|
+
function initCatalog(catalog) {
|
|
165
214
|
return {
|
|
166
|
-
type: INIT_CATALOG,
|
|
215
|
+
type: _constants.INIT_CATALOG,
|
|
167
216
|
catalog: catalog
|
|
168
217
|
};
|
|
169
218
|
}
|
|
170
|
-
|
|
219
|
+
function updateMouseCoord() {
|
|
171
220
|
var coords = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
172
221
|
x: x,
|
|
173
222
|
y: y
|
|
174
223
|
};
|
|
175
224
|
return {
|
|
176
|
-
type: UPDATE_MOUSE_COORDS,
|
|
225
|
+
type: _constants.UPDATE_MOUSE_COORDS,
|
|
177
226
|
coords: coords
|
|
178
227
|
};
|
|
179
228
|
}
|
|
180
|
-
|
|
229
|
+
function updateZoomScale(scale) {
|
|
181
230
|
return {
|
|
182
|
-
type: UPDATE_ZOOM_SCALE,
|
|
231
|
+
type: _constants.UPDATE_ZOOM_SCALE,
|
|
183
232
|
scale: scale
|
|
184
233
|
};
|
|
185
234
|
}
|
|
186
|
-
|
|
235
|
+
function toggleSnap(mask) {
|
|
187
236
|
return {
|
|
188
|
-
type: TOGGLE_SNAP,
|
|
237
|
+
type: _constants.TOGGLE_SNAP,
|
|
189
238
|
mask: mask
|
|
190
239
|
};
|
|
191
240
|
}
|
|
192
|
-
|
|
241
|
+
function throwError(error) {
|
|
193
242
|
return {
|
|
194
|
-
type: THROW_ERROR,
|
|
243
|
+
type: _constants.THROW_ERROR,
|
|
195
244
|
error: error
|
|
196
245
|
};
|
|
197
246
|
}
|
|
198
|
-
|
|
247
|
+
function throwWarning(warning) {
|
|
199
248
|
return {
|
|
200
|
-
type: THROW_WARNING,
|
|
249
|
+
type: _constants.THROW_WARNING,
|
|
201
250
|
warning: warning
|
|
202
251
|
};
|
|
203
252
|
}
|
|
204
|
-
|
|
253
|
+
function copyProperties(properties) {
|
|
205
254
|
return {
|
|
206
|
-
type: COPY_PROPERTIES,
|
|
255
|
+
type: _constants.COPY_PROPERTIES,
|
|
207
256
|
properties: properties
|
|
208
257
|
};
|
|
209
258
|
}
|
|
210
|
-
|
|
259
|
+
function pasteProperties() {
|
|
211
260
|
return {
|
|
212
|
-
type: PASTE_PROPERTIES
|
|
261
|
+
type: _constants.PASTE_PROPERTIES
|
|
213
262
|
};
|
|
214
263
|
}
|
|
215
|
-
|
|
264
|
+
function pushLastSelectedCatalogElementToHistory(element) {
|
|
216
265
|
return {
|
|
217
|
-
type: PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,
|
|
266
|
+
type: _constants.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,
|
|
218
267
|
element: element
|
|
219
268
|
};
|
|
220
269
|
}
|
|
221
|
-
|
|
270
|
+
function setAlterateState() {
|
|
222
271
|
return {
|
|
223
|
-
type: ALTERATE_STATE
|
|
272
|
+
type: _constants.ALTERATE_STATE
|
|
224
273
|
};
|
|
225
274
|
}
|
|
226
|
-
|
|
275
|
+
function setMode(mode) {
|
|
227
276
|
return {
|
|
228
|
-
type: SET_MODE,
|
|
277
|
+
type: _constants.SET_MODE,
|
|
229
278
|
mode: mode
|
|
230
279
|
};
|
|
231
280
|
}
|
|
232
|
-
|
|
281
|
+
function addHorizontalGuide(coordinate) {
|
|
233
282
|
return {
|
|
234
|
-
type: ADD_HORIZONTAL_GUIDE,
|
|
283
|
+
type: _constants.ADD_HORIZONTAL_GUIDE,
|
|
235
284
|
coordinate: coordinate
|
|
236
285
|
};
|
|
237
286
|
}
|
|
238
|
-
|
|
287
|
+
function addVerticalGuide(coordinate) {
|
|
239
288
|
return {
|
|
240
|
-
type: ADD_VERTICAL_GUIDE,
|
|
289
|
+
type: _constants.ADD_VERTICAL_GUIDE,
|
|
241
290
|
coordinate: coordinate
|
|
242
291
|
};
|
|
243
292
|
}
|
|
244
|
-
|
|
293
|
+
function addCircularGuide(x, y, radius) {
|
|
245
294
|
return {
|
|
246
|
-
type: ADD_CIRCULAR_GUIDE,
|
|
295
|
+
type: _constants.ADD_CIRCULAR_GUIDE,
|
|
247
296
|
x: x,
|
|
248
297
|
y: y,
|
|
249
298
|
radius: radius
|
|
250
299
|
};
|
|
251
300
|
}
|
|
252
|
-
|
|
301
|
+
function removeHorizontalGuide(guideID) {
|
|
253
302
|
return {
|
|
254
|
-
type: REMOVE_HORIZONTAL_GUIDE,
|
|
303
|
+
type: _constants.REMOVE_HORIZONTAL_GUIDE,
|
|
255
304
|
guideID: guideID
|
|
256
305
|
};
|
|
257
306
|
}
|
|
258
|
-
|
|
307
|
+
function removeVerticalGuide(guideID) {
|
|
259
308
|
return {
|
|
260
|
-
type: REMOVE_VERTICAL_GUIDE,
|
|
309
|
+
type: _constants.REMOVE_VERTICAL_GUIDE,
|
|
261
310
|
guideID: guideID
|
|
262
311
|
};
|
|
263
312
|
}
|
|
264
|
-
|
|
313
|
+
function removeCircularGuide(guideID) {
|
|
265
314
|
return {
|
|
266
|
-
type: REMOVE_CIRCULAR_GUIDE,
|
|
315
|
+
type: _constants.REMOVE_CIRCULAR_GUIDE,
|
|
267
316
|
guideID: guideID
|
|
268
317
|
};
|
|
269
318
|
}
|
|
270
|
-
|
|
319
|
+
function removeDrawingSupport() {
|
|
271
320
|
return {
|
|
272
|
-
type: REMOVE_DRAWING_SUPPORT
|
|
321
|
+
type: _constants.REMOVE_DRAWING_SUPPORT
|
|
273
322
|
};
|
|
274
323
|
}
|
|
275
|
-
|
|
324
|
+
function selectAll() {
|
|
276
325
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
277
326
|
return {
|
|
278
|
-
type: SELECT_ALL,
|
|
327
|
+
type: _constants.SELECT_ALL,
|
|
279
328
|
value: value
|
|
280
329
|
};
|
|
281
330
|
}
|
|
@@ -1,33 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.addLayer = addLayer;
|
|
5
|
+
exports.removeLayer = removeLayer;
|
|
6
|
+
exports.selectLayer = selectLayer;
|
|
7
|
+
exports.setLayerProperties = setLayerProperties;
|
|
8
|
+
exports.updateMovingState = updateMovingState;
|
|
9
|
+
var _constants = require("../constants");
|
|
10
|
+
function selectLayer(layerID) {
|
|
3
11
|
return {
|
|
4
|
-
type: SELECT_LAYER,
|
|
12
|
+
type: _constants.SELECT_LAYER,
|
|
5
13
|
layerID: layerID
|
|
6
14
|
};
|
|
7
15
|
}
|
|
8
|
-
|
|
16
|
+
function addLayer(name, altitude) {
|
|
9
17
|
return {
|
|
10
|
-
type: ADD_LAYER,
|
|
18
|
+
type: _constants.ADD_LAYER,
|
|
11
19
|
name: name,
|
|
12
20
|
altitude: altitude
|
|
13
21
|
};
|
|
14
22
|
}
|
|
15
|
-
|
|
23
|
+
function setLayerProperties(layerID, properties) {
|
|
16
24
|
return {
|
|
17
|
-
type: SET_LAYER_PROPERTIES,
|
|
25
|
+
type: _constants.SET_LAYER_PROPERTIES,
|
|
18
26
|
layerID: layerID,
|
|
19
27
|
properties: properties
|
|
20
28
|
};
|
|
21
29
|
}
|
|
22
|
-
|
|
30
|
+
function removeLayer(layerID) {
|
|
23
31
|
return {
|
|
24
|
-
type: REMOVE_LAYER,
|
|
32
|
+
type: _constants.REMOVE_LAYER,
|
|
25
33
|
layerID: layerID
|
|
26
34
|
};
|
|
27
35
|
}
|
|
28
|
-
|
|
36
|
+
function updateMovingState(showflag) {
|
|
29
37
|
return {
|
|
30
|
-
type: UPDATE_MOVING_STATE,
|
|
38
|
+
type: _constants.UPDATE_MOVING_STATE,
|
|
31
39
|
showflag: showflag
|
|
32
40
|
};
|
|
33
41
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.beginDraggingVertex = beginDraggingVertex;
|
|
5
|
+
exports.endDraggingVertex = endDraggingVertex;
|
|
6
|
+
exports.updateDraggingVertex = updateDraggingVertex;
|
|
7
|
+
var _constants = require("../constants");
|
|
8
|
+
function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
3
9
|
return {
|
|
4
|
-
type: BEGIN_DRAGGING_VERTEX,
|
|
10
|
+
type: _constants.BEGIN_DRAGGING_VERTEX,
|
|
5
11
|
layerID: layerID,
|
|
6
12
|
vertexID: vertexID,
|
|
7
13
|
x: x,
|
|
@@ -9,17 +15,17 @@ export function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
|
9
15
|
snapMask: snapMask
|
|
10
16
|
};
|
|
11
17
|
}
|
|
12
|
-
|
|
18
|
+
function updateDraggingVertex(x, y, snapMask) {
|
|
13
19
|
return {
|
|
14
|
-
type: UPDATE_DRAGGING_VERTEX,
|
|
20
|
+
type: _constants.UPDATE_DRAGGING_VERTEX,
|
|
15
21
|
x: x,
|
|
16
22
|
y: y,
|
|
17
23
|
snapMask: snapMask
|
|
18
24
|
};
|
|
19
25
|
}
|
|
20
|
-
|
|
26
|
+
function endDraggingVertex(x, y, snapMask) {
|
|
21
27
|
return {
|
|
22
|
-
type: END_DRAGGING_VERTEX,
|
|
28
|
+
type: _constants.END_DRAGGING_VERTEX,
|
|
23
29
|
x: x,
|
|
24
30
|
y: y,
|
|
25
31
|
snapMask: snapMask
|
|
@@ -1,58 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.changeBaseCabinetMeasure = changeBaseCabinetMeasure;
|
|
5
|
+
exports.changeWallCabinetMeasure = changeWallCabinetMeasure;
|
|
6
|
+
exports.changeWallLengthMeasure = changeWallLengthMeasure;
|
|
7
|
+
exports.changeWindowDoorMeasure = changeWindowDoorMeasure;
|
|
8
|
+
exports.selectToolPan = selectToolPan;
|
|
9
|
+
exports.selectToolZoomIn = selectToolZoomIn;
|
|
10
|
+
exports.selectToolZoomOut = selectToolZoomOut;
|
|
11
|
+
exports.updateCameraView = updateCameraView;
|
|
12
|
+
exports.updateCeilHeight = updateCeilHeight;
|
|
13
|
+
exports.updateCeilHeightUnit = updateCeilHeightUnit;
|
|
14
|
+
var _constants = require("../constants");
|
|
15
|
+
function updateCeilHeight(value) {
|
|
3
16
|
return {
|
|
4
|
-
type: UPDATE_CEIL_HEIGHT,
|
|
17
|
+
type: _constants.UPDATE_CEIL_HEIGHT,
|
|
5
18
|
value: value
|
|
6
19
|
};
|
|
7
20
|
}
|
|
8
|
-
|
|
21
|
+
function updateCeilHeightUnit(value) {
|
|
9
22
|
return {
|
|
10
|
-
type: UPDATE_CEIL_HEIGHT_UNIT,
|
|
23
|
+
type: _constants.UPDATE_CEIL_HEIGHT_UNIT,
|
|
11
24
|
value: value
|
|
12
25
|
};
|
|
13
26
|
}
|
|
14
|
-
|
|
27
|
+
function updateCameraView(value) {
|
|
15
28
|
return {
|
|
16
|
-
type: UPDATE_2D_CAMERA,
|
|
29
|
+
type: _constants.UPDATE_2D_CAMERA,
|
|
17
30
|
value: value
|
|
18
31
|
};
|
|
19
32
|
}
|
|
20
|
-
|
|
33
|
+
function changeWallLengthMeasure(value) {
|
|
21
34
|
return {
|
|
22
|
-
type: CHANGE_WALL_LENGTH_MEASURE,
|
|
35
|
+
type: _constants.CHANGE_WALL_LENGTH_MEASURE,
|
|
23
36
|
value: value
|
|
24
37
|
};
|
|
25
38
|
}
|
|
26
|
-
|
|
39
|
+
function changeBaseCabinetMeasure(value) {
|
|
27
40
|
return {
|
|
28
|
-
type: CHANGE_BASE_CABINET_MEASURE,
|
|
41
|
+
type: _constants.CHANGE_BASE_CABINET_MEASURE,
|
|
29
42
|
value: value
|
|
30
43
|
};
|
|
31
44
|
}
|
|
32
|
-
|
|
45
|
+
function changeWallCabinetMeasure(value) {
|
|
33
46
|
return {
|
|
34
|
-
type: CHANGE_WALL_CABINET_MEASURE,
|
|
47
|
+
type: _constants.CHANGE_WALL_CABINET_MEASURE,
|
|
35
48
|
value: value
|
|
36
49
|
};
|
|
37
50
|
}
|
|
38
|
-
|
|
51
|
+
function changeWindowDoorMeasure(value) {
|
|
39
52
|
return {
|
|
40
|
-
type: CHANGE_WINDOW_DOOR_MEASURE,
|
|
53
|
+
type: _constants.CHANGE_WINDOW_DOOR_MEASURE,
|
|
41
54
|
value: value
|
|
42
55
|
};
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function selectToolPan() {
|
|
45
58
|
return {
|
|
46
|
-
type: SELECT_TOOL_PAN
|
|
59
|
+
type: _constants.SELECT_TOOL_PAN
|
|
47
60
|
};
|
|
48
61
|
}
|
|
49
|
-
|
|
62
|
+
function selectToolZoomOut() {
|
|
50
63
|
return {
|
|
51
|
-
type: SELECT_TOOL_ZOOM_OUT
|
|
64
|
+
type: _constants.SELECT_TOOL_ZOOM_OUT
|
|
52
65
|
};
|
|
53
66
|
}
|
|
54
|
-
|
|
67
|
+
function selectToolZoomIn() {
|
|
55
68
|
return {
|
|
56
|
-
type: SELECT_TOOL_ZOOM_IN
|
|
69
|
+
type: _constants.SELECT_TOOL_ZOOM_IN
|
|
57
70
|
};
|
|
58
71
|
}
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.selectTool3DFirstPerson = selectTool3DFirstPerson;
|
|
5
|
+
exports.selectTool3DView = selectTool3DView;
|
|
6
|
+
exports.update3DCeilHeight = update3DCeilHeight;
|
|
7
|
+
exports.update3DCeilHeightUnit = update3DCeilHeightUnit;
|
|
8
|
+
var _constants = require("../constants");
|
|
9
|
+
function selectTool3DView() {
|
|
3
10
|
return {
|
|
4
|
-
type: SELECT_TOOL_3D_VIEW
|
|
11
|
+
type: _constants.SELECT_TOOL_3D_VIEW
|
|
5
12
|
};
|
|
6
13
|
}
|
|
7
|
-
|
|
14
|
+
function selectTool3DFirstPerson() {
|
|
8
15
|
return {
|
|
9
|
-
type: SELECT_TOOL_3D_FIRST_PERSON
|
|
16
|
+
type: _constants.SELECT_TOOL_3D_FIRST_PERSON
|
|
10
17
|
};
|
|
11
18
|
}
|
|
12
|
-
|
|
19
|
+
function update3DCeilHeight(value) {
|
|
13
20
|
return {
|
|
14
|
-
type: UPDATE_3D_CEIL_HEIGHT,
|
|
21
|
+
type: _constants.UPDATE_3D_CEIL_HEIGHT,
|
|
15
22
|
value: value
|
|
16
23
|
};
|
|
17
24
|
}
|
|
18
|
-
|
|
25
|
+
function update3DCeilHeightUnit(value) {
|
|
19
26
|
return {
|
|
20
|
-
type: UPDATE_3D_CEIL_HEIGHT_UNIT,
|
|
27
|
+
type: _constants.UPDATE_3D_CEIL_HEIGHT_UNIT,
|
|
21
28
|
value: value
|
|
22
29
|
};
|
|
23
30
|
}
|