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,117 +1,138 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.beginDraggingHole = beginDraggingHole;
|
|
7
|
+
exports.beginDraggingHole3D = beginDraggingHole3D;
|
|
8
|
+
exports.endCreatingHole = endCreatingHole;
|
|
9
|
+
exports.endDraggingHole = endDraggingHole;
|
|
10
|
+
exports.endDraggingHole3D = endDraggingHole3D;
|
|
11
|
+
exports.endDrawingHole = endDrawingHole;
|
|
12
|
+
exports.endDrawingHole3D = endDrawingHole3D;
|
|
13
|
+
exports.selectHole = selectHole;
|
|
14
|
+
exports.selectToolDrawingHole = selectToolDrawingHole;
|
|
15
|
+
exports.selectToolDrawingHole3D = selectToolDrawingHole3D;
|
|
16
|
+
exports.updateDraggingHole = updateDraggingHole;
|
|
17
|
+
exports.updateDraggingHoleChanged = updateDraggingHoleChanged;
|
|
18
|
+
exports.updateDraggingHoleRulerChanged = updateDraggingHoleRulerChanged;
|
|
19
|
+
exports.updateDrawingHole = updateDrawingHole;
|
|
20
|
+
exports.updateDrawingHole3D = updateDrawingHole3D;
|
|
21
|
+
exports.updatePopupOpen = updatePopupOpen;
|
|
22
|
+
var _constants = require("../constants");
|
|
23
|
+
function endCreatingHole() {
|
|
24
|
+
return {
|
|
25
|
+
type: _constants.END_CREATING_HOLE
|
|
5
26
|
};
|
|
6
27
|
}
|
|
7
|
-
|
|
28
|
+
function updatePopupOpen(value) {
|
|
8
29
|
return {
|
|
9
|
-
type: UPDATE_POPUP_OPEN,
|
|
30
|
+
type: _constants.UPDATE_POPUP_OPEN,
|
|
10
31
|
value: value
|
|
11
32
|
};
|
|
12
33
|
}
|
|
13
|
-
|
|
34
|
+
function selectHole(layerID, holeID) {
|
|
14
35
|
return {
|
|
15
|
-
type: SELECT_HOLE,
|
|
36
|
+
type: _constants.SELECT_HOLE,
|
|
16
37
|
layerID: layerID,
|
|
17
38
|
holeID: holeID
|
|
18
39
|
};
|
|
19
40
|
}
|
|
20
|
-
|
|
41
|
+
function selectToolDrawingHole(sceneComponentType) {
|
|
21
42
|
return {
|
|
22
|
-
type: SELECT_TOOL_DRAWING_HOLE,
|
|
43
|
+
type: _constants.SELECT_TOOL_DRAWING_HOLE,
|
|
23
44
|
sceneComponentType: sceneComponentType
|
|
24
45
|
};
|
|
25
46
|
}
|
|
26
|
-
|
|
47
|
+
function selectToolDrawingHole3D(sceneComponentType) {
|
|
27
48
|
return {
|
|
28
|
-
type: SELECT_TOOL_DRAWING_HOLE_3D,
|
|
49
|
+
type: _constants.SELECT_TOOL_DRAWING_HOLE_3D,
|
|
29
50
|
sceneComponentType: sceneComponentType
|
|
30
51
|
};
|
|
31
52
|
}
|
|
32
|
-
|
|
53
|
+
function updateDrawingHole(layerID, x, y) {
|
|
33
54
|
return {
|
|
34
|
-
type: UPDATE_DRAWING_HOLE,
|
|
55
|
+
type: _constants.UPDATE_DRAWING_HOLE,
|
|
35
56
|
layerID: layerID,
|
|
36
57
|
x: x,
|
|
37
58
|
y: y
|
|
38
59
|
};
|
|
39
60
|
}
|
|
40
|
-
|
|
61
|
+
function updateDrawingHole3D(layerID, x, y) {
|
|
41
62
|
return {
|
|
42
|
-
type: UPDATE_DRAWING_HOLE_3D,
|
|
63
|
+
type: _constants.UPDATE_DRAWING_HOLE_3D,
|
|
43
64
|
layerID: layerID,
|
|
44
65
|
x: x,
|
|
45
66
|
y: y
|
|
46
67
|
};
|
|
47
68
|
}
|
|
48
|
-
|
|
69
|
+
function endDrawingHole(layerID, x, y) {
|
|
49
70
|
return {
|
|
50
|
-
type: END_DRAWING_HOLE,
|
|
71
|
+
type: _constants.END_DRAWING_HOLE,
|
|
51
72
|
layerID: layerID,
|
|
52
73
|
x: x,
|
|
53
74
|
y: y
|
|
54
75
|
};
|
|
55
76
|
}
|
|
56
|
-
|
|
77
|
+
function endDrawingHole3D(layerID, x, y) {
|
|
57
78
|
return {
|
|
58
|
-
type: END_DRAWING_HOLE_3D,
|
|
79
|
+
type: _constants.END_DRAWING_HOLE_3D,
|
|
59
80
|
layerID: layerID,
|
|
60
81
|
x: x,
|
|
61
82
|
y: y
|
|
62
83
|
};
|
|
63
84
|
}
|
|
64
|
-
|
|
85
|
+
function beginDraggingHole(layerID, holeID, x, y) {
|
|
65
86
|
return {
|
|
66
|
-
type: BEGIN_DRAGGING_HOLE,
|
|
87
|
+
type: _constants.BEGIN_DRAGGING_HOLE,
|
|
67
88
|
layerID: layerID,
|
|
68
89
|
holeID: holeID,
|
|
69
90
|
x: x,
|
|
70
91
|
y: y
|
|
71
92
|
};
|
|
72
93
|
}
|
|
73
|
-
|
|
94
|
+
function beginDraggingHole3D(layerID, holeID, x, y) {
|
|
74
95
|
return {
|
|
75
|
-
type: BEGIN_DRAGGING_HOLE_3D,
|
|
96
|
+
type: _constants.BEGIN_DRAGGING_HOLE_3D,
|
|
76
97
|
layerID: layerID,
|
|
77
98
|
holeID: holeID,
|
|
78
99
|
x: x,
|
|
79
100
|
y: y
|
|
80
101
|
};
|
|
81
102
|
}
|
|
82
|
-
|
|
103
|
+
function updateDraggingHole(x, y) {
|
|
83
104
|
return {
|
|
84
|
-
type: UPDATE_DRAGGING_HOLE,
|
|
105
|
+
type: _constants.UPDATE_DRAGGING_HOLE,
|
|
85
106
|
x: x,
|
|
86
107
|
y: y
|
|
87
108
|
};
|
|
88
109
|
}
|
|
89
|
-
|
|
110
|
+
function endDraggingHole(x, y) {
|
|
90
111
|
return {
|
|
91
|
-
type: END_DRAGGING_HOLE,
|
|
112
|
+
type: _constants.END_DRAGGING_HOLE,
|
|
92
113
|
x: x,
|
|
93
114
|
y: y
|
|
94
115
|
};
|
|
95
116
|
}
|
|
96
|
-
|
|
117
|
+
function endDraggingHole3D(x, y) {
|
|
97
118
|
return {
|
|
98
|
-
type: END_DRAGGING_HOLE_3D,
|
|
119
|
+
type: _constants.END_DRAGGING_HOLE_3D,
|
|
99
120
|
x: x,
|
|
100
121
|
y: y
|
|
101
122
|
};
|
|
102
123
|
}
|
|
103
|
-
|
|
124
|
+
function updateDraggingHoleChanged(x, y, layerID, holeID) {
|
|
104
125
|
return {
|
|
105
|
-
type: UPDATE_DRAGGING_HOLE_CHANGED,
|
|
126
|
+
type: _constants.UPDATE_DRAGGING_HOLE_CHANGED,
|
|
106
127
|
x: x,
|
|
107
128
|
y: y,
|
|
108
129
|
layerID: layerID,
|
|
109
130
|
holeID: holeID
|
|
110
131
|
};
|
|
111
132
|
}
|
|
112
|
-
|
|
133
|
+
function updateDraggingHoleRulerChanged(width, layerID, holeID) {
|
|
113
134
|
return {
|
|
114
|
-
type: UPDATE_DRAGGING_HOLE_RULER_CHANGED,
|
|
135
|
+
type: _constants.UPDATE_DRAGGING_HOLE_RULER_CHANGED,
|
|
115
136
|
width: width,
|
|
116
137
|
layerID: layerID,
|
|
117
138
|
holeID: holeID
|
|
@@ -1,166 +1,217 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.animateObject = animateObject;
|
|
7
|
+
exports.beginDraggingItem = beginDraggingItem;
|
|
8
|
+
exports.beginDraggingItem3D = beginDraggingItem3D;
|
|
9
|
+
exports.beginRotatingItem = beginRotatingItem;
|
|
10
|
+
exports.beginRotatingItem3D = beginRotatingItem3D;
|
|
11
|
+
exports.duplicateSelected = duplicateSelected;
|
|
12
|
+
exports.editWidth = editWidth;
|
|
13
|
+
exports.endCreatingCabinet = endCreatingCabinet;
|
|
14
|
+
exports.endDraggingItem = endDraggingItem;
|
|
15
|
+
exports.endDraggingItem3D = endDraggingItem3D;
|
|
16
|
+
exports.endDrawingItem = endDrawingItem;
|
|
17
|
+
exports.endLoading = endLoading;
|
|
18
|
+
exports.endRotatingItem = endRotatingItem;
|
|
19
|
+
exports.endRotatingItem3D = endRotatingItem3D;
|
|
20
|
+
exports.removeReplacingSupport = removeReplacingSupport;
|
|
21
|
+
exports.replaceItem = replaceItem;
|
|
22
|
+
exports.replaceSubmodule = replaceSubmodule;
|
|
23
|
+
exports.selectItem = selectItem;
|
|
24
|
+
exports.selectToolDrawingItem = selectToolDrawingItem;
|
|
25
|
+
exports.selectToolDrawingItem3D = selectToolDrawingItem3D;
|
|
26
|
+
exports.setApplianceMaterial = setApplianceMaterial;
|
|
27
|
+
exports.setBacksplash = setBacksplash;
|
|
28
|
+
exports.setBacksplashVisible = setBacksplashVisible;
|
|
29
|
+
exports.setCounterTop = setCounterTop;
|
|
30
|
+
exports.setDoorHandle = setDoorHandle;
|
|
31
|
+
exports.setDoorStyle = setDoorStyle;
|
|
32
|
+
exports.setHandleMaterial = setHandleMaterial;
|
|
33
|
+
exports.setInitialDoorStyle = setInitialDoorStyle;
|
|
34
|
+
exports.setModelling = setModelling;
|
|
35
|
+
exports.setMolding = setMolding;
|
|
36
|
+
exports.setMoveStatus = setMoveStatus;
|
|
37
|
+
exports.setRotateStatus = setRotateStatus;
|
|
38
|
+
exports.setWallColor = setWallColor;
|
|
39
|
+
exports.storeDistArray = storeDistArray;
|
|
40
|
+
exports.toggleLoadingCabinet = toggleLoadingCabinet;
|
|
41
|
+
exports.updateDraggingItem = updateDraggingItem;
|
|
42
|
+
exports.updateDraggingItem3DX = updateDraggingItem3DX;
|
|
43
|
+
exports.updateDraggingItem3DY = updateDraggingItem3DY;
|
|
44
|
+
exports.updateDraggingItemChanged = updateDraggingItemChanged;
|
|
45
|
+
exports.updateDrawingItem = updateDrawingItem;
|
|
46
|
+
exports.updateItemsAltitude = updateItemsAltitude;
|
|
47
|
+
exports.updateMolding = updateMolding;
|
|
48
|
+
exports.updatePopupOpen = updatePopupOpen;
|
|
49
|
+
exports.updateRotatingItem = updateRotatingItem;
|
|
50
|
+
exports.updateRotatingItemChanged = updateRotatingItemChanged;
|
|
51
|
+
exports.validateItemPositions = validateItemPositions;
|
|
52
|
+
var _constants = require("../constants");
|
|
53
|
+
function storeDistArray(layerID, itemID, distArray) {
|
|
54
|
+
return {
|
|
55
|
+
type: _constants.STORE_DIST_ARRAY,
|
|
5
56
|
layerID: layerID,
|
|
6
57
|
itemID: itemID,
|
|
7
58
|
distArray: distArray
|
|
8
59
|
};
|
|
9
60
|
}
|
|
10
|
-
|
|
61
|
+
function validateItemPositions(layerID) {
|
|
11
62
|
return {
|
|
12
|
-
type: VALIDATE_ITEM_POSTIONS,
|
|
63
|
+
type: _constants.VALIDATE_ITEM_POSTIONS,
|
|
13
64
|
layerID: layerID
|
|
14
65
|
};
|
|
15
66
|
}
|
|
16
|
-
|
|
67
|
+
function endLoading() {
|
|
17
68
|
return {
|
|
18
|
-
type: END_LOADING
|
|
69
|
+
type: _constants.END_LOADING
|
|
19
70
|
};
|
|
20
71
|
}
|
|
21
|
-
|
|
72
|
+
function toggleLoadingCabinet() {
|
|
22
73
|
return {
|
|
23
|
-
type: TOGGLE_LOADING_CABINET
|
|
74
|
+
type: _constants.TOGGLE_LOADING_CABINET
|
|
24
75
|
};
|
|
25
76
|
}
|
|
26
|
-
|
|
77
|
+
function editWidth(newWidth, layerID, itemID) {
|
|
27
78
|
return {
|
|
28
|
-
type: EDIT_WIDTH,
|
|
79
|
+
type: _constants.EDIT_WIDTH,
|
|
29
80
|
newWidth: newWidth,
|
|
30
81
|
layerID: layerID,
|
|
31
82
|
itemID: itemID
|
|
32
83
|
};
|
|
33
84
|
}
|
|
34
|
-
|
|
85
|
+
function duplicateSelected(currentObject) {
|
|
35
86
|
return {
|
|
36
|
-
type: DUPLICATE_SELECTED,
|
|
87
|
+
type: _constants.DUPLICATE_SELECTED,
|
|
37
88
|
currentObject: currentObject
|
|
38
89
|
};
|
|
39
90
|
}
|
|
40
|
-
|
|
91
|
+
function replaceItem(selectedPos, currentObject, selectedObject) {
|
|
41
92
|
return {
|
|
42
|
-
type: REPLACE_ITEM,
|
|
93
|
+
type: _constants.REPLACE_ITEM,
|
|
43
94
|
selectedPos: selectedPos,
|
|
44
95
|
currentObject: currentObject,
|
|
45
96
|
selectedObject: selectedObject
|
|
46
97
|
};
|
|
47
98
|
}
|
|
48
|
-
|
|
99
|
+
function selectItem(layerID, itemID) {
|
|
49
100
|
return {
|
|
50
|
-
type: SELECT_ITEM,
|
|
101
|
+
type: _constants.SELECT_ITEM,
|
|
51
102
|
layerID: layerID,
|
|
52
103
|
itemID: itemID
|
|
53
104
|
};
|
|
54
105
|
}
|
|
55
|
-
|
|
106
|
+
function endCreatingCabinet() {
|
|
56
107
|
return {
|
|
57
|
-
type: END_CREATING_CABINET
|
|
108
|
+
type: _constants.END_CREATING_CABINET
|
|
58
109
|
};
|
|
59
110
|
}
|
|
60
|
-
|
|
111
|
+
function updatePopupOpen(value) {
|
|
61
112
|
return {
|
|
62
|
-
type: UPDATE_POPUP_OPEN,
|
|
113
|
+
type: _constants.UPDATE_POPUP_OPEN,
|
|
63
114
|
value: value
|
|
64
115
|
};
|
|
65
116
|
}
|
|
66
|
-
|
|
117
|
+
function selectToolDrawingItem(sceneComponentType) {
|
|
67
118
|
return {
|
|
68
|
-
type: SELECT_TOOL_DRAWING_ITEM,
|
|
119
|
+
type: _constants.SELECT_TOOL_DRAWING_ITEM,
|
|
69
120
|
sceneComponentType: sceneComponentType
|
|
70
121
|
};
|
|
71
122
|
}
|
|
72
|
-
|
|
123
|
+
function selectToolDrawingItem3D(sceneComponentType) {
|
|
73
124
|
return {
|
|
74
|
-
type: SELECT_TOOL_DRAWING_ITEM_3D,
|
|
125
|
+
type: _constants.SELECT_TOOL_DRAWING_ITEM_3D,
|
|
75
126
|
sceneComponentType: sceneComponentType
|
|
76
127
|
};
|
|
77
128
|
}
|
|
78
|
-
|
|
129
|
+
function updateDrawingItem(layerID, x, y) {
|
|
79
130
|
return {
|
|
80
|
-
type: UPDATE_DRAWING_ITEM,
|
|
131
|
+
type: _constants.UPDATE_DRAWING_ITEM,
|
|
81
132
|
layerID: layerID,
|
|
82
133
|
x: x,
|
|
83
134
|
y: y
|
|
84
135
|
};
|
|
85
136
|
}
|
|
86
|
-
|
|
137
|
+
function endDrawingItem(layerID, x, y) {
|
|
87
138
|
return {
|
|
88
|
-
type: END_DRAWING_ITEM,
|
|
139
|
+
type: _constants.END_DRAWING_ITEM,
|
|
89
140
|
layerID: layerID,
|
|
90
141
|
x: x,
|
|
91
142
|
y: y
|
|
92
143
|
};
|
|
93
144
|
}
|
|
94
|
-
|
|
145
|
+
function beginDraggingItem(layerID, itemID, x, y) {
|
|
95
146
|
return {
|
|
96
|
-
type: BEGIN_DRAGGING_ITEM,
|
|
147
|
+
type: _constants.BEGIN_DRAGGING_ITEM,
|
|
97
148
|
layerID: layerID,
|
|
98
149
|
itemID: itemID,
|
|
99
150
|
x: x,
|
|
100
151
|
y: y
|
|
101
152
|
};
|
|
102
153
|
}
|
|
103
|
-
|
|
154
|
+
function beginDraggingItem3D(layerID, itemID, x, y) {
|
|
104
155
|
return {
|
|
105
|
-
type: BEGIN_DRAGGING_ITEM_3D,
|
|
156
|
+
type: _constants.BEGIN_DRAGGING_ITEM_3D,
|
|
106
157
|
layerID: layerID,
|
|
107
158
|
itemID: itemID,
|
|
108
159
|
x: x,
|
|
109
160
|
y: y
|
|
110
161
|
};
|
|
111
162
|
}
|
|
112
|
-
|
|
163
|
+
function updateDraggingItem(x, y) {
|
|
113
164
|
return {
|
|
114
|
-
type: UPDATE_DRAGGING_ITEM,
|
|
165
|
+
type: _constants.UPDATE_DRAGGING_ITEM,
|
|
115
166
|
x: x,
|
|
116
167
|
y: y
|
|
117
168
|
};
|
|
118
169
|
}
|
|
119
|
-
|
|
170
|
+
function updateDraggingItemChanged(x, y, layerID, itemID) {
|
|
120
171
|
return {
|
|
121
|
-
type: UPDATE_DRAGGING_ITEM_CHANGED,
|
|
172
|
+
type: _constants.UPDATE_DRAGGING_ITEM_CHANGED,
|
|
122
173
|
x: x,
|
|
123
174
|
y: y,
|
|
124
175
|
layerID: layerID,
|
|
125
176
|
itemID: itemID
|
|
126
177
|
};
|
|
127
178
|
}
|
|
128
|
-
|
|
179
|
+
function updateDraggingItem3DX(x) {
|
|
129
180
|
return {
|
|
130
|
-
type: UPDATE_DRAGGING_ITEM_3DX,
|
|
181
|
+
type: _constants.UPDATE_DRAGGING_ITEM_3DX,
|
|
131
182
|
x: x
|
|
132
183
|
};
|
|
133
184
|
}
|
|
134
|
-
|
|
185
|
+
function updateDraggingItem3DY(y) {
|
|
135
186
|
return {
|
|
136
|
-
type: UPDATE_DRAGGING_ITEM_3DY,
|
|
187
|
+
type: _constants.UPDATE_DRAGGING_ITEM_3DY,
|
|
137
188
|
y: y
|
|
138
189
|
};
|
|
139
190
|
}
|
|
140
|
-
|
|
191
|
+
function endDraggingItem(x, y) {
|
|
141
192
|
return {
|
|
142
|
-
type: END_DRAGGING_ITEM,
|
|
193
|
+
type: _constants.END_DRAGGING_ITEM,
|
|
143
194
|
x: x,
|
|
144
195
|
y: y
|
|
145
196
|
};
|
|
146
197
|
}
|
|
147
|
-
|
|
198
|
+
function endDraggingItem3D() {
|
|
148
199
|
return {
|
|
149
|
-
type: END_DRAGGING_ITEM_3D
|
|
200
|
+
type: _constants.END_DRAGGING_ITEM_3D
|
|
150
201
|
};
|
|
151
202
|
}
|
|
152
|
-
|
|
203
|
+
function beginRotatingItem(layerID, itemID, x, y) {
|
|
153
204
|
return {
|
|
154
|
-
type: BEGIN_ROTATING_ITEM,
|
|
205
|
+
type: _constants.BEGIN_ROTATING_ITEM,
|
|
155
206
|
layerID: layerID,
|
|
156
207
|
itemID: itemID,
|
|
157
208
|
x: x,
|
|
158
209
|
y: y
|
|
159
210
|
};
|
|
160
211
|
}
|
|
161
|
-
|
|
212
|
+
function beginRotatingItem3D(layerID, itemID, x, y, centerX, centerY) {
|
|
162
213
|
return {
|
|
163
|
-
type: BEGIN_ROTATING_ITEM_3D,
|
|
214
|
+
type: _constants.BEGIN_ROTATING_ITEM_3D,
|
|
164
215
|
layerID: layerID,
|
|
165
216
|
itemID: itemID,
|
|
166
217
|
x: x,
|
|
@@ -169,145 +220,145 @@ export function beginRotatingItem3D(layerID, itemID, x, y, centerX, centerY) {
|
|
|
169
220
|
centerY: centerY
|
|
170
221
|
};
|
|
171
222
|
}
|
|
172
|
-
|
|
223
|
+
function updateRotatingItem(x, y) {
|
|
173
224
|
return {
|
|
174
|
-
type: UPDATE_ROTATING_ITEM,
|
|
225
|
+
type: _constants.UPDATE_ROTATING_ITEM,
|
|
175
226
|
x: x,
|
|
176
227
|
y: y
|
|
177
228
|
};
|
|
178
229
|
}
|
|
179
|
-
|
|
230
|
+
function updateRotatingItemChanged(rotation, layerID, itemID) {
|
|
180
231
|
return {
|
|
181
|
-
type: UPDATE_ROTATING_ITEM_CHANGED,
|
|
232
|
+
type: _constants.UPDATE_ROTATING_ITEM_CHANGED,
|
|
182
233
|
rotation: rotation,
|
|
183
234
|
layerID: layerID,
|
|
184
235
|
itemID: itemID
|
|
185
236
|
};
|
|
186
237
|
}
|
|
187
|
-
|
|
238
|
+
function endRotatingItem(x, y) {
|
|
188
239
|
return {
|
|
189
|
-
type: END_ROTATING_ITEM,
|
|
240
|
+
type: _constants.END_ROTATING_ITEM,
|
|
190
241
|
x: x,
|
|
191
242
|
y: y
|
|
192
243
|
};
|
|
193
244
|
}
|
|
194
|
-
|
|
245
|
+
function endRotatingItem3D(x, y) {
|
|
195
246
|
return {
|
|
196
|
-
type: END_ROTATING_ITEM_3D,
|
|
247
|
+
type: _constants.END_ROTATING_ITEM_3D,
|
|
197
248
|
x: x,
|
|
198
249
|
y: y
|
|
199
250
|
};
|
|
200
251
|
}
|
|
201
|
-
|
|
252
|
+
function replaceSubmodule(url) {
|
|
202
253
|
return {
|
|
203
|
-
type: REPLACE_SUBMODULE,
|
|
254
|
+
type: _constants.REPLACE_SUBMODULE,
|
|
204
255
|
url: url
|
|
205
256
|
};
|
|
206
257
|
}
|
|
207
|
-
|
|
258
|
+
function animateObject(value) {
|
|
208
259
|
return {
|
|
209
|
-
type: ANIMATE_OBJECT,
|
|
260
|
+
type: _constants.ANIMATE_OBJECT,
|
|
210
261
|
value: value
|
|
211
262
|
};
|
|
212
263
|
}
|
|
213
|
-
|
|
264
|
+
function removeReplacingSupport() {
|
|
214
265
|
return {
|
|
215
|
-
type: REMOVE_REPLACE_SUBMODULE
|
|
266
|
+
type: _constants.REMOVE_REPLACE_SUBMODULE
|
|
216
267
|
};
|
|
217
268
|
}
|
|
218
|
-
|
|
269
|
+
function updateItemsAltitude(layerID, itemID, value) {
|
|
219
270
|
return {
|
|
220
|
-
type: ITEM_MOVE_UP,
|
|
271
|
+
type: _constants.ITEM_MOVE_UP,
|
|
221
272
|
layerID: layerID,
|
|
222
273
|
itemID: itemID,
|
|
223
274
|
value: value
|
|
224
275
|
};
|
|
225
276
|
}
|
|
226
|
-
|
|
277
|
+
function setDoorStyle(doorStyle, pathes, isAll) {
|
|
227
278
|
return {
|
|
228
|
-
type: SET_DOOR_STYLE,
|
|
279
|
+
type: _constants.SET_DOOR_STYLE,
|
|
229
280
|
doorStyle: doorStyle,
|
|
230
281
|
pathes: pathes,
|
|
231
282
|
isAll: isAll
|
|
232
283
|
};
|
|
233
284
|
}
|
|
234
|
-
|
|
285
|
+
function setCounterTop(counterTop) {
|
|
235
286
|
return {
|
|
236
|
-
type: SET_COUNTER_TOP,
|
|
287
|
+
type: _constants.SET_COUNTER_TOP,
|
|
237
288
|
counterTop: counterTop
|
|
238
289
|
};
|
|
239
290
|
}
|
|
240
|
-
|
|
291
|
+
function setHandleMaterial(material) {
|
|
241
292
|
return {
|
|
242
|
-
type: SET_HANDLE_MATERIAL,
|
|
293
|
+
type: _constants.SET_HANDLE_MATERIAL,
|
|
243
294
|
material: material
|
|
244
295
|
};
|
|
245
296
|
}
|
|
246
|
-
|
|
297
|
+
function setDoorHandle(texture) {
|
|
247
298
|
return {
|
|
248
|
-
type: SET_DOOR_HANDLE,
|
|
299
|
+
type: _constants.SET_DOOR_HANDLE,
|
|
249
300
|
doorHandle: texture
|
|
250
301
|
};
|
|
251
302
|
}
|
|
252
|
-
|
|
303
|
+
function setWallColor(texture) {
|
|
253
304
|
return {
|
|
254
|
-
type: SET_WALL_COLOR,
|
|
305
|
+
type: _constants.SET_WALL_COLOR,
|
|
255
306
|
wallColor: texture
|
|
256
307
|
};
|
|
257
308
|
}
|
|
258
|
-
|
|
309
|
+
function setMolding(texture, isAll) {
|
|
259
310
|
return {
|
|
260
|
-
type: SET_MOLDING,
|
|
311
|
+
type: _constants.SET_MOLDING,
|
|
261
312
|
molding: texture,
|
|
262
313
|
isAll: isAll
|
|
263
314
|
};
|
|
264
315
|
}
|
|
265
|
-
|
|
316
|
+
function updateMolding() {
|
|
266
317
|
return {
|
|
267
|
-
type: UPDATE_MOLDING
|
|
318
|
+
type: _constants.UPDATE_MOLDING
|
|
268
319
|
};
|
|
269
320
|
}
|
|
270
|
-
|
|
321
|
+
function setBacksplash(texture) {
|
|
271
322
|
return {
|
|
272
|
-
type: SET_BACKSPLASH,
|
|
323
|
+
type: _constants.SET_BACKSPLASH,
|
|
273
324
|
backsplash: texture
|
|
274
325
|
};
|
|
275
326
|
}
|
|
276
|
-
|
|
327
|
+
function setBacksplashVisible(itemID, value) {
|
|
277
328
|
return {
|
|
278
|
-
type: SET_BACKSPLASH_VISIBLE,
|
|
329
|
+
type: _constants.SET_BACKSPLASH_VISIBLE,
|
|
279
330
|
backsplashVisible: value,
|
|
280
331
|
itemID: itemID
|
|
281
332
|
};
|
|
282
333
|
}
|
|
283
|
-
|
|
334
|
+
function setApplianceMaterial(material) {
|
|
284
335
|
return {
|
|
285
|
-
type: SET_APPLIANCE_MATERIAL,
|
|
336
|
+
type: _constants.SET_APPLIANCE_MATERIAL,
|
|
286
337
|
material: material
|
|
287
338
|
};
|
|
288
339
|
}
|
|
289
|
-
|
|
340
|
+
function setModelling(model) {
|
|
290
341
|
return {
|
|
291
|
-
type: SET_MODELLING,
|
|
342
|
+
type: _constants.SET_MODELLING,
|
|
292
343
|
model: model
|
|
293
344
|
};
|
|
294
345
|
}
|
|
295
|
-
|
|
346
|
+
function setInitialDoorStyle(doorStyle, oStyle) {
|
|
296
347
|
return {
|
|
297
|
-
type: SET_INITIAL_DOOR_STYLE,
|
|
348
|
+
type: _constants.SET_INITIAL_DOOR_STYLE,
|
|
298
349
|
doorStyle: doorStyle,
|
|
299
350
|
oStyle: oStyle
|
|
300
351
|
};
|
|
301
352
|
}
|
|
302
|
-
|
|
353
|
+
function setMoveStatus(status) {
|
|
303
354
|
return {
|
|
304
|
-
type: SET_MOVE_STATUS,
|
|
355
|
+
type: _constants.SET_MOVE_STATUS,
|
|
305
356
|
status: status
|
|
306
357
|
};
|
|
307
358
|
}
|
|
308
|
-
|
|
359
|
+
function setRotateStatus(status) {
|
|
309
360
|
return {
|
|
310
|
-
type: SET_ROTATE_STATUS,
|
|
361
|
+
type: _constants.SET_ROTATE_STATUS,
|
|
311
362
|
status: status
|
|
312
363
|
};
|
|
313
364
|
}
|