kitchen-simulator 1.1.1-test.47 → 1.1.1-test.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/KitchenConfiguratorApp.js +3 -0
- package/package.json +15 -16
- package/es/@history.js +0 -2
- package/es/AppContext.js +0 -3
- package/es/KitchenConfigurator.js +0 -645
- package/es/KitchenConfiguratorApp.js +0 -478
- package/es/actions/area-actions.js +0 -14
- package/es/actions/export.js +0 -23
- package/es/actions/groups-actions.js +0 -89
- package/es/actions/holes-actions.js +0 -119
- package/es/actions/items-actions.js +0 -313
- package/es/actions/lines-actions.js +0 -81
- package/es/actions/project-actions.js +0 -281
- package/es/actions/scene-actions.js +0 -33
- package/es/actions/vertices-actions.js +0 -27
- package/es/actions/viewer2d-actions.js +0 -58
- package/es/actions/viewer3d-actions.js +0 -23
- package/es/catalog/areas/area/planner-element.js +0 -40
- package/es/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- package/es/catalog/areas/area/textures/grass.jpg +0 -0
- package/es/catalog/areas/area/textures/parquet.jpg +0 -0
- package/es/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- package/es/catalog/areas/area/textures/tile1.jpg +0 -0
- package/es/catalog/catalog.js +0 -277
- package/es/catalog/envMap/nx.hdr +0 -0
- package/es/catalog/envMap/ny.hdr +0 -0
- package/es/catalog/envMap/nz.hdr +0 -0
- package/es/catalog/envMap/px.hdr +0 -0
- package/es/catalog/envMap/py.hdr +0 -0
- package/es/catalog/envMap/pz.hdr +0 -0
- package/es/catalog/factories/area-factory-3d.js +0 -181
- package/es/catalog/factories/area-factory.js +0 -81
- package/es/catalog/factories/export.js +0 -7
- package/es/catalog/factories/wall-factory-3d.js +0 -202
- package/es/catalog/factories/wall-factory.js +0 -268
- package/es/catalog/holes/door-closet/planner-element.js +0 -222
- package/es/catalog/holes/door-double/door_double.png +0 -0
- package/es/catalog/holes/door-double/planner-element.js +0 -315
- package/es/catalog/holes/door-exterior/planner-element.js +0 -215
- package/es/catalog/holes/door-interior/planner-element.js +0 -227
- package/es/catalog/holes/door-panic/panicDoor.png +0 -0
- package/es/catalog/holes/door-panic/planner-element.js +0 -503
- package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -463
- package/es/catalog/holes/door-sliding/planner-element.js +0 -225
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -145
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -104
- package/es/catalog/holes/export.js +0 -13
- package/es/catalog/holes/gate/gate.jpg +0 -0
- package/es/catalog/holes/window-clear/planner-element.js +0 -166
- package/es/catalog/holes/window-clear/texture.png +0 -0
- package/es/catalog/holes/window-cross/planner-element.js +0 -165
- package/es/catalog/holes/window-cross/texture.png +0 -0
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -303
- package/es/catalog/holes/window-double-hung/texture.png +0 -0
- package/es/catalog/holes/window-vertical/planner-element.js +0 -276
- package/es/catalog/holes/window-vertical/texture.png +0 -0
- package/es/catalog/lines/wall/planner-element.js +0 -70
- package/es/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster.jpg +0 -0
- package/es/catalog/lines/wall/wall.png +0 -0
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -28
- package/es/catalog/molding/molding-dcm/texture.png +0 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -28
- package/es/catalog/molding/molding-fbm/texture.png +0 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -28
- package/es/catalog/molding/molding-lrm/texture.png +0 -0
- package/es/catalog/properties/export.js +0 -21
- package/es/catalog/properties/property-checkbox.js +0 -116
- package/es/catalog/properties/property-color.js +0 -39
- package/es/catalog/properties/property-enum.js +0 -97
- package/es/catalog/properties/property-hidden.js +0 -19
- package/es/catalog/properties/property-lenght-measure.js +0 -101
- package/es/catalog/properties/property-length-measure.js +0 -134
- package/es/catalog/properties/property-length-measure_hole.js +0 -101
- package/es/catalog/properties/property-number.js +0 -48
- package/es/catalog/properties/property-read-only.js +0 -26
- package/es/catalog/properties/property-string.js +0 -48
- package/es/catalog/properties/property-toggle.js +0 -39
- package/es/catalog/properties/shared-property-style.js +0 -14
- package/es/catalog/utils/FuseUtils.js +0 -82
- package/es/catalog/utils/exporter.js +0 -148
- package/es/catalog/utils/geom-utils.js +0 -189
- package/es/catalog/utils/item-loader.js +0 -1521
- package/es/catalog/utils/load-obj.js +0 -91
- package/es/catalog/utils/mtl-loader.js +0 -358
- package/es/catalog/utils/obj-loader.js +0 -477
- package/es/class/FuseUtils.js +0 -82
- package/es/class/area.js +0 -145
- package/es/class/export.js +0 -24
- package/es/class/group.js +0 -440
- package/es/class/guide.js +0 -62
- package/es/class/hole.js +0 -929
- package/es/class/item.js +0 -1883
- package/es/class/layer.js +0 -667
- package/es/class/line.js +0 -1180
- package/es/class/project.js +0 -793
- package/es/class/vertex.js +0 -202
- package/es/components/content.js +0 -107
- package/es/components/disclaimer/disclaimer.js +0 -97
- package/es/components/export.js +0 -9
- package/es/components/style/button.js +0 -113
- package/es/components/style/cancel-button.js +0 -22
- package/es/components/style/content-container.js +0 -33
- package/es/components/style/content-title.js +0 -29
- package/es/components/style/delete-button.js +0 -25
- package/es/components/style/export.js +0 -31
- package/es/components/style/form-block.js +0 -24
- package/es/components/style/form-color-input.js +0 -27
- package/es/components/style/form-label.js +0 -26
- package/es/components/style/form-number-input.js +0 -213
- package/es/components/style/form-number-input_2.js +0 -206
- package/es/components/style/form-select.js +0 -68
- package/es/components/style/form-slider.js +0 -61
- package/es/components/style/form-submit-button.js +0 -26
- package/es/components/style/form-text-input.js +0 -95
- package/es/components/viewer2d/area.js +0 -81
- package/es/components/viewer2d/export.js +0 -31
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -37
- package/es/components/viewer2d/grids/grid-streak.js +0 -37
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -37
- package/es/components/viewer2d/grids/grids.js +0 -35
- package/es/components/viewer2d/group.js +0 -53
- package/es/components/viewer2d/item.js +0 -513
- package/es/components/viewer2d/layer.js +0 -164
- package/es/components/viewer2d/line.js +0 -882
- package/es/components/viewer2d/ruler.js +0 -100
- package/es/components/viewer2d/rulerDist.js +0 -146
- package/es/components/viewer2d/rulerX.js +0 -151
- package/es/components/viewer2d/rulerY.js +0 -153
- package/es/components/viewer2d/scene.js +0 -140
- package/es/components/viewer2d/snap.js +0 -74
- package/es/components/viewer2d/state.js +0 -78
- package/es/components/viewer2d/utils.js +0 -198
- package/es/components/viewer2d/vertex.js +0 -65
- package/es/components/viewer2d/viewer2d.js +0 -1398
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2592
- package/es/components/viewer3d/dcm.js +0 -401
- package/es/components/viewer3d/fbm.js +0 -414
- package/es/components/viewer3d/front3D.js +0 -66
- package/es/components/viewer3d/grid-creator.js +0 -25
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer3d/grids/grid-streak.js +0 -27
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer3d/libs/first-person-controls.js +0 -67
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1281
- package/es/components/viewer3d/libs/mtl-loader.js +0 -357
- package/es/components/viewer3d/libs/obj-loader.js +0 -462
- package/es/components/viewer3d/libs/orbit-controls.js +0 -699
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -46
- package/es/components/viewer3d/lrm.js +0 -305
- package/es/components/viewer3d/model.js +0 -708
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -115
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -61
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -495
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -227
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -60
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -18
- package/es/components/viewer3d/scene-creator.js +0 -3608
- package/es/components/viewer3d/three-memory-cleaner.js +0 -51
- package/es/components/viewer3d/viewer3d-first-person.js +0 -315
- package/es/components/viewer3d/viewer3d.js +0 -2527
- package/es/constants.js +0 -636
- package/es/index.js +0 -16
- package/es/models.js +0 -510
- package/es/plugins/SVGLoader.js +0 -1412
- package/es/plugins/autosave.js +0 -33
- package/es/plugins/console-debugger.js +0 -37
- package/es/plugins/export.js +0 -9
- package/es/plugins/keyboard.js +0 -101
- package/es/reducers/areas-reducer.js +0 -12
- package/es/reducers/export.js +0 -25
- package/es/reducers/groups-reducer.js +0 -38
- package/es/reducers/holes-reducer.js +0 -62
- package/es/reducers/items-reducer.js +0 -140
- package/es/reducers/lines-reducer.js +0 -45
- package/es/reducers/project-reducer.js +0 -129
- package/es/reducers/reducer.js +0 -19
- package/es/reducers/scene-reducer.js +0 -28
- package/es/reducers/user-reducer.js +0 -40
- package/es/reducers/vertices-reducer.js +0 -19
- package/es/reducers/viewer2d-reducer.js +0 -75
- package/es/reducers/viewer3d-reducer.js +0 -56
- package/es/shared-style.js +0 -66
- package/es/styles/export.js +0 -5
- package/es/styles/tabs.css +0 -40
- package/es/translator/en.js +0 -104
- package/es/translator/it.js +0 -79
- package/es/translator/ru.js +0 -79
- package/es/translator/translator.js +0 -84
- package/es/utils/browser.js +0 -33
- package/es/utils/email-validator.js +0 -4
- package/es/utils/export.js +0 -25
- package/es/utils/geometry.js +0 -2420
- package/es/utils/get-edges-of-subgraphs.js +0 -27
- package/es/utils/graph-cycles.js +0 -237
- package/es/utils/graph-inner-cycles.js +0 -46
- package/es/utils/graph.js +0 -150
- package/es/utils/helper.js +0 -268
- package/es/utils/history.js +0 -29
- package/es/utils/id-broker.js +0 -19
- package/es/utils/logger.js +0 -8
- package/es/utils/math.js +0 -50
- package/es/utils/molding.js +0 -871
- package/es/utils/name-generator.js +0 -18
- package/es/utils/objects-utils.js +0 -50
- package/es/utils/phone-validator.js +0 -4
- package/es/utils/process-black-list.js +0 -18
- package/es/utils/react-if.js +0 -18
- package/es/utils/snap-scene.js +0 -99
- package/es/utils/snap.js +0 -237
- package/es/utils/summarizeCart.js +0 -24
- package/es/utils/threeCSG.es6.js +0 -498
- package/es/version.js +0 -2
- package/lib/catalog/properties/property-string.js +0 -55
- package/lib/catalog/properties/property-toggle.js +0 -46
- package/lib/catalog/properties/shared-property-style.js +0 -20
- package/lib/catalog/utils/FuseUtils.js +0 -88
- package/lib/catalog/utils/exporter.js +0 -155
- package/lib/catalog/utils/geom-utils.js +0 -205
- package/lib/catalog/utils/item-loader.js +0 -1533
- package/lib/catalog/utils/load-obj.js +0 -99
- package/lib/catalog/utils/mtl-loader.js +0 -363
- package/lib/catalog/utils/obj-loader.js +0 -482
- package/lib/class/FuseUtils.js +0 -88
- package/lib/class/area.js +0 -150
- package/lib/class/export.js +0 -96
- package/lib/class/group.js +0 -445
- package/lib/class/guide.js +0 -67
- package/lib/class/hole.js +0 -934
- package/lib/class/item.js +0 -1889
- package/lib/class/layer.js +0 -672
- package/lib/class/line.js +0 -1186
- package/lib/class/project.js +0 -799
- package/lib/class/vertex.js +0 -207
- package/lib/components/content.js +0 -116
- package/lib/components/disclaimer/disclaimer.js +0 -105
- package/lib/components/export.js +0 -33
- package/lib/components/style/button.js +0 -120
- package/lib/components/style/cancel-button.js +0 -29
- package/lib/components/style/content-container.js +0 -40
- package/lib/components/style/content-title.js +0 -37
- package/lib/components/style/delete-button.js +0 -34
- package/lib/components/style/export.js +0 -121
- package/lib/components/style/form-block.js +0 -31
- package/lib/components/style/form-color-input.js +0 -34
- package/lib/components/style/form-label.js +0 -33
- package/lib/components/style/form-number-input.js +0 -220
- package/lib/components/style/form-number-input_2.js +0 -213
- package/lib/components/style/form-select.js +0 -75
- package/lib/components/style/form-slider.js +0 -68
- package/lib/components/style/form-submit-button.js +0 -35
- package/lib/components/style/form-text-input.js +0 -101
- package/lib/components/viewer2d/area.js +0 -88
- package/lib/components/viewer2d/export.js +0 -121
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -44
- package/lib/components/viewer2d/grids/grid-streak.js +0 -44
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -44
- package/lib/components/viewer2d/grids/grids.js +0 -44
- package/lib/components/viewer2d/group.js +0 -62
- package/lib/components/viewer2d/item.js +0 -521
- package/lib/components/viewer2d/layer.js +0 -171
- package/lib/components/viewer2d/line.js +0 -892
- package/lib/components/viewer2d/ruler.js +0 -107
- package/lib/components/viewer2d/rulerDist.js +0 -153
- package/lib/components/viewer2d/rulerX.js +0 -158
- package/lib/components/viewer2d/rulerY.js +0 -160
- package/lib/components/viewer2d/scene.js +0 -147
- package/lib/components/viewer2d/snap.js +0 -83
- package/lib/components/viewer2d/state.js +0 -87
- package/lib/components/viewer2d/utils.js +0 -210
- package/lib/components/viewer2d/vertex.js +0 -74
- package/lib/components/viewer2d/viewer2d.js +0 -1405
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2597
- package/lib/components/viewer3d/dcm.js +0 -407
- package/lib/components/viewer3d/fbm.js +0 -420
- package/lib/components/viewer3d/front3D.js +0 -75
- package/lib/components/viewer3d/grid-creator.js +0 -34
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -44
- package/lib/components/viewer3d/grids/grid-streak.js +0 -35
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -44
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -74
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1287
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -363
- package/lib/components/viewer3d/libs/obj-loader.js +0 -468
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -705
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -52
- package/lib/components/viewer3d/lrm.js +0 -311
- package/lib/components/viewer3d/model.js +0 -714
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -122
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -68
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -502
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -234
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -68
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -25
- package/lib/components/viewer3d/scene-creator.js +0 -3642
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -60
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -320
- package/lib/components/viewer3d/viewer3d.js +0 -2532
- package/lib/constants.js +0 -645
- package/lib/index.js +0 -96
- package/lib/models.js +0 -517
- package/lib/plugins/SVGLoader.js +0 -1417
- package/lib/plugins/autosave.js +0 -39
- package/lib/plugins/console-debugger.js +0 -44
- package/lib/plugins/export.js +0 -33
- package/lib/plugins/keyboard.js +0 -107
- package/lib/reducers/areas-reducer.js +0 -18
- package/lib/reducers/export.js +0 -97
- package/lib/reducers/groups-reducer.js +0 -44
- package/lib/reducers/holes-reducer.js +0 -68
- package/lib/reducers/items-reducer.js +0 -146
- package/lib/reducers/lines-reducer.js +0 -51
- package/lib/reducers/project-reducer.js +0 -135
- package/lib/reducers/reducer.js +0 -26
- package/lib/reducers/scene-reducer.js +0 -34
- package/lib/reducers/user-reducer.js +0 -46
- package/lib/reducers/vertices-reducer.js +0 -25
- package/lib/reducers/viewer2d-reducer.js +0 -82
- package/lib/reducers/viewer3d-reducer.js +0 -63
- package/lib/shared-style.js +0 -72
- package/lib/styles/export.js +0 -13
- package/lib/translator/en.js +0 -110
- package/lib/translator/it.js +0 -85
- package/lib/translator/ru.js +0 -85
- package/lib/translator/translator.js +0 -90
- package/lib/utils/browser.js +0 -40
- package/lib/utils/email-validator.js +0 -10
- package/lib/utils/export.js +0 -56
- package/lib/utils/geometry.js +0 -2516
- package/lib/utils/get-edges-of-subgraphs.js +0 -34
- package/lib/utils/graph-cycles.js +0 -240
- package/lib/utils/graph-inner-cycles.js +0 -54
- package/lib/utils/graph.js +0 -157
- package/lib/utils/helper.js +0 -291
- package/lib/utils/history.js +0 -36
- package/lib/utils/id-broker.js +0 -26
- package/lib/utils/logger.js +0 -14
- package/lib/utils/math.js +0 -57
- package/lib/utils/molding.js +0 -895
- package/lib/utils/name-generator.js +0 -23
- package/lib/utils/objects-utils.js +0 -60
- package/lib/utils/phone-validator.js +0 -10
- package/lib/utils/process-black-list.js +0 -24
- package/lib/utils/react-if.js +0 -24
- package/lib/utils/snap-scene.js +0 -105
- package/lib/utils/snap.js +0 -249
- package/lib/utils/summarizeCart.js +0 -30
- package/lib/utils/threeCSG.es6.js +0 -503
- package/lib/version.js +0 -8
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _export = require("../utils/export");
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _export2 = require("../class/export");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
switch (action.type) {
|
|
12
|
-
case _constants.NEW_PROJECT:
|
|
13
|
-
return _export2.Project.newProject(state).updatedState;
|
|
14
|
-
case _constants.LOAD_PROJECT:
|
|
15
|
-
return _export2.Project.loadProject(state, action.sceneJSON, action.categoryData).updatedState;
|
|
16
|
-
case _constants.OPEN_CATALOG:
|
|
17
|
-
return _export2.Project.openCatalog(state).updatedState;
|
|
18
|
-
case _constants.CHANGE_CATALOG_PAGE:
|
|
19
|
-
return _export2.Project.changeCatalogPage(state, action.oldPage, action.newPage).updatedState;
|
|
20
|
-
case _constants.GO_BACK_TO_CATALOG_PAGE:
|
|
21
|
-
return _export2.Project.goBackToCatalogPage(state, action.newPage).updatedState;
|
|
22
|
-
case _constants.SELECT_TOOL_EDIT:
|
|
23
|
-
return _export2.Project.setMode(state, _constants.MODE_IDLE).updatedState;
|
|
24
|
-
case _constants.UNSELECT_ALL:
|
|
25
|
-
return _export2.Project.unselectAll(state).updatedState;
|
|
26
|
-
case _constants.SELECT_ALL:
|
|
27
|
-
return _export2.Project.selectAll(state, action.value).updatedState;
|
|
28
|
-
case _constants.SET_PROPERTIES:
|
|
29
|
-
state = state.merge({
|
|
30
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
31
|
-
});
|
|
32
|
-
return _export2.Project.setProperties(state, state.getIn(['scene', 'selectedLayer']), action.properties).updatedState;
|
|
33
|
-
case _constants.SET_ITEMS_ATTRIBUTES:
|
|
34
|
-
state = state.merge({
|
|
35
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
36
|
-
});
|
|
37
|
-
return _export2.Project.setItemsAttributes(state, action.itemsAttributes).updatedState;
|
|
38
|
-
case _constants.SET_LINES_ATTRIBUTES:
|
|
39
|
-
if (state.mode != _constants.MODE_DRAWING_LINE) state = state.merge({
|
|
40
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
41
|
-
});
|
|
42
|
-
return _export2.Project.setLinesAttributes(state, action.linesAttributes, action.isDirect, action.directData).updatedState;
|
|
43
|
-
case _constants.SET_HOLES_ATTRIBUTES:
|
|
44
|
-
state = state.merge({
|
|
45
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
46
|
-
});
|
|
47
|
-
return _export2.Project.setHolesAttributes(state, action.holesAttributes).updatedState;
|
|
48
|
-
case _constants.REMOVE:
|
|
49
|
-
state = state.merge({
|
|
50
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
51
|
-
});
|
|
52
|
-
return _export2.Project.remove(state).updatedState;
|
|
53
|
-
case _constants.UNDO:
|
|
54
|
-
return _export2.Project.undo(state).updatedState;
|
|
55
|
-
case _constants.REDO:
|
|
56
|
-
return _export2.Project.redo(state).updatedState;
|
|
57
|
-
case _constants.UNCREATE:
|
|
58
|
-
return _export2.Project.uncreate(state).updatedState;
|
|
59
|
-
case _constants.PROJECT_RE_NAME:
|
|
60
|
-
return _export2.Project.rename(state, action.name).updatedState;
|
|
61
|
-
case _constants.RECREATE:
|
|
62
|
-
return _export2.Project.recreate(state).updatedState;
|
|
63
|
-
case _constants.SHIFT2DOFF:
|
|
64
|
-
return _export2.Project.shift2doff(state).updatedState;
|
|
65
|
-
case _constants.SHIFT2DON:
|
|
66
|
-
return _export2.Project.shift2don(state).updatedState;
|
|
67
|
-
case _constants.ROLLBACK:
|
|
68
|
-
return _export2.Project.rollback(state).updatedState;
|
|
69
|
-
case _constants.SET_PROJECT_PROPERTIES:
|
|
70
|
-
state = state.merge({
|
|
71
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
72
|
-
});
|
|
73
|
-
return _export2.Project.setProjectProperties(state, action.properties).updatedState;
|
|
74
|
-
case _constants.SET_PROJECT_ID:
|
|
75
|
-
state = state.merge({
|
|
76
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
77
|
-
});
|
|
78
|
-
return _export2.Project.setProjectId(state, action.id).updatedState;
|
|
79
|
-
case _constants.OPEN_PROJECT_CONFIGURATOR:
|
|
80
|
-
state = state.merge({
|
|
81
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
82
|
-
});
|
|
83
|
-
return _export2.Project.openProjectConfigurator(state).updatedState;
|
|
84
|
-
case _constants.INIT_CATALOG:
|
|
85
|
-
return _export2.Project.initCatalog(state, action.catalog).updatedState;
|
|
86
|
-
case _constants.UPDATE_MOUSE_COORDS:
|
|
87
|
-
return _export2.Project.updateMouseCoord(state, action.coords).updatedState;
|
|
88
|
-
case _constants.UPDATE_ZOOM_SCALE:
|
|
89
|
-
return _export2.Project.updateZoomScale(state, action.scale).updatedState;
|
|
90
|
-
case _constants.TOGGLE_SNAP:
|
|
91
|
-
return _export2.Project.toggleSnap(state, action.mask).updatedState;
|
|
92
|
-
case _constants.THROW_ERROR:
|
|
93
|
-
return _export2.Project.throwError(state, action.error).updatedState;
|
|
94
|
-
case _constants.THROW_WARNING:
|
|
95
|
-
return _export2.Project.throwWarning(state, action.warning).updatedState;
|
|
96
|
-
case _constants.COPY_PROPERTIES:
|
|
97
|
-
return _export2.Project.copyProperties(state, action.properties).updatedState;
|
|
98
|
-
case _constants.PASTE_PROPERTIES:
|
|
99
|
-
state = state.merge({
|
|
100
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
101
|
-
});
|
|
102
|
-
return _export2.Project.pasteProperties(state).updatedState;
|
|
103
|
-
case _constants.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:
|
|
104
|
-
return _export2.Project.pushLastSelectedCatalogElementToHistory(state, action.element).updatedState;
|
|
105
|
-
case _constants.ALTERATE_STATE:
|
|
106
|
-
return _export2.Project.setAlterate(state).updatedState;
|
|
107
|
-
case _constants.SET_MODE:
|
|
108
|
-
return _export2.Project.setMode(state, action.mode).updatedState;
|
|
109
|
-
case _constants.ADD_HORIZONTAL_GUIDE:
|
|
110
|
-
state = state.merge({
|
|
111
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
112
|
-
});
|
|
113
|
-
return _export2.Project.addHorizontalGuide(state, action.coordinate).updatedState;
|
|
114
|
-
case _constants.ADD_VERTICAL_GUIDE:
|
|
115
|
-
return _export2.Project.addVerticalGuide(state, action.coordinate).updatedState;
|
|
116
|
-
case _constants.ADD_CIRCULAR_GUIDE:
|
|
117
|
-
return _export2.Project.addCircularGuide(state, action.x, action.y, action.radius).updatedState;
|
|
118
|
-
case _constants.REMOVE_HORIZONTAL_GUIDE:
|
|
119
|
-
return _export2.Project.removeHorizontalGuide(state, action.guideID).updatedState;
|
|
120
|
-
case _constants.REMOVE_VERTICAL_GUIDE:
|
|
121
|
-
return _export2.Project.removeVerticalGuide(state, action.guideID).updatedState;
|
|
122
|
-
case _constants.REMOVE_CIRCULAR_GUIDE:
|
|
123
|
-
return _export2.Project.removeCircularGuide(state, action.guideID).updatedState;
|
|
124
|
-
case _constants.REMOVE_DRAWING_SUPPORT:
|
|
125
|
-
return _export2.Project.removeDrawingSupport(state).updatedState;
|
|
126
|
-
case _constants.SET_STATE_PROPERTIES:
|
|
127
|
-
return _export2.Project.setStateProperties(state, action.properties).updatedState;
|
|
128
|
-
case _constants.SET_IS_HELP:
|
|
129
|
-
return _export2.Project.setIsHelp(state, action.isHelp).updatedState;
|
|
130
|
-
case _constants.SET_IS_CABINET_DRAWING:
|
|
131
|
-
return _export2.Project.setIsCabinetDrawing(state, action.isCabinetDrawing).updatedState;
|
|
132
|
-
default:
|
|
133
|
-
return state;
|
|
134
|
-
}
|
|
135
|
-
}
|
package/lib/reducers/reducer.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = appReducer;
|
|
7
|
-
exports.initialState = void 0;
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _export = require("./export");
|
|
10
|
-
var _models = require("../models");
|
|
11
|
-
var initialState = exports.initialState = new _models.State();
|
|
12
|
-
function appReducer(state, action) {
|
|
13
|
-
// /////////
|
|
14
|
-
if (_constants.PROJECT_ACTIONS[action.type]) return _export.KitchenConfiguratorProjectReducer.apply(void 0, arguments);
|
|
15
|
-
if (_constants.VIEWER2D_ACTIONS[action.type]) return _export.KitchenConfiguratorViewer2dReducer.apply(void 0, arguments);
|
|
16
|
-
if (_constants.VIEWER3D_ACTIONS[action.type]) return _export.KitchenConfiguratorViewer3dReducer.apply(void 0, arguments);
|
|
17
|
-
if (_constants.ITEMS_ACTIONS[action.type]) return _export.KitchenConfiguratorItemsReducer.apply(void 0, arguments);
|
|
18
|
-
if (_constants.HOLE_ACTIONS[action.type]) return _export.KitchenConfiguratorHolesReducer.apply(void 0, arguments);
|
|
19
|
-
if (_constants.LINE_ACTIONS[action.type]) return _export.KitchenConfiguratorLinesReducer.apply(void 0, arguments);
|
|
20
|
-
if (_constants.AREA_ACTIONS[action.type]) return _export.KitchenConfiguratorAreasReducer.apply(void 0, arguments);
|
|
21
|
-
if (_constants.GROUP_ACTIONS[action.type]) return _export.KitchenConfiguratorGroupsReducer.apply(void 0, arguments);
|
|
22
|
-
if (_constants.SCENE_ACTIONS[action.type]) return _export.KitchenConfiguratorSceneReducer.apply(void 0, arguments);
|
|
23
|
-
if (_constants.VERTEX_ACTIONS[action.type]) return _export.KitchenConfiguratorVerticesReducer.apply(void 0, arguments);
|
|
24
|
-
if (_constants.USER_ACTIONS[action.type]) return _export.KitchenConfiguratorUserReducer.apply(void 0, arguments);
|
|
25
|
-
return state || initialState;
|
|
26
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _export = require("../class/export");
|
|
8
|
-
var _export2 = require("../utils/export");
|
|
9
|
-
var _constants = require("../constants");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
var saveHistory = function saveHistory() {
|
|
12
|
-
return state = state.merge({
|
|
13
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
switch (action.type) {
|
|
17
|
-
case _constants.ADD_LAYER:
|
|
18
|
-
saveHistory();
|
|
19
|
-
return _export.Layer.create(state, action.name, action.altitude).updatedState;
|
|
20
|
-
case _constants.SELECT_LAYER:
|
|
21
|
-
saveHistory();
|
|
22
|
-
return _export.Layer.select(state, action.layerID).updatedState;
|
|
23
|
-
case _constants.SET_LAYER_PROPERTIES:
|
|
24
|
-
saveHistory();
|
|
25
|
-
return _export.Layer.setProperties(state, action.layerID, action.properties).updatedState;
|
|
26
|
-
case _constants.REMOVE_LAYER:
|
|
27
|
-
saveHistory();
|
|
28
|
-
return _export.Layer.remove(state, action.layerID).updatedState;
|
|
29
|
-
case _constants.UPDATE_MOVING_STATE:
|
|
30
|
-
return _export.Layer.updateMovingState(state, action.showflag).updatedState;
|
|
31
|
-
default:
|
|
32
|
-
return state;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
var initialState = {
|
|
9
|
-
success: false,
|
|
10
|
-
error: {
|
|
11
|
-
username: null,
|
|
12
|
-
password: null
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
function _default(state, action) {
|
|
16
|
-
switch (action.type) {
|
|
17
|
-
case _constants.LOGIN_SUCCESS:
|
|
18
|
-
{
|
|
19
|
-
return state.merge({
|
|
20
|
-
login: true,
|
|
21
|
-
userId: action.userid
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
case _constants.LOGIN_ERROR:
|
|
25
|
-
{
|
|
26
|
-
return state.merge({
|
|
27
|
-
login: false,
|
|
28
|
-
userId: 0
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
case _constants.LOGOUT:
|
|
32
|
-
{
|
|
33
|
-
state = state.merge({
|
|
34
|
-
scene: state.scene.merge({
|
|
35
|
-
title: '',
|
|
36
|
-
currentProjectID: null
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
return state;
|
|
40
|
-
}
|
|
41
|
-
default:
|
|
42
|
-
{
|
|
43
|
-
return state;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
var _export = require("../utils/export");
|
|
9
|
-
var _export2 = require("../class/export");
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
switch (action.type) {
|
|
12
|
-
case _constants.BEGIN_DRAGGING_VERTEX:
|
|
13
|
-
return _export2.Vertex.beginDraggingVertex(state, action.layerID, action.vertexID, action.x, action.y).updatedState;
|
|
14
|
-
case _constants.UPDATE_DRAGGING_VERTEX:
|
|
15
|
-
return _export2.Vertex.updateDraggingVertex(state, action.x, action.y).updatedState;
|
|
16
|
-
case _constants.END_DRAGGING_VERTEX:
|
|
17
|
-
// Code that saving the scene history (26 ~ 28)
|
|
18
|
-
state = state.merge({
|
|
19
|
-
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
20
|
-
});
|
|
21
|
-
return _export2.Vertex.endDraggingVertex(state, action.x, action.y).updatedState;
|
|
22
|
-
default:
|
|
23
|
-
return state;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
var _convertUnits = _interopRequireDefault(require("convert-units"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function _default(state, action) {
|
|
11
|
-
var _state = state,
|
|
12
|
-
scene = _state.scene;
|
|
13
|
-
switch (action.type) {
|
|
14
|
-
case _constants.UPDATE_CEIL_HEIGHT_UNIT:
|
|
15
|
-
{
|
|
16
|
-
var _state2 = state,
|
|
17
|
-
_scene = _state2.scene;
|
|
18
|
-
var selectedLayer = _scene.selectedLayer;
|
|
19
|
-
var layer = _scene.layers.get(selectedLayer);
|
|
20
|
-
var newLayer = layer.merge({
|
|
21
|
-
unit: action.value
|
|
22
|
-
});
|
|
23
|
-
state = state.mergeIn(['scene', 'layers', selectedLayer], newLayer);
|
|
24
|
-
return state;
|
|
25
|
-
}
|
|
26
|
-
case _constants.UPDATE_CEIL_HEIGHT:
|
|
27
|
-
{
|
|
28
|
-
var _selectedLayer = scene.selectedLayer;
|
|
29
|
-
var _layer = scene.layers.get(_selectedLayer);
|
|
30
|
-
var _newLayer = _layer.merge({
|
|
31
|
-
ceilHeight: action.value
|
|
32
|
-
});
|
|
33
|
-
state = state.mergeIn(['scene', 'layers', _selectedLayer], _newLayer);
|
|
34
|
-
var items = state.scene.layers.get(state.scene.selectedLayer).items;
|
|
35
|
-
var newItems = items.map(function (item) {
|
|
36
|
-
if (item.type.includes('Light')) {
|
|
37
|
-
var height = item.properties.getIn(['height', '_length']);
|
|
38
|
-
var heightUnit = item.properties.getIn(['height', '_unit']);
|
|
39
|
-
var newAltitude = action.value - (0, _convertUnits["default"])(height).from(heightUnit).to('in');
|
|
40
|
-
item = item.setIn(['properties', 'altitude', '_length'], (0, _convertUnits["default"])(newAltitude).from('in').to(_layer.unit));
|
|
41
|
-
}
|
|
42
|
-
return item;
|
|
43
|
-
});
|
|
44
|
-
state = state.mergeIn(['scene', 'layers', _selectedLayer, 'items'], newItems);
|
|
45
|
-
return state;
|
|
46
|
-
}
|
|
47
|
-
case _constants.UPDATE_2D_CAMERA:
|
|
48
|
-
return state.merge({
|
|
49
|
-
viewer2D: action.value
|
|
50
|
-
});
|
|
51
|
-
case _constants.CHANGE_WALL_LENGTH_MEASURE:
|
|
52
|
-
return state.merge({
|
|
53
|
-
scene: scene.merge({
|
|
54
|
-
showWallLengthMeasure: action.value
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
case _constants.CHANGE_BASE_CABINET_MEASURE:
|
|
58
|
-
return state.merge({
|
|
59
|
-
scene: scene.merge({
|
|
60
|
-
showBaseCabinetMeasure: action.value
|
|
61
|
-
})
|
|
62
|
-
});
|
|
63
|
-
case _constants.CHANGE_WALL_CABINET_MEASURE:
|
|
64
|
-
return state.merge({
|
|
65
|
-
scene: scene.merge({
|
|
66
|
-
showWallCabinetMeasure: action.value
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
case _constants.CHANGE_WINDOW_DOOR_MEASURE:
|
|
70
|
-
return state.merge({
|
|
71
|
-
scene: scene.merge({
|
|
72
|
-
showWindowDoorMeasure: action.value
|
|
73
|
-
})
|
|
74
|
-
});
|
|
75
|
-
case _constants.SELECT_TOOL_PAN:
|
|
76
|
-
return state.set('mode', _constants.MODE_2D_PAN);
|
|
77
|
-
case _constants.SELECT_TOOL_ZOOM_IN:
|
|
78
|
-
return state.set('mode', _constants.MODE_2D_ZOOM_IN);
|
|
79
|
-
case _constants.SELECT_TOOL_ZOOM_OUT:
|
|
80
|
-
return state.set('mode', _constants.MODE_2D_ZOOM_OUT);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = _default;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
var _export = require("../class/export");
|
|
9
|
-
var _export2 = require("../utils/export");
|
|
10
|
-
var _convertUnits = _interopRequireDefault(require("convert-units"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
function _default(state, action) {
|
|
13
|
-
state = state.merge({
|
|
14
|
-
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
15
|
-
});
|
|
16
|
-
switch (action.type) {
|
|
17
|
-
case _constants.UPDATE_3D_CEIL_HEIGHT_UNIT:
|
|
18
|
-
{
|
|
19
|
-
var _state = state,
|
|
20
|
-
scene = _state.scene;
|
|
21
|
-
var selectedLayer = scene.selectedLayer;
|
|
22
|
-
var layer = scene.layers.get(selectedLayer);
|
|
23
|
-
var newLayer = layer.merge({
|
|
24
|
-
unit: action.value
|
|
25
|
-
});
|
|
26
|
-
state = state.mergeIn(['scene', 'layers', selectedLayer], newLayer);
|
|
27
|
-
return state;
|
|
28
|
-
}
|
|
29
|
-
case _constants.UPDATE_3D_CEIL_HEIGHT:
|
|
30
|
-
{
|
|
31
|
-
var _state2 = state,
|
|
32
|
-
_scene = _state2.scene;
|
|
33
|
-
var _selectedLayer = _scene.selectedLayer;
|
|
34
|
-
var _layer = _scene.layers.get(_selectedLayer);
|
|
35
|
-
var _newLayer = _layer.merge({
|
|
36
|
-
ceilHeight: action.value
|
|
37
|
-
});
|
|
38
|
-
state = state.mergeIn(['scene', 'layers', _selectedLayer], _newLayer);
|
|
39
|
-
var items = state.scene.layers.get(state.scene.selectedLayer).items;
|
|
40
|
-
var newItems = items.map(function (item) {
|
|
41
|
-
if (item.type.includes('Light')) {
|
|
42
|
-
var height = item.properties.getIn(['height', '_length']);
|
|
43
|
-
var heightUnit = item.properties.getIn(['height', '_unit']);
|
|
44
|
-
var newAltitude = action.value - (0, _convertUnits["default"])(height).from(heightUnit).to('in');
|
|
45
|
-
item = item.setIn(['properties', 'altitude', '_length'], (0, _convertUnits["default"])(newAltitude).from('in').to(_layer.unit));
|
|
46
|
-
}
|
|
47
|
-
return item;
|
|
48
|
-
});
|
|
49
|
-
state = state.mergeIn(['scene', 'layers', _selectedLayer, 'items'], newItems);
|
|
50
|
-
return state;
|
|
51
|
-
}
|
|
52
|
-
case _constants.SELECT_TOOL_3D_VIEW:
|
|
53
|
-
state = _export.Project.rollback(state).updatedState;
|
|
54
|
-
state = _export.Project.setMode(state, _constants.MODE_3D_VIEW).updatedState;
|
|
55
|
-
return state;
|
|
56
|
-
case _constants.SELECT_TOOL_3D_FIRST_PERSON:
|
|
57
|
-
state = _export.Project.rollback(state).updatedState;
|
|
58
|
-
state = _export.Project.setMode(state, _constants.MODE_3D_FIRST_PERSON).updatedState;
|
|
59
|
-
return state;
|
|
60
|
-
default:
|
|
61
|
-
return state;
|
|
62
|
-
}
|
|
63
|
-
}
|
package/lib/shared-style.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TOOLBAR_COLOR = exports.SECONDARY_COLOR = exports.PRIMARY_COLOR = exports.MESH_SELECTED = exports.MATERIAL_COLORS = exports.LINE_MESH_COLOR = exports.LINE_MESH = exports.INTERIOR_LINE = exports.COLORS = exports.AREA_MESH_COLOR = void 0;
|
|
7
|
-
// COLORS
|
|
8
|
-
var COLORS = exports.COLORS = {
|
|
9
|
-
white: '#FFF',
|
|
10
|
-
lightgrey: '#d3d3d3',
|
|
11
|
-
black: '#000'
|
|
12
|
-
};
|
|
13
|
-
var MATERIAL_COLORS = exports.MATERIAL_COLORS = {
|
|
14
|
-
500: {
|
|
15
|
-
amber: '#FFC107',
|
|
16
|
-
blue_grey: '#607D8B',
|
|
17
|
-
blue: '#2196F3',
|
|
18
|
-
brown: '#795548',
|
|
19
|
-
cyan: '#00BCD4',
|
|
20
|
-
deep_orange: '#FF5722',
|
|
21
|
-
deep_purple: '#673AB7',
|
|
22
|
-
green: '#4CAF50',
|
|
23
|
-
grey: '#9E9E9E',
|
|
24
|
-
indigo: '#3F51B5',
|
|
25
|
-
light_blue: '#03A9F4',
|
|
26
|
-
light_green: '#8BC34A',
|
|
27
|
-
lime: '#CDDC39',
|
|
28
|
-
orange: '#FF9800',
|
|
29
|
-
pink: '#E91E63',
|
|
30
|
-
purple: '#9C27B0',
|
|
31
|
-
red: '#F44336',
|
|
32
|
-
teal: '#009688',
|
|
33
|
-
yellow: '#FFEB3B'
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var PRIMARY_COLOR = exports.PRIMARY_COLOR = {
|
|
37
|
-
main: '#DEDEDE',
|
|
38
|
-
alt: '#DEDEDE',
|
|
39
|
-
icon: '#A2A2A2',
|
|
40
|
-
border: '1px solid #555',
|
|
41
|
-
text_main: COLORS.black,
|
|
42
|
-
text_alt: '#232323',
|
|
43
|
-
input: '#55595C'
|
|
44
|
-
};
|
|
45
|
-
var SECONDARY_COLOR = exports.SECONDARY_COLOR = {
|
|
46
|
-
main: '#1CA6FC',
|
|
47
|
-
alt: '#005FAF',
|
|
48
|
-
icon: '#1CA6FC',
|
|
49
|
-
border: '1px solid #FFF'
|
|
50
|
-
};
|
|
51
|
-
var TOOLBAR_COLOR = exports.TOOLBAR_COLOR = {
|
|
52
|
-
normal: 'rgb(211,230,228)',
|
|
53
|
-
focus: 'rgba(71, 71, 71,0.9)',
|
|
54
|
-
active: 'rgba(17, 131, 187, 0.8)'
|
|
55
|
-
// active: 'rgba(34,144,107, 0.8)',
|
|
56
|
-
};
|
|
57
|
-
var MESH_SELECTED = exports.MESH_SELECTED = 'rgba(71, 71, 71,0.9)';
|
|
58
|
-
var AREA_MESH_COLOR = exports.AREA_MESH_COLOR = {
|
|
59
|
-
selected: 'rgb(234,234,255)',
|
|
60
|
-
unselected: 'rgb(221,221,255)'
|
|
61
|
-
};
|
|
62
|
-
var INTERIOR_LINE = exports.INTERIOR_LINE = {
|
|
63
|
-
unselected: ' #0a0a10',
|
|
64
|
-
selected: '#4C12A1'
|
|
65
|
-
};
|
|
66
|
-
var LINE_MESH_COLOR = exports.LINE_MESH_COLOR = {
|
|
67
|
-
selected: '#4C12A1',
|
|
68
|
-
unselected: 'rgb(135,145,171)'
|
|
69
|
-
};
|
|
70
|
-
var LINE_MESH = exports.LINE_MESH = {
|
|
71
|
-
selected: '#4C12A1'
|
|
72
|
-
};
|
package/lib/styles/export.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.TabsStyle = void 0;
|
|
8
|
-
var TabsStyle = _interopRequireWildcard(require("./tabs.css"));
|
|
9
|
-
exports.TabsStyle = TabsStyle;
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
-
var _default = exports["default"] = {
|
|
12
|
-
TabsStyle: TabsStyle
|
|
13
|
-
};
|
package/lib/translator/en.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _default = exports["default"] = {
|
|
8
|
-
'+ Add Horizontal Giude': '+ Add Horizontal Giude',
|
|
9
|
-
'+ Add Vertical Giude': '+ Add Vertical Giude',
|
|
10
|
-
'2D View': '2D View',
|
|
11
|
-
'3D First Person': '3D First Person',
|
|
12
|
-
'3D View': '3D View',
|
|
13
|
-
'Floor Plan': 'Floor Plan',
|
|
14
|
-
Cabinets: 'Cabinets',
|
|
15
|
-
'Door Style': 'Door Style',
|
|
16
|
-
Appliances: 'Appliances',
|
|
17
|
-
Styles: 'Styles',
|
|
18
|
-
'Room Shape': 'Room Shape',
|
|
19
|
-
Settings: 'Settings',
|
|
20
|
-
altitude: 'altitude',
|
|
21
|
-
Altitude: 'Altitude',
|
|
22
|
-
Areas: 'Areas',
|
|
23
|
-
Cancel: 'Cancel',
|
|
24
|
-
Catalog: 'Catalog',
|
|
25
|
-
'Chain selected Elements to Group': 'Chain selected Elements to Group',
|
|
26
|
-
Circular: 'Circular',
|
|
27
|
-
color: 'color',
|
|
28
|
-
'Configure layer': 'Configure layer',
|
|
29
|
-
'Configure project': 'Configure project',
|
|
30
|
-
Confirm: 'Confirm',
|
|
31
|
-
Copy: 'Copy',
|
|
32
|
-
'Delete group and all Elements': 'Delete group and all Elements',
|
|
33
|
-
'Delete layer': 'Delete layer',
|
|
34
|
-
Delete: 'Delete',
|
|
35
|
-
'Elements on layer {0}': 'Elements on layer {0}',
|
|
36
|
-
Elements: 'Elements',
|
|
37
|
-
'Get Screenshot': 'Get Screenshot',
|
|
38
|
-
'Group [{0}]': 'Group [{0}]',
|
|
39
|
-
"Group's Barycenter": "Group's Barycenter",
|
|
40
|
-
"Group's Elements": "Group's Elements",
|
|
41
|
-
Groups: 'Groups',
|
|
42
|
-
Guides: 'Guides',
|
|
43
|
-
height: 'height',
|
|
44
|
-
Holes: 'Holes',
|
|
45
|
-
Horizontal: 'Horizontal',
|
|
46
|
-
Items: 'Items',
|
|
47
|
-
'Last Selected': 'Last Selected',
|
|
48
|
-
'Layer config': 'Layer config',
|
|
49
|
-
Layer: 'Layer',
|
|
50
|
-
Layers: 'Layers',
|
|
51
|
-
Length: 'Length',
|
|
52
|
-
Lines: 'Lines',
|
|
53
|
-
'Load project': 'Load project',
|
|
54
|
-
'Mouse X Coordinate': 'Mouse X Coordinate',
|
|
55
|
-
'Mouse Y Coordinate': 'Mouse Y Coordinate',
|
|
56
|
-
Name: 'Name',
|
|
57
|
-
'New Empty Group': 'New Empty Group',
|
|
58
|
-
'New Group from selected': 'New Group from selected',
|
|
59
|
-
'New layer': 'New layer',
|
|
60
|
-
'New project': 'New project',
|
|
61
|
-
opacity: 'opacity',
|
|
62
|
-
'Open catalog': 'Open catalog',
|
|
63
|
-
order: 'order',
|
|
64
|
-
Pan: 'Pan',
|
|
65
|
-
Paste: 'Paste',
|
|
66
|
-
'Project config': 'Project config',
|
|
67
|
-
'Properties: [{0}] {1}': 'Properties: [{0}] {1}',
|
|
68
|
-
Prototype: 'Prototype',
|
|
69
|
-
Reset: 'Reset',
|
|
70
|
-
Rotation: 'Rotation',
|
|
71
|
-
'Save project': 'Save project',
|
|
72
|
-
Save: 'Save',
|
|
73
|
-
'Scene Zoom Level': 'Scene Zoom Level',
|
|
74
|
-
'Search Project': 'Search Project',
|
|
75
|
-
'Snap to Grid': 'Snap to Grid',
|
|
76
|
-
'Snap to Guide': 'Snap to Guide',
|
|
77
|
-
'Snap to Line': 'Snap to Line',
|
|
78
|
-
'Snap to Point': 'Snap to Point',
|
|
79
|
-
'Snap to Segment': 'Snap to Segment',
|
|
80
|
-
texture: 'texture',
|
|
81
|
-
thickness: 'thickness',
|
|
82
|
-
'Toggle Group Visibility': 'Toggle Group Visibility',
|
|
83
|
-
"Un-chain all Group's Elements and remove Group": "Un-chain all Group's Elements and remove Group",
|
|
84
|
-
'Un-chain Element from Group': 'Un-chain Element from Group',
|
|
85
|
-
'Undo (CTRL-Z)': 'Undo (CTRL-Z)',
|
|
86
|
-
Unselect: 'Unselect',
|
|
87
|
-
Vertical: 'Vertical',
|
|
88
|
-
width: 'width',
|
|
89
|
-
'Would you want to start a new Project?': 'Would you want to start a new Project?',
|
|
90
|
-
'Zoom in': 'Zoom in',
|
|
91
|
-
'Zoom out': 'Zoom out',
|
|
92
|
-
'Overall Style': 'Overall Style',
|
|
93
|
-
'Make Floor Plan': 'Make Floor Plan',
|
|
94
|
-
'Add Cabinets': 'Add Cabinets',
|
|
95
|
-
'Add Appliances': 'Add Appliances',
|
|
96
|
-
'Finishing Touch': 'Finishing Touch',
|
|
97
|
-
'Select Door Style': 'Select Door Style',
|
|
98
|
-
'Review & Quote': 'Review & Quote',
|
|
99
|
-
'Select All': 'Select All',
|
|
100
|
-
Edit: 'Edit',
|
|
101
|
-
UNDO: 'UNDO',
|
|
102
|
-
REDO: 'REDO',
|
|
103
|
-
'Take Picture': 'Take Picture',
|
|
104
|
-
Duplicate: 'Duplicate',
|
|
105
|
-
Remove: 'Remove',
|
|
106
|
-
'New Project': 'New Project',
|
|
107
|
-
Width: 'Width',
|
|
108
|
-
Depth: 'Depth',
|
|
109
|
-
Height: 'Height'
|
|
110
|
-
};
|