kitchen-simulator 1.1.1-test.70 → 1.1.1-test.71

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