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

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 (358) hide show
  1. package/es/@history.js +2 -0
  2. package/es/AppContext.js +3 -0
  3. package/es/KitchenConfigurator.js +645 -0
  4. package/es/KitchenConfiguratorApp.js +480 -0
  5. package/es/actions/area-actions.js +14 -0
  6. package/es/actions/export.js +23 -0
  7. package/es/actions/groups-actions.js +89 -0
  8. package/es/actions/holes-actions.js +119 -0
  9. package/es/actions/items-actions.js +313 -0
  10. package/es/actions/lines-actions.js +81 -0
  11. package/es/actions/project-actions.js +281 -0
  12. package/es/actions/scene-actions.js +33 -0
  13. package/es/actions/vertices-actions.js +27 -0
  14. package/es/actions/viewer2d-actions.js +58 -0
  15. package/es/actions/viewer3d-actions.js +23 -0
  16. package/es/catalog/areas/area/planner-element.js +40 -0
  17. package/es/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
  18. package/es/catalog/areas/area/textures/grass.jpg +0 -0
  19. package/es/catalog/areas/area/textures/parquet.jpg +0 -0
  20. package/es/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
  21. package/es/catalog/areas/area/textures/tile1.jpg +0 -0
  22. package/es/catalog/catalog.js +277 -0
  23. package/es/catalog/envMap/nx.hdr +0 -0
  24. package/es/catalog/envMap/ny.hdr +0 -0
  25. package/es/catalog/envMap/nz.hdr +0 -0
  26. package/es/catalog/envMap/px.hdr +0 -0
  27. package/es/catalog/envMap/py.hdr +0 -0
  28. package/es/catalog/envMap/pz.hdr +0 -0
  29. package/es/catalog/factories/area-factory-3d.js +181 -0
  30. package/es/catalog/factories/area-factory.js +81 -0
  31. package/es/catalog/factories/export.js +7 -0
  32. package/es/catalog/factories/wall-factory-3d.js +202 -0
  33. package/es/catalog/factories/wall-factory.js +268 -0
  34. package/es/catalog/holes/door-closet/planner-element.js +222 -0
  35. package/es/catalog/holes/door-double/door_double.png +0 -0
  36. package/es/catalog/holes/door-double/planner-element.js +315 -0
  37. package/es/catalog/holes/door-exterior/planner-element.js +215 -0
  38. package/es/catalog/holes/door-interior/planner-element.js +227 -0
  39. package/es/catalog/holes/door-panic/panicDoor.png +0 -0
  40. package/es/catalog/holes/door-panic/planner-element.js +503 -0
  41. package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
  42. package/es/catalog/holes/door-panic-double/planner-element.js +463 -0
  43. package/es/catalog/holes/door-sliding/planner-element.js +225 -0
  44. package/es/catalog/holes/doorway-framed/planner-element.js +145 -0
  45. package/es/catalog/holes/doorway-frameless/planner-element.js +104 -0
  46. package/es/catalog/holes/export.js +13 -0
  47. package/es/catalog/holes/gate/gate.jpg +0 -0
  48. package/es/catalog/holes/window-clear/planner-element.js +166 -0
  49. package/es/catalog/holes/window-clear/texture.png +0 -0
  50. package/es/catalog/holes/window-cross/planner-element.js +165 -0
  51. package/es/catalog/holes/window-cross/texture.png +0 -0
  52. package/es/catalog/holes/window-double-hung/planner-element.js +303 -0
  53. package/es/catalog/holes/window-double-hung/texture.png +0 -0
  54. package/es/catalog/holes/window-vertical/planner-element.js +276 -0
  55. package/es/catalog/holes/window-vertical/texture.png +0 -0
  56. package/es/catalog/lines/wall/planner-element.js +70 -0
  57. package/es/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
  58. package/es/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
  59. package/es/catalog/lines/wall/textures/bricks.jpg +0 -0
  60. package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
  61. package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
  62. package/es/catalog/lines/wall/textures/morden-normal.jpg +0 -0
  63. package/es/catalog/lines/wall/textures/morden.jpg +0 -0
  64. package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
  65. package/es/catalog/lines/wall/textures/painted.jpg +0 -0
  66. package/es/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
  67. package/es/catalog/lines/wall/textures/plaster.jpg +0 -0
  68. package/es/catalog/lines/wall/wall.png +0 -0
  69. package/es/catalog/molding/molding-dcm/planner-element.js +28 -0
  70. package/es/catalog/molding/molding-dcm/texture.png +0 -0
  71. package/es/catalog/molding/molding-fbm/planner-element.js +28 -0
  72. package/es/catalog/molding/molding-fbm/texture.png +0 -0
  73. package/es/catalog/molding/molding-lrm/planner-element.js +28 -0
  74. package/es/catalog/molding/molding-lrm/texture.png +0 -0
  75. package/es/catalog/properties/export.js +21 -0
  76. package/es/catalog/properties/property-checkbox.js +116 -0
  77. package/es/catalog/properties/property-color.js +39 -0
  78. package/es/catalog/properties/property-enum.js +97 -0
  79. package/es/catalog/properties/property-hidden.js +19 -0
  80. package/es/catalog/properties/property-lenght-measure.js +101 -0
  81. package/es/catalog/properties/property-length-measure.js +134 -0
  82. package/es/catalog/properties/property-length-measure_hole.js +101 -0
  83. package/es/catalog/properties/property-number.js +48 -0
  84. package/es/catalog/properties/property-read-only.js +26 -0
  85. package/es/catalog/properties/property-string.js +48 -0
  86. package/es/catalog/properties/property-toggle.js +39 -0
  87. package/es/catalog/properties/shared-property-style.js +14 -0
  88. package/es/catalog/utils/FuseUtils.js +82 -0
  89. package/es/catalog/utils/exporter.js +148 -0
  90. package/es/catalog/utils/geom-utils.js +189 -0
  91. package/es/catalog/utils/item-loader.js +1521 -0
  92. package/es/catalog/utils/load-obj.js +91 -0
  93. package/es/catalog/utils/mtl-loader.js +358 -0
  94. package/es/catalog/utils/obj-loader.js +477 -0
  95. package/es/class/FuseUtils.js +82 -0
  96. package/es/class/area.js +145 -0
  97. package/es/class/export.js +24 -0
  98. package/es/class/group.js +440 -0
  99. package/es/class/guide.js +62 -0
  100. package/es/class/hole.js +929 -0
  101. package/es/class/item.js +1883 -0
  102. package/es/class/layer.js +667 -0
  103. package/es/class/line.js +1180 -0
  104. package/es/class/project.js +793 -0
  105. package/es/class/vertex.js +202 -0
  106. package/es/components/content.js +107 -0
  107. package/es/components/disclaimer/disclaimer.js +97 -0
  108. package/es/components/export.js +9 -0
  109. package/es/components/style/button.js +113 -0
  110. package/es/components/style/cancel-button.js +22 -0
  111. package/es/components/style/content-container.js +33 -0
  112. package/es/components/style/content-title.js +29 -0
  113. package/es/components/style/delete-button.js +25 -0
  114. package/es/components/style/export.js +31 -0
  115. package/es/components/style/form-block.js +24 -0
  116. package/es/components/style/form-color-input.js +27 -0
  117. package/es/components/style/form-label.js +26 -0
  118. package/es/components/style/form-number-input.js +213 -0
  119. package/es/components/style/form-number-input_2.js +206 -0
  120. package/es/components/style/form-select.js +68 -0
  121. package/es/components/style/form-slider.js +61 -0
  122. package/es/components/style/form-submit-button.js +26 -0
  123. package/es/components/style/form-text-input.js +95 -0
  124. package/es/components/viewer2d/area.js +81 -0
  125. package/es/components/viewer2d/export.js +31 -0
  126. package/es/components/viewer2d/grids/grid-horizontal-streak.js +37 -0
  127. package/es/components/viewer2d/grids/grid-streak.js +37 -0
  128. package/es/components/viewer2d/grids/grid-vertical-streak.js +37 -0
  129. package/es/components/viewer2d/grids/grids.js +35 -0
  130. package/es/components/viewer2d/group.js +53 -0
  131. package/es/components/viewer2d/item.js +513 -0
  132. package/es/components/viewer2d/layer.js +164 -0
  133. package/es/components/viewer2d/line.js +882 -0
  134. package/es/components/viewer2d/ruler.js +100 -0
  135. package/es/components/viewer2d/rulerDist.js +146 -0
  136. package/es/components/viewer2d/rulerX.js +151 -0
  137. package/es/components/viewer2d/rulerY.js +153 -0
  138. package/es/components/viewer2d/scene.js +140 -0
  139. package/es/components/viewer2d/snap.js +74 -0
  140. package/es/components/viewer2d/state.js +78 -0
  141. package/es/components/viewer2d/utils.js +198 -0
  142. package/es/components/viewer2d/vertex.js +65 -0
  143. package/es/components/viewer2d/viewer2d.js +1398 -0
  144. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +2592 -0
  145. package/es/components/viewer3d/dcm.js +401 -0
  146. package/es/components/viewer3d/fbm.js +414 -0
  147. package/es/components/viewer3d/front3D.js +66 -0
  148. package/es/components/viewer3d/grid-creator.js +25 -0
  149. package/es/components/viewer3d/grids/grid-horizontal-streak.js +36 -0
  150. package/es/components/viewer3d/grids/grid-streak.js +27 -0
  151. package/es/components/viewer3d/grids/grid-vertical-streak.js +36 -0
  152. package/es/components/viewer3d/libs/first-person-controls.js +67 -0
  153. package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +1281 -0
  154. package/es/components/viewer3d/libs/mtl-loader.js +357 -0
  155. package/es/components/viewer3d/libs/obj-loader.js +462 -0
  156. package/es/components/viewer3d/libs/orbit-controls.js +699 -0
  157. package/es/components/viewer3d/libs/pointer-lock-controls.js +46 -0
  158. package/es/components/viewer3d/lrm.js +305 -0
  159. package/es/components/viewer3d/model.js +708 -0
  160. package/es/components/viewer3d/pointer-lock-navigation.js +115 -0
  161. package/es/components/viewer3d/ruler-utils/itemRect.js +61 -0
  162. package/es/components/viewer3d/ruler-utils/layer3D.js +495 -0
  163. package/es/components/viewer3d/ruler-utils/ruler3D.js +227 -0
  164. package/es/components/viewer3d/ruler-utils/scene3D.js +60 -0
  165. package/es/components/viewer3d/ruler-utils/state3D.js +18 -0
  166. package/es/components/viewer3d/scene-creator.js +3608 -0
  167. package/es/components/viewer3d/three-memory-cleaner.js +51 -0
  168. package/es/components/viewer3d/viewer3d-first-person.js +315 -0
  169. package/es/components/viewer3d/viewer3d.js +2527 -0
  170. package/es/constants.js +636 -0
  171. package/es/index.js +16 -0
  172. package/es/models.js +510 -0
  173. package/es/plugins/SVGLoader.js +1412 -0
  174. package/es/plugins/autosave.js +33 -0
  175. package/es/plugins/console-debugger.js +37 -0
  176. package/es/plugins/export.js +9 -0
  177. package/es/plugins/keyboard.js +101 -0
  178. package/es/reducers/areas-reducer.js +12 -0
  179. package/es/reducers/export.js +25 -0
  180. package/es/reducers/groups-reducer.js +38 -0
  181. package/es/reducers/holes-reducer.js +62 -0
  182. package/es/reducers/items-reducer.js +140 -0
  183. package/es/reducers/lines-reducer.js +45 -0
  184. package/es/reducers/project-reducer.js +129 -0
  185. package/es/reducers/reducer.js +19 -0
  186. package/es/reducers/scene-reducer.js +28 -0
  187. package/es/reducers/user-reducer.js +40 -0
  188. package/es/reducers/vertices-reducer.js +19 -0
  189. package/es/reducers/viewer2d-reducer.js +75 -0
  190. package/es/reducers/viewer3d-reducer.js +56 -0
  191. package/es/shared-style.js +66 -0
  192. package/es/styles/export.js +5 -0
  193. package/es/styles/tabs.css +40 -0
  194. package/es/translator/en.js +104 -0
  195. package/es/translator/it.js +79 -0
  196. package/es/translator/ru.js +79 -0
  197. package/es/translator/translator.js +84 -0
  198. package/es/utils/browser.js +33 -0
  199. package/es/utils/email-validator.js +4 -0
  200. package/es/utils/export.js +25 -0
  201. package/es/utils/geometry.js +2420 -0
  202. package/es/utils/get-edges-of-subgraphs.js +27 -0
  203. package/es/utils/graph-cycles.js +237 -0
  204. package/es/utils/graph-inner-cycles.js +46 -0
  205. package/es/utils/graph.js +150 -0
  206. package/es/utils/helper.js +268 -0
  207. package/es/utils/history.js +29 -0
  208. package/es/utils/id-broker.js +19 -0
  209. package/es/utils/logger.js +8 -0
  210. package/es/utils/math.js +50 -0
  211. package/es/utils/molding.js +871 -0
  212. package/es/utils/name-generator.js +18 -0
  213. package/es/utils/objects-utils.js +50 -0
  214. package/es/utils/phone-validator.js +4 -0
  215. package/es/utils/process-black-list.js +18 -0
  216. package/es/utils/react-if.js +18 -0
  217. package/es/utils/snap-scene.js +99 -0
  218. package/es/utils/snap.js +237 -0
  219. package/es/utils/summarizeCart.js +24 -0
  220. package/es/utils/threeCSG.es6.js +498 -0
  221. package/es/version.js +2 -0
  222. package/lib/catalog/properties/property-string.js +55 -0
  223. package/lib/catalog/properties/property-toggle.js +46 -0
  224. package/lib/catalog/properties/shared-property-style.js +20 -0
  225. package/lib/catalog/utils/FuseUtils.js +88 -0
  226. package/lib/catalog/utils/exporter.js +155 -0
  227. package/lib/catalog/utils/geom-utils.js +205 -0
  228. package/lib/catalog/utils/item-loader.js +1533 -0
  229. package/lib/catalog/utils/load-obj.js +99 -0
  230. package/lib/catalog/utils/mtl-loader.js +363 -0
  231. package/lib/catalog/utils/obj-loader.js +482 -0
  232. package/lib/class/FuseUtils.js +88 -0
  233. package/lib/class/area.js +150 -0
  234. package/lib/class/export.js +96 -0
  235. package/lib/class/group.js +445 -0
  236. package/lib/class/guide.js +67 -0
  237. package/lib/class/hole.js +934 -0
  238. package/lib/class/item.js +1889 -0
  239. package/lib/class/layer.js +672 -0
  240. package/lib/class/line.js +1186 -0
  241. package/lib/class/project.js +799 -0
  242. package/lib/class/vertex.js +207 -0
  243. package/lib/components/content.js +116 -0
  244. package/lib/components/disclaimer/disclaimer.js +105 -0
  245. package/lib/components/export.js +33 -0
  246. package/lib/components/style/button.js +120 -0
  247. package/lib/components/style/cancel-button.js +29 -0
  248. package/lib/components/style/content-container.js +40 -0
  249. package/lib/components/style/content-title.js +37 -0
  250. package/lib/components/style/delete-button.js +34 -0
  251. package/lib/components/style/export.js +121 -0
  252. package/lib/components/style/form-block.js +31 -0
  253. package/lib/components/style/form-color-input.js +34 -0
  254. package/lib/components/style/form-label.js +33 -0
  255. package/lib/components/style/form-number-input.js +220 -0
  256. package/lib/components/style/form-number-input_2.js +213 -0
  257. package/lib/components/style/form-select.js +75 -0
  258. package/lib/components/style/form-slider.js +68 -0
  259. package/lib/components/style/form-submit-button.js +35 -0
  260. package/lib/components/style/form-text-input.js +101 -0
  261. package/lib/components/viewer2d/area.js +88 -0
  262. package/lib/components/viewer2d/export.js +121 -0
  263. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +44 -0
  264. package/lib/components/viewer2d/grids/grid-streak.js +44 -0
  265. package/lib/components/viewer2d/grids/grid-vertical-streak.js +44 -0
  266. package/lib/components/viewer2d/grids/grids.js +44 -0
  267. package/lib/components/viewer2d/group.js +62 -0
  268. package/lib/components/viewer2d/item.js +521 -0
  269. package/lib/components/viewer2d/layer.js +171 -0
  270. package/lib/components/viewer2d/line.js +892 -0
  271. package/lib/components/viewer2d/ruler.js +107 -0
  272. package/lib/components/viewer2d/rulerDist.js +153 -0
  273. package/lib/components/viewer2d/rulerX.js +158 -0
  274. package/lib/components/viewer2d/rulerY.js +160 -0
  275. package/lib/components/viewer2d/scene.js +147 -0
  276. package/lib/components/viewer2d/snap.js +83 -0
  277. package/lib/components/viewer2d/state.js +87 -0
  278. package/lib/components/viewer2d/utils.js +210 -0
  279. package/lib/components/viewer2d/vertex.js +74 -0
  280. package/lib/components/viewer2d/viewer2d.js +1405 -0
  281. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +2597 -0
  282. package/lib/components/viewer3d/dcm.js +407 -0
  283. package/lib/components/viewer3d/fbm.js +420 -0
  284. package/lib/components/viewer3d/front3D.js +75 -0
  285. package/lib/components/viewer3d/grid-creator.js +34 -0
  286. package/lib/components/viewer3d/grids/grid-horizontal-streak.js +44 -0
  287. package/lib/components/viewer3d/grids/grid-streak.js +35 -0
  288. package/lib/components/viewer3d/grids/grid-vertical-streak.js +44 -0
  289. package/lib/components/viewer3d/libs/first-person-controls.js +74 -0
  290. package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +1287 -0
  291. package/lib/components/viewer3d/libs/mtl-loader.js +363 -0
  292. package/lib/components/viewer3d/libs/obj-loader.js +468 -0
  293. package/lib/components/viewer3d/libs/orbit-controls.js +705 -0
  294. package/lib/components/viewer3d/libs/pointer-lock-controls.js +52 -0
  295. package/lib/components/viewer3d/lrm.js +311 -0
  296. package/lib/components/viewer3d/model.js +714 -0
  297. package/lib/components/viewer3d/pointer-lock-navigation.js +122 -0
  298. package/lib/components/viewer3d/ruler-utils/itemRect.js +68 -0
  299. package/lib/components/viewer3d/ruler-utils/layer3D.js +502 -0
  300. package/lib/components/viewer3d/ruler-utils/ruler3D.js +234 -0
  301. package/lib/components/viewer3d/ruler-utils/scene3D.js +68 -0
  302. package/lib/components/viewer3d/ruler-utils/state3D.js +25 -0
  303. package/lib/components/viewer3d/scene-creator.js +3642 -0
  304. package/lib/components/viewer3d/three-memory-cleaner.js +60 -0
  305. package/lib/components/viewer3d/viewer3d-first-person.js +320 -0
  306. package/lib/components/viewer3d/viewer3d.js +2532 -0
  307. package/lib/constants.js +645 -0
  308. package/lib/index.js +96 -0
  309. package/lib/models.js +517 -0
  310. package/lib/plugins/SVGLoader.js +1417 -0
  311. package/lib/plugins/autosave.js +39 -0
  312. package/lib/plugins/console-debugger.js +44 -0
  313. package/lib/plugins/export.js +33 -0
  314. package/lib/plugins/keyboard.js +107 -0
  315. package/lib/reducers/areas-reducer.js +18 -0
  316. package/lib/reducers/export.js +97 -0
  317. package/lib/reducers/groups-reducer.js +44 -0
  318. package/lib/reducers/holes-reducer.js +68 -0
  319. package/lib/reducers/items-reducer.js +146 -0
  320. package/lib/reducers/lines-reducer.js +51 -0
  321. package/lib/reducers/project-reducer.js +135 -0
  322. package/lib/reducers/reducer.js +26 -0
  323. package/lib/reducers/scene-reducer.js +34 -0
  324. package/lib/reducers/user-reducer.js +46 -0
  325. package/lib/reducers/vertices-reducer.js +25 -0
  326. package/lib/reducers/viewer2d-reducer.js +82 -0
  327. package/lib/reducers/viewer3d-reducer.js +63 -0
  328. package/lib/shared-style.js +72 -0
  329. package/lib/styles/export.js +13 -0
  330. package/lib/translator/en.js +110 -0
  331. package/lib/translator/it.js +85 -0
  332. package/lib/translator/ru.js +85 -0
  333. package/lib/translator/translator.js +90 -0
  334. package/lib/utils/browser.js +40 -0
  335. package/lib/utils/email-validator.js +10 -0
  336. package/lib/utils/export.js +56 -0
  337. package/lib/utils/geometry.js +2516 -0
  338. package/lib/utils/get-edges-of-subgraphs.js +34 -0
  339. package/lib/utils/graph-cycles.js +240 -0
  340. package/lib/utils/graph-inner-cycles.js +54 -0
  341. package/lib/utils/graph.js +157 -0
  342. package/lib/utils/helper.js +291 -0
  343. package/lib/utils/history.js +36 -0
  344. package/lib/utils/id-broker.js +25 -0
  345. package/lib/utils/logger.js +14 -0
  346. package/lib/utils/math.js +57 -0
  347. package/lib/utils/molding.js +895 -0
  348. package/lib/utils/name-generator.js +23 -0
  349. package/lib/utils/objects-utils.js +60 -0
  350. package/lib/utils/phone-validator.js +10 -0
  351. package/lib/utils/process-black-list.js +24 -0
  352. package/lib/utils/react-if.js +24 -0
  353. package/lib/utils/snap-scene.js +105 -0
  354. package/lib/utils/snap.js +249 -0
  355. package/lib/utils/summarizeCart.js +30 -0
  356. package/lib/utils/threeCSG.es6.js +503 -0
  357. package/lib/version.js +8 -0
  358. package/package.json +3 -3
@@ -0,0 +1,119 @@
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
+ }
@@ -0,0 +1,313 @@
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
+ }
@@ -0,0 +1,81 @@
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
+ }