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