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