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

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