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.
Files changed (188) hide show
  1. package/es/@history.js +5 -2
  2. package/es/AppContext.js +6 -3
  3. package/es/KitchenConfigurator.js +86 -87
  4. package/es/KitchenConfiguratorApp.js +128 -135
  5. package/es/actions/area-actions.js +8 -5
  6. package/es/actions/export.js +24 -12
  7. package/es/actions/groups-actions.js +41 -27
  8. package/es/actions/holes-actions.js +51 -34
  9. package/es/actions/items-actions.js +141 -94
  10. package/es/actions/lines-actions.js +32 -21
  11. package/es/actions/project-actions.js +141 -94
  12. package/es/actions/scene-actions.js +17 -11
  13. package/es/actions/vertices-actions.js +11 -7
  14. package/es/actions/viewer2d-actions.js +32 -21
  15. package/es/actions/viewer3d-actions.js +14 -9
  16. package/es/catalog/areas/area/planner-element.js +5 -2
  17. package/es/catalog/catalog.js +17 -15
  18. package/es/catalog/factories/area-factory-3d.js +26 -22
  19. package/es/catalog/factories/area-factory.js +15 -13
  20. package/es/catalog/factories/export.js +10 -6
  21. package/es/catalog/factories/wall-factory-3d.js +36 -31
  22. package/es/catalog/factories/wall-factory.js +26 -21
  23. package/es/catalog/holes/door-closet/planner-element.js +19 -15
  24. package/es/catalog/holes/door-double/planner-element.js +19 -15
  25. package/es/catalog/holes/door-exterior/planner-element.js +20 -16
  26. package/es/catalog/holes/door-interior/planner-element.js +20 -16
  27. package/es/catalog/holes/door-panic/planner-element.js +11 -7
  28. package/es/catalog/holes/door-panic-double/planner-element.js +19 -15
  29. package/es/catalog/holes/door-sliding/planner-element.js +21 -17
  30. package/es/catalog/holes/doorway-framed/planner-element.js +15 -11
  31. package/es/catalog/holes/doorway-frameless/planner-element.js +11 -7
  32. package/es/catalog/holes/export.js +29 -13
  33. package/es/catalog/holes/window-clear/planner-element.js +14 -10
  34. package/es/catalog/holes/window-cross/planner-element.js +14 -10
  35. package/es/catalog/holes/window-double-hung/planner-element.js +14 -10
  36. package/es/catalog/holes/window-vertical/planner-element.js +14 -10
  37. package/es/catalog/lines/wall/planner-element.js +5 -2
  38. package/es/catalog/molding/molding-dcm/planner-element.js +9 -5
  39. package/es/catalog/molding/molding-fbm/planner-element.js +9 -5
  40. package/es/catalog/molding/molding-lrm/planner-element.js +9 -5
  41. package/es/catalog/properties/export.js +31 -20
  42. package/es/catalog/properties/property-checkbox.js +29 -28
  43. package/es/catalog/properties/property-color.js +19 -16
  44. package/es/catalog/properties/property-enum.js +27 -24
  45. package/es/catalog/properties/property-hidden.js +12 -9
  46. package/es/catalog/properties/property-lenght-measure.js +41 -38
  47. package/es/catalog/properties/property-length-measure.js +39 -36
  48. package/es/catalog/properties/property-length-measure_hole.js +41 -38
  49. package/es/catalog/properties/property-number.js +20 -17
  50. package/es/catalog/properties/property-read-only.js +19 -16
  51. package/es/catalog/properties/property-string.js +19 -16
  52. package/es/catalog/properties/property-toggle.js +19 -16
  53. package/es/catalog/properties/shared-property-style.js +3 -1
  54. package/es/catalog/utils/FuseUtils.js +13 -12
  55. package/es/catalog/utils/exporter.js +11 -10
  56. package/es/catalog/utils/geom-utils.js +24 -13
  57. package/es/catalog/utils/item-loader.js +92 -86
  58. package/es/catalog/utils/load-obj.js +24 -20
  59. package/es/catalog/utils/mtl-loader.js +4 -3
  60. package/es/catalog/utils/obj-loader.js +4 -3
  61. package/es/class/FuseUtils.js +13 -12
  62. package/es/class/area.js +24 -24
  63. package/es/class/export.js +36 -23
  64. package/es/class/group.js +55 -53
  65. package/es/class/guide.js +17 -15
  66. package/es/class/hole.js +85 -83
  67. package/es/class/item.js +155 -155
  68. package/es/class/layer.js +61 -59
  69. package/es/class/line.js +138 -135
  70. package/es/class/project.js +94 -93
  71. package/es/class/vertex.js +31 -29
  72. package/es/components/content.js +23 -19
  73. package/es/components/disclaimer/disclaimer.js +13 -10
  74. package/es/components/export.js +13 -8
  75. package/es/components/style/button.js +25 -25
  76. package/es/components/style/cancel-button.js +10 -7
  77. package/es/components/style/content-container.js +12 -11
  78. package/es/components/style/content-title.js +15 -13
  79. package/es/components/style/delete-button.js +12 -8
  80. package/es/components/style/export.js +46 -30
  81. package/es/components/style/form-block.js +11 -10
  82. package/es/components/style/form-color-input.js +10 -7
  83. package/es/components/style/form-label.js +11 -10
  84. package/es/components/style/form-number-input.js +43 -45
  85. package/es/components/style/form-number-input_2.js +39 -41
  86. package/es/components/style/form-select.js +20 -19
  87. package/es/components/style/form-slider.js +13 -10
  88. package/es/components/style/form-submit-button.js +12 -8
  89. package/es/components/style/form-text-input.js +28 -30
  90. package/es/components/viewer2d/area.js +20 -17
  91. package/es/components/viewer2d/export.js +46 -30
  92. package/es/components/viewer2d/grids/grid-horizontal-streak.js +13 -10
  93. package/es/components/viewer2d/grids/grid-streak.js +13 -10
  94. package/es/components/viewer2d/grids/grid-vertical-streak.js +13 -10
  95. package/es/components/viewer2d/grids/grids.js +14 -10
  96. package/es/components/viewer2d/group.js +19 -15
  97. package/es/components/viewer2d/item.js +65 -61
  98. package/es/components/viewer2d/layer.js +26 -23
  99. package/es/components/viewer2d/line.js +106 -101
  100. package/es/components/viewer2d/ruler.js +25 -22
  101. package/es/components/viewer2d/rulerDist.js +24 -21
  102. package/es/components/viewer2d/rulerX.js +44 -46
  103. package/es/components/viewer2d/rulerY.js +42 -44
  104. package/es/components/viewer2d/scene.js +34 -35
  105. package/es/components/viewer2d/snap.js +17 -13
  106. package/es/components/viewer2d/state.js +22 -18
  107. package/es/components/viewer2d/utils.js +33 -24
  108. package/es/components/viewer2d/vertex.js +12 -8
  109. package/es/components/viewer2d/viewer2d.js +159 -156
  110. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +19 -21
  111. package/es/components/viewer3d/dcm.js +3 -1
  112. package/es/components/viewer3d/fbm.js +3 -1
  113. package/es/components/viewer3d/front3D.js +16 -12
  114. package/es/components/viewer3d/grid-creator.js +12 -8
  115. package/es/components/viewer3d/grids/grid-horizontal-streak.js +9 -6
  116. package/es/components/viewer3d/grids/grid-streak.js +8 -5
  117. package/es/components/viewer3d/grids/grid-vertical-streak.js +9 -6
  118. package/es/components/viewer3d/libs/first-person-controls.js +5 -2
  119. package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +3 -1
  120. package/es/components/viewer3d/libs/mtl-loader.js +3 -1
  121. package/es/components/viewer3d/libs/obj-loader.js +3 -1
  122. package/es/components/viewer3d/libs/orbit-controls.js +4 -2
  123. package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -2
  124. package/es/components/viewer3d/lrm.js +3 -1
  125. package/es/components/viewer3d/model.js +3 -1
  126. package/es/components/viewer3d/pointer-lock-navigation.js +6 -3
  127. package/es/components/viewer3d/ruler-utils/itemRect.js +21 -18
  128. package/es/components/viewer3d/ruler-utils/layer3D.js +62 -59
  129. package/es/components/viewer3d/ruler-utils/ruler3D.js +43 -42
  130. package/es/components/viewer3d/ruler-utils/scene3D.js +13 -9
  131. package/es/components/viewer3d/ruler-utils/state3D.js +7 -4
  132. package/es/components/viewer3d/scene-creator.js +223 -197
  133. package/es/components/viewer3d/three-memory-cleaner.js +7 -3
  134. package/es/components/viewer3d/viewer3d-first-person.js +42 -42
  135. package/es/components/viewer3d/viewer3d.js +198 -200
  136. package/es/constants.js +354 -349
  137. package/es/index.js +11 -7
  138. package/es/models.js +191 -193
  139. package/es/plugins/SVGLoader.js +49 -48
  140. package/es/plugins/autosave.js +5 -3
  141. package/es/plugins/console-debugger.js +7 -6
  142. package/es/plugins/export.js +13 -8
  143. package/es/plugins/keyboard.js +31 -29
  144. package/es/reducers/areas-reducer.js +9 -7
  145. package/es/reducers/export.js +37 -24
  146. package/es/reducers/groups-reducer.js +33 -31
  147. package/es/reducers/holes-reducer.js +45 -43
  148. package/es/reducers/items-reducer.js +108 -106
  149. package/es/reducers/lines-reducer.js +30 -28
  150. package/es/reducers/project-reducer.js +107 -105
  151. package/es/reducers/reducer.js +19 -16
  152. package/es/reducers/scene-reducer.js +17 -15
  153. package/es/reducers/user-reducer.js +7 -5
  154. package/es/reducers/vertices-reducer.js +13 -11
  155. package/es/reducers/viewer2d-reducer.js +20 -18
  156. package/es/reducers/viewer3d-reducer.js +18 -16
  157. package/es/shared-style.js +12 -10
  158. package/es/styles/export.js +6 -3
  159. package/es/translator/en.js +3 -1
  160. package/es/translator/it.js +3 -1
  161. package/es/translator/ru.js +3 -1
  162. package/es/translator/translator.js +15 -13
  163. package/es/utils/browser.js +5 -2
  164. package/es/utils/convert-units-lite.js +3 -1
  165. package/es/utils/email-validator.js +3 -1
  166. package/es/utils/export.js +29 -15
  167. package/es/utils/geometry.js +280 -190
  168. package/es/utils/get-edges-of-subgraphs.js +5 -2
  169. package/es/utils/graph-cycles.js +7 -8
  170. package/es/utils/graph-inner-cycles.js +14 -10
  171. package/es/utils/graph.js +13 -9
  172. package/es/utils/helper.js +58 -41
  173. package/es/utils/history.js +11 -8
  174. package/es/utils/id-broker.js +11 -8
  175. package/es/utils/logger.js +3 -1
  176. package/es/utils/math.js +8 -5
  177. package/es/utils/molding.js +146 -130
  178. package/es/utils/name-generator.js +9 -7
  179. package/es/utils/objects-utils.js +14 -7
  180. package/es/utils/phone-validator.js +3 -1
  181. package/es/utils/process-black-list.js +6 -5
  182. package/es/utils/react-if.js +9 -7
  183. package/es/utils/snap-scene.js +30 -27
  184. package/es/utils/snap.js +57 -53
  185. package/es/utils/summarizeCart.js +3 -1
  186. package/es/utils/threeCSG.es6.js +17 -13
  187. package/es/version.js +3 -1
  188. package/package.json +1 -1
