kitchen-simulator 1.1.1-test.64 → 1.1.1-test.65
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 +79 -70
- package/es/KitchenConfiguratorApp.js +107 -98
- 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 +9 -2
- package/es/catalog/catalog.js +21 -15
- package/es/catalog/factories/area-factory-3d.js +31 -22
- package/es/catalog/factories/area-factory.js +20 -11
- 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 +9 -2
- 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 +31 -24
- package/es/catalog/properties/property-color.js +23 -16
- package/es/catalog/properties/property-enum.js +31 -24
- package/es/catalog/properties/property-hidden.js +16 -9
- package/es/catalog/properties/property-lenght-measure.js +45 -38
- package/es/catalog/properties/property-length-measure.js +43 -36
- package/es/catalog/properties/property-length-measure_hole.js +45 -38
- 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 -8
- package/es/catalog/utils/exporter.js +15 -8
- package/es/catalog/utils/geom-utils.js +29 -13
- package/es/catalog/utils/item-loader.js +97 -84
- package/es/catalog/utils/load-obj.js +28 -20
- package/es/catalog/utils/mtl-loader.js +8 -3
- package/es/catalog/utils/obj-loader.js +8 -3
- package/es/class/FuseUtils.js +15 -8
- package/es/class/area.js +28 -22
- package/es/class/export.js +95 -23
- package/es/class/group.js +59 -53
- package/es/class/guide.js +21 -15
- package/es/class/hole.js +89 -83
- package/es/class/item.js +147 -141
- package/es/class/layer.js +65 -59
- package/es/class/line.js +143 -135
- package/es/class/project.js +98 -90
- package/es/class/vertex.js +35 -29
- package/es/components/content.js +28 -19
- package/es/components/disclaimer/disclaimer.js +18 -10
- package/es/components/export.js +32 -8
- package/es/components/style/button.js +31 -23
- package/es/components/style/cancel-button.js +14 -7
- package/es/components/style/content-container.js +16 -9
- package/es/components/style/content-title.js +20 -11
- package/es/components/style/delete-button.js +17 -8
- package/es/components/style/export.js +120 -30
- package/es/components/style/form-block.js +15 -8
- package/es/components/style/form-color-input.js +14 -7
- package/es/components/style/form-label.js +15 -8
- package/es/components/style/form-number-input.js +49 -41
- package/es/components/style/form-number-input_2.js +44 -36
- package/es/components/style/form-select.js +24 -17
- package/es/components/style/form-slider.js +17 -10
- package/es/components/style/form-submit-button.js +17 -8
- package/es/components/style/form-text-input.js +34 -26
- 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 -10
- package/es/components/viewer2d/grids/grid-streak.js +17 -10
- package/es/components/viewer2d/grids/grid-vertical-streak.js +17 -10
- package/es/components/viewer2d/grids/grids.js +19 -10
- package/es/components/viewer2d/group.js +24 -15
- package/es/components/viewer2d/item.js +70 -61
- package/es/components/viewer2d/layer.js +30 -23
- package/es/components/viewer2d/line.js +111 -101
- package/es/components/viewer2d/ruler.js +29 -22
- package/es/components/viewer2d/rulerDist.js +28 -21
- package/es/components/viewer2d/rulerX.js +47 -39
- package/es/components/viewer2d/rulerY.js +45 -37
- package/es/components/viewer2d/scene.js +38 -30
- package/es/components/viewer2d/snap.js +22 -13
- package/es/components/viewer2d/state.js +27 -18
- package/es/components/viewer2d/utils.js +37 -24
- package/es/components/viewer2d/vertex.js +17 -8
- package/es/components/viewer2d/viewer2d.js +163 -153
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +23 -17
- package/es/components/viewer3d/dcm.js +7 -1
- package/es/components/viewer3d/fbm.js +7 -1
- package/es/components/viewer3d/front3D.js +21 -12
- 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 +7 -1
- package/es/components/viewer3d/libs/obj-loader.js +7 -1
- package/es/components/viewer3d/libs/orbit-controls.js +8 -2
- package/es/components/viewer3d/libs/pointer-lock-controls.js +8 -2
- 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 -39
- package/es/components/viewer3d/ruler-utils/scene3D.js +17 -9
- package/es/components/viewer3d/ruler-utils/state3D.js +11 -4
- package/es/components/viewer3d/scene-creator.js +226 -191
- package/es/components/viewer3d/three-memory-cleaner.js +12 -3
- package/es/components/viewer3d/viewer3d-first-person.js +46 -40
- package/es/components/viewer3d/viewer3d.js +202 -196
- package/es/constants.js +358 -349
- package/es/index.js +15 -7
- package/es/models.js +184 -177
- package/es/plugins/SVGLoader.js +53 -48
- package/es/plugins/autosave.js +9 -3
- package/es/plugins/console-debugger.js +12 -5
- 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 -106
- 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 -5
- 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 -13
- package/es/utils/browser.js +9 -2
- package/es/utils/convert-units-lite.js +7 -1
- package/es/utils/email-validator.js +7 -1
- package/es/utils/export.js +46 -15
- package/es/utils/geometry.js +278 -181
- package/es/utils/get-edges-of-subgraphs.js +9 -2
- package/es/utils/graph-cycles.js +11 -8
- package/es/utils/graph-inner-cycles.js +18 -10
- package/es/utils/graph.js +17 -9
- package/es/utils/helper.js +63 -39
- package/es/utils/history.js +15 -8
- package/es/utils/id-broker.js +15 -8
- package/es/utils/logger.js +7 -1
- package/es/utils/math.js +12 -5
- package/es/utils/molding.js +144 -119
- package/es/utils/name-generator.js +13 -7
- package/es/utils/objects-utils.js +19 -7
- package/es/utils/phone-validator.js +7 -1
- package/es/utils/process-black-list.js +10 -3
- package/es/utils/react-if.js +12 -6
- package/es/utils/snap-scene.js +34 -27
- package/es/utils/snap.js +59 -45
- package/es/utils/summarizeCart.js +7 -1
- package/es/utils/threeCSG.es6.js +22 -13
- package/es/version.js +7 -1
- package/package.json +1 -1
|
@@ -1,128 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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) {
|
|
5
11
|
switch (action.type) {
|
|
6
|
-
case NEW_PROJECT:
|
|
7
|
-
return Project.newProject(state).updatedState;
|
|
8
|
-
case LOAD_PROJECT:
|
|
9
|
-
return Project.loadProject(state, action.sceneJSON, action.categoryData).updatedState;
|
|
10
|
-
case OPEN_CATALOG:
|
|
11
|
-
return Project.openCatalog(state).updatedState;
|
|
12
|
-
case CHANGE_CATALOG_PAGE:
|
|
13
|
-
return Project.changeCatalogPage(state, action.oldPage, action.newPage).updatedState;
|
|
14
|
-
case GO_BACK_TO_CATALOG_PAGE:
|
|
15
|
-
return Project.goBackToCatalogPage(state, action.newPage).updatedState;
|
|
16
|
-
case SELECT_TOOL_EDIT:
|
|
17
|
-
return Project.setMode(state, MODE_IDLE).updatedState;
|
|
18
|
-
case UNSELECT_ALL:
|
|
19
|
-
return Project.unselectAll(state).updatedState;
|
|
20
|
-
case SELECT_ALL:
|
|
21
|
-
return Project.selectAll(state, action.value).updatedState;
|
|
22
|
-
case SET_PROPERTIES:
|
|
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:
|
|
23
29
|
state = state.merge({
|
|
24
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
30
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
25
31
|
});
|
|
26
|
-
return Project.setProperties(state, state.getIn(['scene', 'selectedLayer']), action.properties).updatedState;
|
|
27
|
-
case SET_ITEMS_ATTRIBUTES:
|
|
32
|
+
return _export2.Project.setProperties(state, state.getIn(['scene', 'selectedLayer']), action.properties).updatedState;
|
|
33
|
+
case _constants.SET_ITEMS_ATTRIBUTES:
|
|
28
34
|
state = state.merge({
|
|
29
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
35
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
30
36
|
});
|
|
31
|
-
return Project.setItemsAttributes(state, action.itemsAttributes).updatedState;
|
|
32
|
-
case SET_LINES_ATTRIBUTES:
|
|
33
|
-
if (state.mode != MODE_DRAWING_LINE) state = state.merge({
|
|
34
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
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)
|
|
35
41
|
});
|
|
36
|
-
return Project.setLinesAttributes(state, action.linesAttributes, action.isDirect, action.directData).updatedState;
|
|
37
|
-
case SET_HOLES_ATTRIBUTES:
|
|
42
|
+
return _export2.Project.setLinesAttributes(state, action.linesAttributes, action.isDirect, action.directData).updatedState;
|
|
43
|
+
case _constants.SET_HOLES_ATTRIBUTES:
|
|
38
44
|
state = state.merge({
|
|
39
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
45
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
40
46
|
});
|
|
41
|
-
return Project.setHolesAttributes(state, action.holesAttributes).updatedState;
|
|
42
|
-
case REMOVE:
|
|
47
|
+
return _export2.Project.setHolesAttributes(state, action.holesAttributes).updatedState;
|
|
48
|
+
case _constants.REMOVE:
|
|
43
49
|
state = state.merge({
|
|
44
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
50
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
45
51
|
});
|
|
46
|
-
return Project.remove(state).updatedState;
|
|
47
|
-
case UNDO:
|
|
48
|
-
return Project.undo(state).updatedState;
|
|
49
|
-
case REDO:
|
|
50
|
-
return Project.redo(state).updatedState;
|
|
51
|
-
case UNCREATE:
|
|
52
|
-
return Project.uncreate(state).updatedState;
|
|
53
|
-
case PROJECT_RE_NAME:
|
|
54
|
-
return Project.rename(state, action.name).updatedState;
|
|
55
|
-
case RECREATE:
|
|
56
|
-
return Project.recreate(state).updatedState;
|
|
57
|
-
case SHIFT2DOFF:
|
|
58
|
-
return Project.shift2doff(state).updatedState;
|
|
59
|
-
case SHIFT2DON:
|
|
60
|
-
return Project.shift2don(state).updatedState;
|
|
61
|
-
case ROLLBACK:
|
|
62
|
-
return Project.rollback(state).updatedState;
|
|
63
|
-
case SET_PROJECT_PROPERTIES:
|
|
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:
|
|
64
70
|
state = state.merge({
|
|
65
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
71
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
66
72
|
});
|
|
67
|
-
return Project.setProjectProperties(state, action.properties).updatedState;
|
|
68
|
-
case SET_PROJECT_ID:
|
|
73
|
+
return _export2.Project.setProjectProperties(state, action.properties).updatedState;
|
|
74
|
+
case _constants.SET_PROJECT_ID:
|
|
69
75
|
state = state.merge({
|
|
70
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
76
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
71
77
|
});
|
|
72
|
-
return Project.setProjectId(state, action.id).updatedState;
|
|
73
|
-
case OPEN_PROJECT_CONFIGURATOR:
|
|
78
|
+
return _export2.Project.setProjectId(state, action.id).updatedState;
|
|
79
|
+
case _constants.OPEN_PROJECT_CONFIGURATOR:
|
|
74
80
|
state = state.merge({
|
|
75
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
81
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
76
82
|
});
|
|
77
|
-
return Project.openProjectConfigurator(state).updatedState;
|
|
78
|
-
case INIT_CATALOG:
|
|
79
|
-
return Project.initCatalog(state, action.catalog).updatedState;
|
|
80
|
-
case UPDATE_MOUSE_COORDS:
|
|
81
|
-
return Project.updateMouseCoord(state, action.coords).updatedState;
|
|
82
|
-
case UPDATE_ZOOM_SCALE:
|
|
83
|
-
return Project.updateZoomScale(state, action.scale).updatedState;
|
|
84
|
-
case TOGGLE_SNAP:
|
|
85
|
-
return Project.toggleSnap(state, action.mask).updatedState;
|
|
86
|
-
case THROW_ERROR:
|
|
87
|
-
return Project.throwError(state, action.error).updatedState;
|
|
88
|
-
case THROW_WARNING:
|
|
89
|
-
return Project.throwWarning(state, action.warning).updatedState;
|
|
90
|
-
case COPY_PROPERTIES:
|
|
91
|
-
return Project.copyProperties(state, action.properties).updatedState;
|
|
92
|
-
case PASTE_PROPERTIES:
|
|
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:
|
|
93
99
|
state = state.merge({
|
|
94
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
100
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
95
101
|
});
|
|
96
|
-
return Project.pasteProperties(state).updatedState;
|
|
97
|
-
case PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY:
|
|
98
|
-
return Project.pushLastSelectedCatalogElementToHistory(state, action.element).updatedState;
|
|
99
|
-
case ALTERATE_STATE:
|
|
100
|
-
return Project.setAlterate(state).updatedState;
|
|
101
|
-
case SET_MODE:
|
|
102
|
-
return Project.setMode(state, action.mode).updatedState;
|
|
103
|
-
case ADD_HORIZONTAL_GUIDE:
|
|
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:
|
|
104
110
|
state = state.merge({
|
|
105
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
111
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
106
112
|
});
|
|
107
|
-
return Project.addHorizontalGuide(state, action.coordinate).updatedState;
|
|
108
|
-
case ADD_VERTICAL_GUIDE:
|
|
109
|
-
return Project.addVerticalGuide(state, action.coordinate).updatedState;
|
|
110
|
-
case ADD_CIRCULAR_GUIDE:
|
|
111
|
-
return Project.addCircularGuide(state, action.x, action.y, action.radius).updatedState;
|
|
112
|
-
case REMOVE_HORIZONTAL_GUIDE:
|
|
113
|
-
return Project.removeHorizontalGuide(state, action.guideID).updatedState;
|
|
114
|
-
case REMOVE_VERTICAL_GUIDE:
|
|
115
|
-
return Project.removeVerticalGuide(state, action.guideID).updatedState;
|
|
116
|
-
case REMOVE_CIRCULAR_GUIDE:
|
|
117
|
-
return Project.removeCircularGuide(state, action.guideID).updatedState;
|
|
118
|
-
case REMOVE_DRAWING_SUPPORT:
|
|
119
|
-
return Project.removeDrawingSupport(state).updatedState;
|
|
120
|
-
case SET_STATE_PROPERTIES:
|
|
121
|
-
return Project.setStateProperties(state, action.properties).updatedState;
|
|
122
|
-
case SET_IS_HELP:
|
|
123
|
-
return Project.setIsHelp(state, action.isHelp).updatedState;
|
|
124
|
-
case SET_IS_CABINET_DRAWING:
|
|
125
|
-
return Project.setIsCabinetDrawing(state, action.isCabinetDrawing).updatedState;
|
|
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;
|
|
126
132
|
default:
|
|
127
133
|
return state;
|
|
128
134
|
}
|
package/es/reducers/reducer.js
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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) {
|
|
6
13
|
// /////////
|
|
7
|
-
if (PROJECT_ACTIONS[action.type]) return KitchenConfiguratorProjectReducer.apply(void 0, arguments);
|
|
8
|
-
if (VIEWER2D_ACTIONS[action.type]) return KitchenConfiguratorViewer2dReducer.apply(void 0, arguments);
|
|
9
|
-
if (VIEWER3D_ACTIONS[action.type]) return KitchenConfiguratorViewer3dReducer.apply(void 0, arguments);
|
|
10
|
-
if (ITEMS_ACTIONS[action.type]) return KitchenConfiguratorItemsReducer.apply(void 0, arguments);
|
|
11
|
-
if (HOLE_ACTIONS[action.type]) return KitchenConfiguratorHolesReducer.apply(void 0, arguments);
|
|
12
|
-
if (LINE_ACTIONS[action.type]) return KitchenConfiguratorLinesReducer.apply(void 0, arguments);
|
|
13
|
-
if (AREA_ACTIONS[action.type]) return KitchenConfiguratorAreasReducer.apply(void 0, arguments);
|
|
14
|
-
if (GROUP_ACTIONS[action.type]) return KitchenConfiguratorGroupsReducer.apply(void 0, arguments);
|
|
15
|
-
if (SCENE_ACTIONS[action.type]) return KitchenConfiguratorSceneReducer.apply(void 0, arguments);
|
|
16
|
-
if (VERTEX_ACTIONS[action.type]) return KitchenConfiguratorVerticesReducer.apply(void 0, arguments);
|
|
17
|
-
if (USER_ACTIONS[action.type]) return KitchenConfiguratorUserReducer.apply(void 0, arguments);
|
|
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);
|
|
18
25
|
return state || initialState;
|
|
19
26
|
}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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) {
|
|
5
11
|
var saveHistory = function saveHistory() {
|
|
6
12
|
return state = state.merge({
|
|
7
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
13
|
+
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
8
14
|
});
|
|
9
15
|
};
|
|
10
16
|
switch (action.type) {
|
|
11
|
-
case ADD_LAYER:
|
|
17
|
+
case _constants.ADD_LAYER:
|
|
12
18
|
saveHistory();
|
|
13
|
-
return Layer.create(state, action.name, action.altitude).updatedState;
|
|
14
|
-
case SELECT_LAYER:
|
|
19
|
+
return _export.Layer.create(state, action.name, action.altitude).updatedState;
|
|
20
|
+
case _constants.SELECT_LAYER:
|
|
15
21
|
saveHistory();
|
|
16
|
-
return Layer.select(state, action.layerID).updatedState;
|
|
17
|
-
case SET_LAYER_PROPERTIES:
|
|
22
|
+
return _export.Layer.select(state, action.layerID).updatedState;
|
|
23
|
+
case _constants.SET_LAYER_PROPERTIES:
|
|
18
24
|
saveHistory();
|
|
19
|
-
return Layer.setProperties(state, action.layerID, action.properties).updatedState;
|
|
20
|
-
case REMOVE_LAYER:
|
|
25
|
+
return _export.Layer.setProperties(state, action.layerID, action.properties).updatedState;
|
|
26
|
+
case _constants.REMOVE_LAYER:
|
|
21
27
|
saveHistory();
|
|
22
|
-
return Layer.remove(state, action.layerID).updatedState;
|
|
23
|
-
case UPDATE_MOVING_STATE:
|
|
24
|
-
return Layer.updateMovingState(state, action.showflag).updatedState;
|
|
28
|
+
return _export.Layer.remove(state, action.layerID).updatedState;
|
|
29
|
+
case _constants.UPDATE_MOVING_STATE:
|
|
30
|
+
return _export.Layer.updateMovingState(state, action.showflag).updatedState;
|
|
25
31
|
default:
|
|
26
32
|
return state;
|
|
27
33
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = _default;
|
|
7
|
+
var _constants = require("../constants");
|
|
2
8
|
var initialState = {
|
|
3
9
|
success: false,
|
|
4
10
|
error: {
|
|
@@ -6,23 +12,23 @@ var initialState = {
|
|
|
6
12
|
password: null
|
|
7
13
|
}
|
|
8
14
|
};
|
|
9
|
-
|
|
15
|
+
function _default(state, action) {
|
|
10
16
|
switch (action.type) {
|
|
11
|
-
case LOGIN_SUCCESS:
|
|
17
|
+
case _constants.LOGIN_SUCCESS:
|
|
12
18
|
{
|
|
13
19
|
return state.merge({
|
|
14
20
|
login: true,
|
|
15
21
|
userId: action.userid
|
|
16
22
|
});
|
|
17
23
|
}
|
|
18
|
-
case LOGIN_ERROR:
|
|
24
|
+
case _constants.LOGIN_ERROR:
|
|
19
25
|
{
|
|
20
26
|
return state.merge({
|
|
21
27
|
login: false,
|
|
22
28
|
userId: 0
|
|
23
29
|
});
|
|
24
30
|
}
|
|
25
|
-
case LOGOUT:
|
|
31
|
+
case _constants.LOGOUT:
|
|
26
32
|
{
|
|
27
33
|
state = state.merge({
|
|
28
34
|
scene: state.scene.merge({
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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) {
|
|
5
11
|
switch (action.type) {
|
|
6
|
-
case BEGIN_DRAGGING_VERTEX:
|
|
7
|
-
return Vertex.beginDraggingVertex(state, action.layerID, action.vertexID, action.x, action.y).updatedState;
|
|
8
|
-
case UPDATE_DRAGGING_VERTEX:
|
|
9
|
-
return Vertex.updateDraggingVertex(state, action.x, action.y).updatedState;
|
|
10
|
-
case END_DRAGGING_VERTEX:
|
|
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:
|
|
11
17
|
// Code that saving the scene history (26 ~ 28)
|
|
12
18
|
state = state.merge({
|
|
13
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
19
|
+
sceneHistory: _export.history.historyPush(state.sceneHistory, state.scene)
|
|
14
20
|
});
|
|
15
|
-
return Vertex.endDraggingVertex(state, action.x, action.y).updatedState;
|
|
21
|
+
return _export2.Vertex.endDraggingVertex(state, action.x, action.y).updatedState;
|
|
16
22
|
default:
|
|
17
23
|
return state;
|
|
18
24
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = _default;
|
|
7
|
+
var _constants = require("../constants");
|
|
8
|
+
var _convertUnitsLite = require("../utils/convert-units-lite");
|
|
9
|
+
function _default(state, action) {
|
|
4
10
|
var _state = state,
|
|
5
11
|
scene = _state.scene;
|
|
6
12
|
switch (action.type) {
|
|
7
|
-
case UPDATE_CEIL_HEIGHT_UNIT:
|
|
13
|
+
case _constants.UPDATE_CEIL_HEIGHT_UNIT:
|
|
8
14
|
{
|
|
9
15
|
var _state2 = state,
|
|
10
16
|
_scene = _state2.scene;
|
|
@@ -16,7 +22,7 @@ export default function (state, action) {
|
|
|
16
22
|
state = state.mergeIn(['scene', 'layers', selectedLayer], newLayer);
|
|
17
23
|
return state;
|
|
18
24
|
}
|
|
19
|
-
case UPDATE_CEIL_HEIGHT:
|
|
25
|
+
case _constants.UPDATE_CEIL_HEIGHT:
|
|
20
26
|
{
|
|
21
27
|
var _selectedLayer = scene.selectedLayer;
|
|
22
28
|
var _layer = scene.layers.get(_selectedLayer);
|
|
@@ -29,47 +35,47 @@ export default function (state, action) {
|
|
|
29
35
|
if (item.type.includes('Light')) {
|
|
30
36
|
var height = item.properties.getIn(['height', '_length']);
|
|
31
37
|
var heightUnit = item.properties.getIn(['height', '_unit']);
|
|
32
|
-
var newAltitude = action.value - convert(height).from(heightUnit).to('in');
|
|
33
|
-
item = item.setIn(['properties', 'altitude', '_length'], convert(newAltitude).from('in').to(_layer.unit));
|
|
38
|
+
var newAltitude = action.value - (0, _convertUnitsLite.convert)(height).from(heightUnit).to('in');
|
|
39
|
+
item = item.setIn(['properties', 'altitude', '_length'], (0, _convertUnitsLite.convert)(newAltitude).from('in').to(_layer.unit));
|
|
34
40
|
}
|
|
35
41
|
return item;
|
|
36
42
|
});
|
|
37
43
|
state = state.mergeIn(['scene', 'layers', _selectedLayer, 'items'], newItems);
|
|
38
44
|
return state;
|
|
39
45
|
}
|
|
40
|
-
case UPDATE_2D_CAMERA:
|
|
46
|
+
case _constants.UPDATE_2D_CAMERA:
|
|
41
47
|
return state.merge({
|
|
42
48
|
viewer2D: action.value
|
|
43
49
|
});
|
|
44
|
-
case CHANGE_WALL_LENGTH_MEASURE:
|
|
50
|
+
case _constants.CHANGE_WALL_LENGTH_MEASURE:
|
|
45
51
|
return state.merge({
|
|
46
52
|
scene: scene.merge({
|
|
47
53
|
showWallLengthMeasure: action.value
|
|
48
54
|
})
|
|
49
55
|
});
|
|
50
|
-
case CHANGE_BASE_CABINET_MEASURE:
|
|
56
|
+
case _constants.CHANGE_BASE_CABINET_MEASURE:
|
|
51
57
|
return state.merge({
|
|
52
58
|
scene: scene.merge({
|
|
53
59
|
showBaseCabinetMeasure: action.value
|
|
54
60
|
})
|
|
55
61
|
});
|
|
56
|
-
case CHANGE_WALL_CABINET_MEASURE:
|
|
62
|
+
case _constants.CHANGE_WALL_CABINET_MEASURE:
|
|
57
63
|
return state.merge({
|
|
58
64
|
scene: scene.merge({
|
|
59
65
|
showWallCabinetMeasure: action.value
|
|
60
66
|
})
|
|
61
67
|
});
|
|
62
|
-
case CHANGE_WINDOW_DOOR_MEASURE:
|
|
68
|
+
case _constants.CHANGE_WINDOW_DOOR_MEASURE:
|
|
63
69
|
return state.merge({
|
|
64
70
|
scene: scene.merge({
|
|
65
71
|
showWindowDoorMeasure: action.value
|
|
66
72
|
})
|
|
67
73
|
});
|
|
68
|
-
case SELECT_TOOL_PAN:
|
|
69
|
-
return state.set('mode', MODE_2D_PAN);
|
|
70
|
-
case SELECT_TOOL_ZOOM_IN:
|
|
71
|
-
return state.set('mode', MODE_2D_ZOOM_IN);
|
|
72
|
-
case SELECT_TOOL_ZOOM_OUT:
|
|
73
|
-
return state.set('mode', MODE_2D_ZOOM_OUT);
|
|
74
|
+
case _constants.SELECT_TOOL_PAN:
|
|
75
|
+
return state.set('mode', _constants.MODE_2D_PAN);
|
|
76
|
+
case _constants.SELECT_TOOL_ZOOM_IN:
|
|
77
|
+
return state.set('mode', _constants.MODE_2D_ZOOM_IN);
|
|
78
|
+
case _constants.SELECT_TOOL_ZOOM_OUT:
|
|
79
|
+
return state.set('mode', _constants.MODE_2D_ZOOM_OUT);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 _convertUnitsLite = require("../utils/convert-units-lite");
|
|
11
|
+
function _default(state, action) {
|
|
6
12
|
state = state.merge({
|
|
7
|
-
sceneHistory: history.historyPush(state.sceneHistory, state.scene)
|
|
13
|
+
sceneHistory: _export2.history.historyPush(state.sceneHistory, state.scene)
|
|
8
14
|
});
|
|
9
15
|
switch (action.type) {
|
|
10
|
-
case UPDATE_3D_CEIL_HEIGHT_UNIT:
|
|
16
|
+
case _constants.UPDATE_3D_CEIL_HEIGHT_UNIT:
|
|
11
17
|
{
|
|
12
18
|
var _state = state,
|
|
13
19
|
scene = _state.scene;
|
|
@@ -19,7 +25,7 @@ export default function (state, action) {
|
|
|
19
25
|
state = state.mergeIn(['scene', 'layers', selectedLayer], newLayer);
|
|
20
26
|
return state;
|
|
21
27
|
}
|
|
22
|
-
case UPDATE_3D_CEIL_HEIGHT:
|
|
28
|
+
case _constants.UPDATE_3D_CEIL_HEIGHT:
|
|
23
29
|
{
|
|
24
30
|
var _state2 = state,
|
|
25
31
|
_scene = _state2.scene;
|
|
@@ -34,21 +40,21 @@ export default function (state, action) {
|
|
|
34
40
|
if (item.type.includes('Light')) {
|
|
35
41
|
var height = item.properties.getIn(['height', '_length']);
|
|
36
42
|
var heightUnit = item.properties.getIn(['height', '_unit']);
|
|
37
|
-
var newAltitude = action.value - convert(height).from(heightUnit).to('in');
|
|
38
|
-
item = item.setIn(['properties', 'altitude', '_length'], convert(newAltitude).from('in').to(_layer.unit));
|
|
43
|
+
var newAltitude = action.value - (0, _convertUnitsLite.convert)(height).from(heightUnit).to('in');
|
|
44
|
+
item = item.setIn(['properties', 'altitude', '_length'], (0, _convertUnitsLite.convert)(newAltitude).from('in').to(_layer.unit));
|
|
39
45
|
}
|
|
40
46
|
return item;
|
|
41
47
|
});
|
|
42
48
|
state = state.mergeIn(['scene', 'layers', _selectedLayer, 'items'], newItems);
|
|
43
49
|
return state;
|
|
44
50
|
}
|
|
45
|
-
case SELECT_TOOL_3D_VIEW:
|
|
46
|
-
state = Project.rollback(state).updatedState;
|
|
47
|
-
state = Project.setMode(state, MODE_3D_VIEW).updatedState;
|
|
51
|
+
case _constants.SELECT_TOOL_3D_VIEW:
|
|
52
|
+
state = _export.Project.rollback(state).updatedState;
|
|
53
|
+
state = _export.Project.setMode(state, _constants.MODE_3D_VIEW).updatedState;
|
|
48
54
|
return state;
|
|
49
|
-
case SELECT_TOOL_3D_FIRST_PERSON:
|
|
50
|
-
state = Project.rollback(state).updatedState;
|
|
51
|
-
state = Project.setMode(state, MODE_3D_FIRST_PERSON).updatedState;
|
|
55
|
+
case _constants.SELECT_TOOL_3D_FIRST_PERSON:
|
|
56
|
+
state = _export.Project.rollback(state).updatedState;
|
|
57
|
+
state = _export.Project.setMode(state, _constants.MODE_3D_FIRST_PERSON).updatedState;
|
|
52
58
|
return state;
|
|
53
59
|
default:
|
|
54
60
|
return state;
|
package/es/shared-style.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
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;
|
|
1
7
|
// COLORS
|
|
2
|
-
|
|
8
|
+
var COLORS = exports.COLORS = {
|
|
3
9
|
white: '#FFF',
|
|
4
10
|
lightgrey: '#d3d3d3',
|
|
5
11
|
black: '#000'
|
|
6
12
|
};
|
|
7
|
-
|
|
13
|
+
var MATERIAL_COLORS = exports.MATERIAL_COLORS = {
|
|
8
14
|
500: {
|
|
9
15
|
amber: '#FFC107',
|
|
10
16
|
blue_grey: '#607D8B',
|
|
@@ -27,7 +33,7 @@ export var MATERIAL_COLORS = {
|
|
|
27
33
|
yellow: '#FFEB3B'
|
|
28
34
|
}
|
|
29
35
|
};
|
|
30
|
-
|
|
36
|
+
var PRIMARY_COLOR = exports.PRIMARY_COLOR = {
|
|
31
37
|
main: '#DEDEDE',
|
|
32
38
|
alt: '#DEDEDE',
|
|
33
39
|
icon: '#A2A2A2',
|
|
@@ -36,31 +42,31 @@ export var PRIMARY_COLOR = {
|
|
|
36
42
|
text_alt: '#232323',
|
|
37
43
|
input: '#55595C'
|
|
38
44
|
};
|
|
39
|
-
|
|
45
|
+
var SECONDARY_COLOR = exports.SECONDARY_COLOR = {
|
|
40
46
|
main: '#1CA6FC',
|
|
41
47
|
alt: '#005FAF',
|
|
42
48
|
icon: '#1CA6FC',
|
|
43
49
|
border: '1px solid #FFF'
|
|
44
50
|
};
|
|
45
|
-
|
|
51
|
+
var TOOLBAR_COLOR = exports.TOOLBAR_COLOR = {
|
|
46
52
|
normal: 'rgb(211,230,228)',
|
|
47
53
|
focus: 'rgba(71, 71, 71,0.9)',
|
|
48
54
|
active: 'rgba(17, 131, 187, 0.8)'
|
|
49
55
|
// active: 'rgba(34,144,107, 0.8)',
|
|
50
56
|
};
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
var MESH_SELECTED = exports.MESH_SELECTED = 'rgba(71, 71, 71,0.9)';
|
|
58
|
+
var AREA_MESH_COLOR = exports.AREA_MESH_COLOR = {
|
|
53
59
|
selected: 'rgb(234,234,255)',
|
|
54
60
|
unselected: 'rgb(221,221,255)'
|
|
55
61
|
};
|
|
56
|
-
|
|
62
|
+
var INTERIOR_LINE = exports.INTERIOR_LINE = {
|
|
57
63
|
unselected: ' #0a0a10',
|
|
58
64
|
selected: '#4C12A1'
|
|
59
65
|
};
|
|
60
|
-
|
|
66
|
+
var LINE_MESH_COLOR = exports.LINE_MESH_COLOR = {
|
|
61
67
|
selected: '#4C12A1',
|
|
62
68
|
unselected: 'rgb(135,145,171)'
|
|
63
69
|
};
|
|
64
|
-
|
|
70
|
+
var LINE_MESH = exports.LINE_MESH = {
|
|
65
71
|
selected: '#4C12A1'
|
|
66
72
|
};
|