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