@@ -1,166 +1,213 @@
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,
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
- export function validateItemPositions(layerID) {
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
- export function endLoading() {
63
+ function endLoading() {
17
64
  return {
18
- type: END_LOADING
65
+ type: _constants.END_LOADING
19
66
  };
20
67
  }
21
- export function toggleLoadingCabinet() {
68
+ function toggleLoadingCabinet() {
22
69
  return {
23
- type: TOGGLE_LOADING_CABINET
70
+ type: _constants.TOGGLE_LOADING_CABINET
24
71
  };
25
72
  }
26
- export function editWidth(newWidth, layerID, itemID) {
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
- export function duplicateSelected(currentObject) {
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
- export function replaceItem(selectedPos, currentObject, selectedObject) {
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
- export function selectItem(layerID, itemID) {
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
- export function endCreatingCabinet() {
102
+ function endCreatingCabinet() {
56
103
  return {
57
- type: END_CREATING_CABINET
104
+ type: _constants.END_CREATING_CABINET
58
105
  };
59
106
  }
60
- export function updatePopupOpen(value) {
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
- export function selectToolDrawingItem(sceneComponentType) {
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
- export function selectToolDrawingItem3D(sceneComponentType) {
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
- export function updateDrawingItem(layerID, x, y) {
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
- export function endDrawingItem(layerID, x, y) {
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
- export function beginDraggingItem(layerID, itemID, x, y) {
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
- export function beginDraggingItem3D(layerID, itemID, x, y) {
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
- export function updateDraggingItem(x, y) {
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
- export function updateDraggingItemChanged(x, y, layerID, itemID) {
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
- export function updateDraggingItem3DX(x) {
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
- export function updateDraggingItem3DY(y) {
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
- export function endDraggingItem(x, y) {
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
- export function endDraggingItem3D() {
194
+ function endDraggingItem3D() {
148
195
  return {
149
- type: END_DRAGGING_ITEM_3D
196
+ type: _constants.END_DRAGGING_ITEM_3D
150
197
  };
151
198
  }
152
- export function beginRotatingItem(layerID, itemID, x, y) {
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
- export function beginRotatingItem3D(layerID, itemID, x, y, centerX, centerY) {
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
- export function updateRotatingItem(x, y) {
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
- export function updateRotatingItemChanged(rotation, layerID, itemID) {
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
- export function endRotatingItem(x, y) {
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
- export function endRotatingItem3D(x, y) {
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
- export function replaceSubmodule(url) {
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
- export function animateObject(value) {
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
- export function removeReplacingSupport() {
260
+ function removeReplacingSupport() {
214
261
  return {
215
- type: REMOVE_REPLACE_SUBMODULE
262
+ type: _constants.REMOVE_REPLACE_SUBMODULE
216
263
  };
217
264
  }
218
- export function updateItemsAltitude(layerID, itemID, value) {
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
- export function setDoorStyle(doorStyle, pathes, isAll) {
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
- export function setCounterTop(counterTop) {
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
- export function setHandleMaterial(material) {
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
- export function setDoorHandle(texture) {
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
- export function setWallColor(texture) {
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
- export function setMolding(texture, isAll) {
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
- export function updateMolding() {
312
+ function updateMolding() {
266
313
  return {
267
- type: UPDATE_MOLDING
314
+ type: _constants.UPDATE_MOLDING
268
315
  };
269
316
  }
270
- export function setBacksplash(texture) {
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
- export function setBacksplashVisible(itemID, value) {
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
- export function setApplianceMaterial(material) {
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
- export function setModelling(model) {
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
- export function setInitialDoorStyle(doorStyle, oStyle) {
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
- export function setMoveStatus(status) {
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
- export function setRotateStatus(status) {
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
- 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) {
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
- export function selectToolDrawingLine(sceneComponentType) {
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
- export function beginDrawingLine(layerID, x, y, snapMask) {
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
- export function updateDrawingLine(x, y, relatedLines, snapMask) {
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
- export function stopDrawingLine() {
44
+ function stopDrawingLine() {
34
45
  return {
35
- type: STOP_DRAWING_LINE
46
+ type: _constants.STOP_DRAWING_LINE
36
47
  };
37
48
  }
38
- export function endDrawingLine(x, y, snapMask) {
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
- export function beginDraggingLine(layerID, lineID, x, y, snapMask) {
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
- export function updateDraggingLine(x, y, relatedLines, snapMask) {
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
- export function endDraggingLine(x, y, relatedLines, snapMask) {
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
- export function setRelatedLine(layerID, lineID, intersection) {
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