kitchen-simulator 1.1.1-test.6 → 1.1.1-test.61

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