kitchen-simulator 1.1.1-test.47 → 1.1.1-test.49

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