kitchen-simulator 5.0.0-test.3 → 5.0.0-test.4

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 (694) hide show
  1. package/es/KitchenConfigurator.js +1 -1
  2. package/es/KitchenConfigurator.js.map +1 -1
  3. package/package.json +8 -12
  4. package/src/KitchenConfigurator.jsx +1 -1
  5. package/lib/@history.js +0 -11
  6. package/lib/@history.js.map +0 -1
  7. package/lib/AppContext.js +0 -11
  8. package/lib/AppContext.js.map +0 -1
  9. package/lib/KitchenConfigurator.js +0 -1353
  10. package/lib/KitchenConfigurator.js.map +0 -1
  11. package/lib/KitchenConfiguratorApp.js +0 -539
  12. package/lib/KitchenConfiguratorApp.js.map +0 -1
  13. package/lib/actions/area-actions.js +0 -22
  14. package/lib/actions/area-actions.js.map +0 -1
  15. package/lib/actions/export.js +0 -44
  16. package/lib/actions/export.js.map +0 -1
  17. package/lib/actions/groups-actions.js +0 -108
  18. package/lib/actions/groups-actions.js.map +0 -1
  19. package/lib/actions/holes-actions.js +0 -141
  20. package/lib/actions/holes-actions.js.map +0 -1
  21. package/lib/actions/items-actions.js +0 -365
  22. package/lib/actions/items-actions.js.map +0 -1
  23. package/lib/actions/lines-actions.js +0 -98
  24. package/lib/actions/lines-actions.js.map +0 -1
  25. package/lib/actions/project-actions.js +0 -333
  26. package/lib/actions/project-actions.js.map +0 -1
  27. package/lib/actions/scene-actions.js +0 -44
  28. package/lib/actions/scene-actions.js.map +0 -1
  29. package/lib/actions/user-actions.js +0 -69
  30. package/lib/actions/user-actions.js.map +0 -1
  31. package/lib/actions/vertices-actions.js +0 -36
  32. package/lib/actions/vertices-actions.js.map +0 -1
  33. package/lib/actions/viewer2d-actions.js +0 -74
  34. package/lib/actions/viewer2d-actions.js.map +0 -1
  35. package/lib/actions/viewer3d-actions.js +0 -33
  36. package/lib/actions/viewer3d-actions.js.map +0 -1
  37. package/lib/catalog/areas/area/planner-element.js +0 -47
  38. package/lib/catalog/areas/area/planner-element.js.map +0 -1
  39. package/lib/catalog/catalog.js +0 -283
  40. package/lib/catalog/catalog.js.map +0 -1
  41. package/lib/catalog/factories/area-factory-3d.js +0 -192
  42. package/lib/catalog/factories/area-factory-3d.js.map +0 -1
  43. package/lib/catalog/factories/area-factory.js +0 -90
  44. package/lib/catalog/factories/area-factory.js.map +0 -1
  45. package/lib/catalog/factories/export.js +0 -26
  46. package/lib/catalog/factories/export.js.map +0 -1
  47. package/lib/catalog/factories/wall-factory-3d.js +0 -213
  48. package/lib/catalog/factories/wall-factory-3d.js.map +0 -1
  49. package/lib/catalog/factories/wall-factory.js +0 -279
  50. package/lib/catalog/factories/wall-factory.js.map +0 -1
  51. package/lib/catalog/holes/door-closet/planner-element.js +0 -232
  52. package/lib/catalog/holes/door-closet/planner-element.js.map +0 -1
  53. package/lib/catalog/holes/door-double/planner-element.js +0 -325
  54. package/lib/catalog/holes/door-double/planner-element.js.map +0 -1
  55. package/lib/catalog/holes/door-exterior/planner-element.js +0 -225
  56. package/lib/catalog/holes/door-exterior/planner-element.js.map +0 -1
  57. package/lib/catalog/holes/door-interior/planner-element.js +0 -237
  58. package/lib/catalog/holes/door-interior/planner-element.js.map +0 -1
  59. package/lib/catalog/holes/door-panic/planner-element.js +0 -513
  60. package/lib/catalog/holes/door-panic/planner-element.js.map +0 -1
  61. package/lib/catalog/holes/door-panic-double/planner-element.js +0 -473
  62. package/lib/catalog/holes/door-panic-double/planner-element.js.map +0 -1
  63. package/lib/catalog/holes/door-sliding/planner-element.js +0 -235
  64. package/lib/catalog/holes/door-sliding/planner-element.js.map +0 -1
  65. package/lib/catalog/holes/doorway-framed/planner-element.js +0 -155
  66. package/lib/catalog/holes/doorway-framed/planner-element.js.map +0 -1
  67. package/lib/catalog/holes/doorway-frameless/planner-element.js +0 -114
  68. package/lib/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
  69. package/lib/catalog/holes/window-clear/planner-element.js +0 -176
  70. package/lib/catalog/holes/window-clear/planner-element.js.map +0 -1
  71. package/lib/catalog/holes/window-cross/planner-element.js +0 -175
  72. package/lib/catalog/holes/window-cross/planner-element.js.map +0 -1
  73. package/lib/catalog/holes/window-double-hung/planner-element.js +0 -313
  74. package/lib/catalog/holes/window-double-hung/planner-element.js.map +0 -1
  75. package/lib/catalog/holes/window-vertical/planner-element.js +0 -286
  76. package/lib/catalog/holes/window-vertical/planner-element.js.map +0 -1
  77. package/lib/catalog/lines/wall/planner-element.js +0 -77
  78. package/lib/catalog/lines/wall/planner-element.js.map +0 -1
  79. package/lib/catalog/molding/molding-dcm/planner-element.js +0 -39
  80. package/lib/catalog/molding/molding-dcm/planner-element.js.map +0 -1
  81. package/lib/catalog/molding/molding-fbm/planner-element.js +0 -39
  82. package/lib/catalog/molding/molding-fbm/planner-element.js.map +0 -1
  83. package/lib/catalog/molding/molding-lrm/planner-element.js +0 -39
  84. package/lib/catalog/molding/molding-lrm/planner-element.js.map +0 -1
  85. package/lib/catalog/properties/export.js +0 -82
  86. package/lib/catalog/properties/export.js.map +0 -1
  87. package/lib/catalog/properties/property-checkbox.js +0 -79
  88. package/lib/catalog/properties/property-checkbox.js.map +0 -1
  89. package/lib/catalog/properties/property-color.js +0 -47
  90. package/lib/catalog/properties/property-color.js.map +0 -1
  91. package/lib/catalog/properties/property-enum.js +0 -63
  92. package/lib/catalog/properties/property-enum.js.map +0 -1
  93. package/lib/catalog/properties/property-hidden.js +0 -27
  94. package/lib/catalog/properties/property-hidden.js.map +0 -1
  95. package/lib/catalog/properties/property-lenght-measure.js +0 -109
  96. package/lib/catalog/properties/property-lenght-measure.js.map +0 -1
  97. package/lib/catalog/properties/property-length-measure.js +0 -93
  98. package/lib/catalog/properties/property-length-measure.js.map +0 -1
  99. package/lib/catalog/properties/property-length-measure_hole.js +0 -109
  100. package/lib/catalog/properties/property-length-measure_hole.js.map +0 -1
  101. package/lib/catalog/properties/property-number.js +0 -56
  102. package/lib/catalog/properties/property-number.js.map +0 -1
  103. package/lib/catalog/properties/property-read-only.js +0 -34
  104. package/lib/catalog/properties/property-read-only.js.map +0 -1
  105. package/lib/catalog/properties/property-string.js +0 -56
  106. package/lib/catalog/properties/property-string.js.map +0 -1
  107. package/lib/catalog/properties/property-toggle.js +0 -47
  108. package/lib/catalog/properties/property-toggle.js.map +0 -1
  109. package/lib/catalog/properties/shared-property-style.js +0 -21
  110. package/lib/catalog/properties/shared-property-style.js.map +0 -1
  111. package/lib/catalog/utils/FuseUtils.js +0 -89
  112. package/lib/catalog/utils/FuseUtils.js.map +0 -1
  113. package/lib/catalog/utils/exporter.js +0 -156
  114. package/lib/catalog/utils/exporter.js.map +0 -1
  115. package/lib/catalog/utils/geom-utils.js +0 -206
  116. package/lib/catalog/utils/geom-utils.js.map +0 -1
  117. package/lib/catalog/utils/item-loader.js +0 -1534
  118. package/lib/catalog/utils/item-loader.js.map +0 -1
  119. package/lib/catalog/utils/load-obj.js +0 -100
  120. package/lib/catalog/utils/load-obj.js.map +0 -1
  121. package/lib/catalog/utils/mtl-loader.js +0 -360
  122. package/lib/catalog/utils/mtl-loader.js.map +0 -1
  123. package/lib/catalog/utils/obj-loader.js +0 -479
  124. package/lib/catalog/utils/obj-loader.js.map +0 -1
  125. package/lib/class/FuseUtils.js +0 -89
  126. package/lib/class/FuseUtils.js.map +0 -1
  127. package/lib/class/area.js +0 -151
  128. package/lib/class/area.js.map +0 -1
  129. package/lib/class/export.js +0 -97
  130. package/lib/class/export.js.map +0 -1
  131. package/lib/class/group.js +0 -446
  132. package/lib/class/group.js.map +0 -1
  133. package/lib/class/guide.js +0 -68
  134. package/lib/class/guide.js.map +0 -1
  135. package/lib/class/hole.js +0 -935
  136. package/lib/class/hole.js.map +0 -1
  137. package/lib/class/item.js +0 -1894
  138. package/lib/class/item.js.map +0 -1
  139. package/lib/class/layer.js +0 -673
  140. package/lib/class/layer.js.map +0 -1
  141. package/lib/class/line.js +0 -1296
  142. package/lib/class/line.js.map +0 -1
  143. package/lib/class/project.js +0 -829
  144. package/lib/class/project.js.map +0 -1
  145. package/lib/class/vertex.js +0 -272
  146. package/lib/class/vertex.js.map +0 -1
  147. package/lib/components/atoms/Snackbar/index.js +0 -57
  148. package/lib/components/atoms/Snackbar/index.js.map +0 -1
  149. package/lib/components/atoms/radio-button/index.js +0 -33
  150. package/lib/components/atoms/radio-button/index.js.map +0 -1
  151. package/lib/components/atoms/radio-button/styles.js +0 -12
  152. package/lib/components/atoms/radio-button/styles.js.map +0 -1
  153. package/lib/components/button/MainButton.js +0 -98
  154. package/lib/components/button/MainButton.js.map +0 -1
  155. package/lib/components/button/ToggleMeasureButton.js +0 -63
  156. package/lib/components/button/ToggleMeasureButton.js.map +0 -1
  157. package/lib/components/catalog-view/catalog-breadcrumb.js +0 -61
  158. package/lib/components/catalog-view/catalog-breadcrumb.js.map +0 -1
  159. package/lib/components/catalog-view/catalog-item.js +0 -233
  160. package/lib/components/catalog-view/catalog-item.js.map +0 -1
  161. package/lib/components/catalog-view/catalog-list.js +0 -189
  162. package/lib/components/catalog-view/catalog-list.js.map +0 -1
  163. package/lib/components/catalog-view/catalog-page-item.js +0 -137
  164. package/lib/components/catalog-view/catalog-page-item.js.map +0 -1
  165. package/lib/components/catalog-view/catalog-turn-back-page-item.js +0 -113
  166. package/lib/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
  167. package/lib/components/configurator/custom-configurator.js +0 -101
  168. package/lib/components/configurator/custom-configurator.js.map +0 -1
  169. package/lib/components/configurator/project-configurator.js +0 -138
  170. package/lib/components/configurator/project-configurator.js.map +0 -1
  171. package/lib/components/content.js +0 -132
  172. package/lib/components/content.js.map +0 -1
  173. package/lib/components/export.js +0 -90
  174. package/lib/components/export.js.map +0 -1
  175. package/lib/components/firstsetting/button/styles.js +0 -34
  176. package/lib/components/firstsetting/button/styles.js.map +0 -1
  177. package/lib/components/firstsetting/export.js +0 -16
  178. package/lib/components/firstsetting/export.js.map +0 -1
  179. package/lib/components/firstsetting/firstsetting-content-button.js +0 -224
  180. package/lib/components/firstsetting/firstsetting-content-button.js.map +0 -1
  181. package/lib/components/firstsetting/firstsetting-toggle-button.js +0 -133
  182. package/lib/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
  183. package/lib/components/firstsetting/firstsetting.js +0 -633
  184. package/lib/components/firstsetting/firstsetting.js.map +0 -1
  185. package/lib/components/footerbar/button/ControlButton.js +0 -79
  186. package/lib/components/footerbar/button/ControlButton.js.map +0 -1
  187. package/lib/components/footerbar/button/DirectionButton.js +0 -76
  188. package/lib/components/footerbar/button/DirectionButton.js.map +0 -1
  189. package/lib/components/footerbar/button/DirectionPanSpinButton.js +0 -57
  190. package/lib/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
  191. package/lib/components/footerbar/button/ToggleButton.js +0 -83
  192. package/lib/components/footerbar/button/ToggleButton.js.map +0 -1
  193. package/lib/components/footerbar/button/ToggleConvertButton.js +0 -80
  194. package/lib/components/footerbar/button/ToggleConvertButton.js.map +0 -1
  195. package/lib/components/footerbar/button/ToggleMeasureButton.js +0 -59
  196. package/lib/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
  197. package/lib/components/footerbar/button/styles.js +0 -29
  198. package/lib/components/footerbar/button/styles.js.map +0 -1
  199. package/lib/components/footerbar/export.js +0 -16
  200. package/lib/components/footerbar/export.js.map +0 -1
  201. package/lib/components/footerbar/footer-content-button.js +0 -224
  202. package/lib/components/footerbar/footer-content-button.js.map +0 -1
  203. package/lib/components/footerbar/footer-toggle-button.js +0 -133
  204. package/lib/components/footerbar/footer-toggle-button.js.map +0 -1
  205. package/lib/components/footerbar/footerbar.js +0 -808
  206. package/lib/components/footerbar/footerbar.js.map +0 -1
  207. package/lib/components/footerbar/styles.js +0 -41
  208. package/lib/components/footerbar/styles.js.map +0 -1
  209. package/lib/components/header/button/MenuButton.js +0 -77
  210. package/lib/components/header/button/MenuButton.js.map +0 -1
  211. package/lib/components/header/button/SaveButton.js +0 -57
  212. package/lib/components/header/button/SaveButton.js.map +0 -1
  213. package/lib/components/header/button/styles.js +0 -68
  214. package/lib/components/header/button/styles.js.map +0 -1
  215. package/lib/components/header/export.js +0 -12
  216. package/lib/components/header/export.js.map +0 -1
  217. package/lib/components/header/header.js +0 -556
  218. package/lib/components/header/header.js.map +0 -1
  219. package/lib/components/header/styles.js +0 -47
  220. package/lib/components/header/styles.js.map +0 -1
  221. package/lib/components/login/Login.js +0 -94
  222. package/lib/components/login/Login.js.map +0 -1
  223. package/lib/components/login/LoginForm/index.js +0 -140
  224. package/lib/components/login/LoginForm/index.js.map +0 -1
  225. package/lib/components/login/Register.js +0 -104
  226. package/lib/components/login/Register.js.map +0 -1
  227. package/lib/components/login/RegisterForm/index.js +0 -237
  228. package/lib/components/login/RegisterForm/index.js.map +0 -1
  229. package/lib/components/login/jwtService.js +0 -239
  230. package/lib/components/login/jwtService.js.map +0 -1
  231. package/lib/components/molecules/slider/index.js +0 -22
  232. package/lib/components/molecules/slider/index.js.map +0 -1
  233. package/lib/components/molecules/slider/styles.js +0 -2
  234. package/lib/components/molecules/slider/styles.js.map +0 -1
  235. package/lib/components/myprojects/export.js +0 -12
  236. package/lib/components/myprojects/export.js.map +0 -1
  237. package/lib/components/myprojects/index.js +0 -453
  238. package/lib/components/myprojects/index.js.map +0 -1
  239. package/lib/components/myprojects/styles.js +0 -31
  240. package/lib/components/myprojects/styles.js.map +0 -1
  241. package/lib/components/sidebar/custom-accordion.js +0 -45
  242. package/lib/components/sidebar/custom-accordion.js.map +0 -1
  243. package/lib/components/sidebar/export.js +0 -50
  244. package/lib/components/sidebar/export.js.map +0 -1
  245. package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -74
  246. package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
  247. package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -124
  248. package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
  249. package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -135
  250. package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
  251. package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -260
  252. package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
  253. package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -84
  254. package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
  255. package/lib/components/sidebar/panel-element-editor/element-editor.js +0 -884
  256. package/lib/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
  257. package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
  258. package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
  259. package/lib/components/sidebar/panel-element-editor/panel-element-editor.js +0 -56
  260. package/lib/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
  261. package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -125
  262. package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
  263. package/lib/components/sidebar/panel-group-editor.js +0 -218
  264. package/lib/components/sidebar/panel-group-editor.js.map +0 -1
  265. package/lib/components/sidebar/panel-groups.js +0 -274
  266. package/lib/components/sidebar/panel-groups.js.map +0 -1
  267. package/lib/components/sidebar/panel-guides.js +0 -192
  268. package/lib/components/sidebar/panel-guides.js.map +0 -1
  269. package/lib/components/sidebar/panel-layer-elements.js +0 -258
  270. package/lib/components/sidebar/panel-layer-elements.js.map +0 -1
  271. package/lib/components/sidebar/panel-layers.js +0 -347
  272. package/lib/components/sidebar/panel-layers.js.map +0 -1
  273. package/lib/components/sidebar/panel.js +0 -110
  274. package/lib/components/sidebar/panel.js.map +0 -1
  275. package/lib/components/sidebar/sidebar.js +0 -117
  276. package/lib/components/sidebar/sidebar.js.map +0 -1
  277. package/lib/components/sidebar/toolbar-panel.js +0 -171
  278. package/lib/components/sidebar/toolbar-panel.js.map +0 -1
  279. package/lib/components/sign/export.js +0 -18
  280. package/lib/components/sign/export.js.map +0 -1
  281. package/lib/components/sign/main/index.js +0 -567
  282. package/lib/components/sign/main/index.js.map +0 -1
  283. package/lib/components/sign/main/styles.js +0 -27
  284. package/lib/components/sign/main/styles.js.map +0 -1
  285. package/lib/components/style/button.js +0 -121
  286. package/lib/components/style/button.js.map +0 -1
  287. package/lib/components/style/cancel-button.js +0 -30
  288. package/lib/components/style/cancel-button.js.map +0 -1
  289. package/lib/components/style/content-container.js +0 -41
  290. package/lib/components/style/content-container.js.map +0 -1
  291. package/lib/components/style/content-title.js +0 -38
  292. package/lib/components/style/content-title.js.map +0 -1
  293. package/lib/components/style/delete-button.js +0 -35
  294. package/lib/components/style/delete-button.js.map +0 -1
  295. package/lib/components/style/export.js +0 -122
  296. package/lib/components/style/export.js.map +0 -1
  297. package/lib/components/style/form-block.js +0 -32
  298. package/lib/components/style/form-block.js.map +0 -1
  299. package/lib/components/style/form-color-input.js +0 -35
  300. package/lib/components/style/form-color-input.js.map +0 -1
  301. package/lib/components/style/form-label.js +0 -34
  302. package/lib/components/style/form-label.js.map +0 -1
  303. package/lib/components/style/form-number-input.js +0 -197
  304. package/lib/components/style/form-number-input.js.map +0 -1
  305. package/lib/components/style/form-number-input_2.js +0 -214
  306. package/lib/components/style/form-number-input_2.js.map +0 -1
  307. package/lib/components/style/form-select.js +0 -30
  308. package/lib/components/style/form-select.js.map +0 -1
  309. package/lib/components/style/form-slider.js +0 -53
  310. package/lib/components/style/form-slider.js.map +0 -1
  311. package/lib/components/style/form-submit-button.js +0 -36
  312. package/lib/components/style/form-submit-button.js.map +0 -1
  313. package/lib/components/style/form-text-input.js +0 -84
  314. package/lib/components/style/form-text-input.js.map +0 -1
  315. package/lib/components/toolbar/button/ControlButton.js +0 -76
  316. package/lib/components/toolbar/button/ControlButton.js.map +0 -1
  317. package/lib/components/toolbar/button/DirectionButton.js +0 -57
  318. package/lib/components/toolbar/button/DirectionButton.js.map +0 -1
  319. package/lib/components/toolbar/button/RightButton.js +0 -140
  320. package/lib/components/toolbar/button/RightButton.js.map +0 -1
  321. package/lib/components/toolbar/button/ToggleButton.js +0 -66
  322. package/lib/components/toolbar/button/ToggleButton.js.map +0 -1
  323. package/lib/components/toolbar/button/index.js +0 -94
  324. package/lib/components/toolbar/button/index.js.map +0 -1
  325. package/lib/components/toolbar/button/styles.js +0 -21
  326. package/lib/components/toolbar/button/styles.js.map +0 -1
  327. package/lib/components/toolbar/components/DoorStyleMenu.js +0 -112
  328. package/lib/components/toolbar/components/DoorStyleMenu.js.map +0 -1
  329. package/lib/components/toolbar/components/Pricing.js +0 -110
  330. package/lib/components/toolbar/components/Pricing.js.map +0 -1
  331. package/lib/components/toolbar/components/ReviewForQuote.js +0 -485
  332. package/lib/components/toolbar/components/ReviewForQuote.js.map +0 -1
  333. package/lib/components/toolbar/export.js +0 -50
  334. package/lib/components/toolbar/export.js.map +0 -1
  335. package/lib/components/toolbar/main/Alert.js +0 -132
  336. package/lib/components/toolbar/main/Alert.js.map +0 -1
  337. package/lib/components/toolbar/main/TakePictureModal.js +0 -109
  338. package/lib/components/toolbar/main/TakePictureModal.js.map +0 -1
  339. package/lib/components/toolbar/main/confirm-popup.js +0 -95
  340. package/lib/components/toolbar/main/confirm-popup.js.map +0 -1
  341. package/lib/components/toolbar/main/index.js +0 -4619
  342. package/lib/components/toolbar/main/index.js.map +0 -1
  343. package/lib/components/toolbar/main/myComponents.js +0 -125
  344. package/lib/components/toolbar/main/myComponents.js.map +0 -1
  345. package/lib/components/toolbar/main/styles.js +0 -73
  346. package/lib/components/toolbar/main/styles.js.map +0 -1
  347. package/lib/components/toolbar/plugin-item.js +0 -156
  348. package/lib/components/toolbar/plugin-item.js.map +0 -1
  349. package/lib/components/toolbar/popup/appliance/appliance-category/index.js +0 -86
  350. package/lib/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
  351. package/lib/components/toolbar/popup/appliance/choose-appliance/index.js +0 -85
  352. package/lib/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
  353. package/lib/components/toolbar/popup/appliance/index.js +0 -89
  354. package/lib/components/toolbar/popup/appliance/index.js.map +0 -1
  355. package/lib/components/toolbar/popup/autosaveprompt/index.js +0 -99
  356. package/lib/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
  357. package/lib/components/toolbar/popup/autosaveprompt/styles.js +0 -16
  358. package/lib/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
  359. package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -86
  360. package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
  361. package/lib/components/toolbar/popup/cabinet/choose-product/index.js +0 -107
  362. package/lib/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
  363. package/lib/components/toolbar/popup/cabinet/index.js +0 -91
  364. package/lib/components/toolbar/popup/cabinet/index.js.map +0 -1
  365. package/lib/components/toolbar/popup/doorStyle/choose-style/index.js +0 -59
  366. package/lib/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
  367. package/lib/components/toolbar/popup/doorStyle/index.js +0 -68
  368. package/lib/components/toolbar/popup/doorStyle/index.js.map +0 -1
  369. package/lib/components/toolbar/popup/doorStyle/style-category/index.js +0 -152
  370. package/lib/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
  371. package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -9
  372. package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
  373. package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -128
  374. package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
  375. package/lib/components/toolbar/popup/downloadsummary/index.js +0 -572
  376. package/lib/components/toolbar/popup/downloadsummary/index.js.map +0 -1
  377. package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -60
  378. package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
  379. package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -200
  380. package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
  381. package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -254
  382. package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
  383. package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1762
  384. package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
  385. package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -96
  386. package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
  387. package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -125
  388. package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
  389. package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1713
  390. package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
  391. package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -184
  392. package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
  393. package/lib/components/toolbar/popup/downloadsummary/showWarranty.js +0 -115
  394. package/lib/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
  395. package/lib/components/toolbar/popup/downloadsummary/styles.js +0 -47
  396. package/lib/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
  397. package/lib/components/toolbar/popup/finishingtouch/category/index.js +0 -44
  398. package/lib/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
  399. package/lib/components/toolbar/popup/finishingtouch/index.js +0 -54
  400. package/lib/components/toolbar/popup/finishingtouch/index.js.map +0 -1
  401. package/lib/components/toolbar/popup/finishingtouch/material-edit.js +0 -163
  402. package/lib/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
  403. package/lib/components/toolbar/popup/finishingtouch/product/index.js +0 -65
  404. package/lib/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
  405. package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -124
  406. package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
  407. package/lib/components/toolbar/popup/floorplan/choose-floor/index.js +0 -255
  408. package/lib/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
  409. package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -20
  410. package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
  411. package/lib/components/toolbar/popup/floorplan/floor-category/index.js +0 -99
  412. package/lib/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
  413. package/lib/components/toolbar/popup/floorplan/index.js +0 -56
  414. package/lib/components/toolbar/popup/floorplan/index.js.map +0 -1
  415. package/lib/components/toolbar/popup/index.js +0 -195
  416. package/lib/components/toolbar/popup/index.js.map +0 -1
  417. package/lib/components/toolbar/popup/newproject/index.js +0 -75
  418. package/lib/components/toolbar/popup/newproject/index.js.map +0 -1
  419. package/lib/components/toolbar/popup/newproject/styles.js +0 -16
  420. package/lib/components/toolbar/popup/newproject/styles.js.map +0 -1
  421. package/lib/components/toolbar/popup/product/appliance.js +0 -73
  422. package/lib/components/toolbar/popup/product/appliance.js.map +0 -1
  423. package/lib/components/toolbar/popup/product/cabinetproduct.js +0 -33
  424. package/lib/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
  425. package/lib/components/toolbar/popup/product/doorstyle.js +0 -59
  426. package/lib/components/toolbar/popup/product/doorstyle.js.map +0 -1
  427. package/lib/components/toolbar/popup/product/doorstyleproduct.js +0 -59
  428. package/lib/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
  429. package/lib/components/toolbar/popup/product/floor.js +0 -59
  430. package/lib/components/toolbar/popup/product/floor.js.map +0 -1
  431. package/lib/components/toolbar/popup/product/floorproduct.js +0 -68
  432. package/lib/components/toolbar/popup/product/floorproduct.js.map +0 -1
  433. package/lib/components/toolbar/popup/product/index.js +0 -59
  434. package/lib/components/toolbar/popup/product/index.js.map +0 -1
  435. package/lib/components/toolbar/popup/product/primary.js +0 -71
  436. package/lib/components/toolbar/popup/product/primary.js.map +0 -1
  437. package/lib/components/toolbar/popup/product/productline.js +0 -128
  438. package/lib/components/toolbar/popup/product/productline.js.map +0 -1
  439. package/lib/components/toolbar/popup/product/reviewItem.js +0 -346
  440. package/lib/components/toolbar/popup/product/reviewItem.js.map +0 -1
  441. package/lib/components/toolbar/popup/product/reviewMolding.js +0 -291
  442. package/lib/components/toolbar/popup/product/reviewMolding.js.map +0 -1
  443. package/lib/components/toolbar/popup/product/styles.js +0 -79
  444. package/lib/components/toolbar/popup/product/styles.js.map +0 -1
  445. package/lib/components/toolbar/popup/savedesign/FullPictureForm.js +0 -169
  446. package/lib/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
  447. package/lib/components/toolbar/popup/savedesign/index.js +0 -516
  448. package/lib/components/toolbar/popup/savedesign/index.js.map +0 -1
  449. package/lib/components/toolbar/popup/savedesign/styles.js +0 -26
  450. package/lib/components/toolbar/popup/savedesign/styles.js.map +0 -1
  451. package/lib/components/toolbar/popup/setDoorStyleOption/index.js +0 -64
  452. package/lib/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
  453. package/lib/components/toolbar/popup/styles.js +0 -104
  454. package/lib/components/toolbar/popup/styles.js.map +0 -1
  455. package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -166
  456. package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
  457. package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -93
  458. package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
  459. package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -45
  460. package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
  461. package/lib/components/toolbar/popup/submitforquote/StepDots.js +0 -40
  462. package/lib/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
  463. package/lib/components/toolbar/popup/submitforquote/cart-choice.js +0 -141
  464. package/lib/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
  465. package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -50
  466. package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
  467. package/lib/components/toolbar/popup/submitforquote/index.js +0 -698
  468. package/lib/components/toolbar/popup/submitforquote/index.js.map +0 -1
  469. package/lib/components/toolbar/popup/submitforquote/styles.js +0 -38
  470. package/lib/components/toolbar/popup/submitforquote/styles.js.map +0 -1
  471. package/lib/components/toolbar/popup/submitprompt/index.js +0 -79
  472. package/lib/components/toolbar/popup/submitprompt/index.js.map +0 -1
  473. package/lib/components/toolbar/popup/submitprompt/styles.js +0 -16
  474. package/lib/components/toolbar/popup/submitprompt/styles.js.map +0 -1
  475. package/lib/components/toolbar/toolbar-button.js +0 -111
  476. package/lib/components/toolbar/toolbar-button.js.map +0 -1
  477. package/lib/components/toolbar/toolbar-load-button.js +0 -36
  478. package/lib/components/toolbar/toolbar-load-button.js.map +0 -1
  479. package/lib/components/toolbar/toolbar-save-button.js +0 -34
  480. package/lib/components/toolbar/toolbar-save-button.js.map +0 -1
  481. package/lib/components/tutorial-view/Modal.js +0 -503
  482. package/lib/components/tutorial-view/Modal.js.map +0 -1
  483. package/lib/components/tutorial-view/styles.js +0 -13
  484. package/lib/components/tutorial-view/styles.js.map +0 -1
  485. package/lib/components/viewer2d/area.js +0 -90
  486. package/lib/components/viewer2d/area.js.map +0 -1
  487. package/lib/components/viewer2d/export.js +0 -122
  488. package/lib/components/viewer2d/export.js.map +0 -1
  489. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -45
  490. package/lib/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
  491. package/lib/components/viewer2d/grids/grid-streak.js +0 -45
  492. package/lib/components/viewer2d/grids/grid-streak.js.map +0 -1
  493. package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -45
  494. package/lib/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
  495. package/lib/components/viewer2d/grids/grids.js +0 -45
  496. package/lib/components/viewer2d/grids/grids.js.map +0 -1
  497. package/lib/components/viewer2d/group.js +0 -63
  498. package/lib/components/viewer2d/group.js.map +0 -1
  499. package/lib/components/viewer2d/item.js +0 -522
  500. package/lib/components/viewer2d/item.js.map +0 -1
  501. package/lib/components/viewer2d/layer.js +0 -172
  502. package/lib/components/viewer2d/layer.js.map +0 -1
  503. package/lib/components/viewer2d/line.js +0 -899
  504. package/lib/components/viewer2d/line.js.map +0 -1
  505. package/lib/components/viewer2d/ruler.js +0 -108
  506. package/lib/components/viewer2d/ruler.js.map +0 -1
  507. package/lib/components/viewer2d/rulerDist.js +0 -154
  508. package/lib/components/viewer2d/rulerDist.js.map +0 -1
  509. package/lib/components/viewer2d/rulerX.js +0 -159
  510. package/lib/components/viewer2d/rulerX.js.map +0 -1
  511. package/lib/components/viewer2d/rulerY.js +0 -161
  512. package/lib/components/viewer2d/rulerY.js.map +0 -1
  513. package/lib/components/viewer2d/scene.js +0 -148
  514. package/lib/components/viewer2d/scene.js.map +0 -1
  515. package/lib/components/viewer2d/snap.js +0 -84
  516. package/lib/components/viewer2d/snap.js.map +0 -1
  517. package/lib/components/viewer2d/state.js +0 -88
  518. package/lib/components/viewer2d/state.js.map +0 -1
  519. package/lib/components/viewer2d/utils.js +0 -174
  520. package/lib/components/viewer2d/utils.js.map +0 -1
  521. package/lib/components/viewer2d/vertex.js +0 -76
  522. package/lib/components/viewer2d/vertex.js.map +0 -1
  523. package/lib/components/viewer2d/viewer2d.js +0 -1409
  524. package/lib/components/viewer2d/viewer2d.js.map +0 -1
  525. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2598
  526. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
  527. package/lib/components/viewer3d/dcm.js +0 -408
  528. package/lib/components/viewer3d/dcm.js.map +0 -1
  529. package/lib/components/viewer3d/fbm.js +0 -421
  530. package/lib/components/viewer3d/fbm.js.map +0 -1
  531. package/lib/components/viewer3d/front3D.js +0 -76
  532. package/lib/components/viewer3d/front3D.js.map +0 -1
  533. package/lib/components/viewer3d/grid-creator.js +0 -35
  534. package/lib/components/viewer3d/grid-creator.js.map +0 -1
  535. package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -45
  536. package/lib/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
  537. package/lib/components/viewer3d/grids/grid-streak.js +0 -36
  538. package/lib/components/viewer3d/grids/grid-streak.js.map +0 -1
  539. package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -45
  540. package/lib/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
  541. package/lib/components/viewer3d/libs/first-person-controls.js +0 -75
  542. package/lib/components/viewer3d/libs/first-person-controls.js.map +0 -1
  543. package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1288
  544. package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
  545. package/lib/components/viewer3d/libs/mtl-loader.js +0 -360
  546. package/lib/components/viewer3d/libs/mtl-loader.js.map +0 -1
  547. package/lib/components/viewer3d/libs/obj-loader.js +0 -465
  548. package/lib/components/viewer3d/libs/obj-loader.js.map +0 -1
  549. package/lib/components/viewer3d/libs/orbit-controls.js +0 -701
  550. package/lib/components/viewer3d/libs/orbit-controls.js.map +0 -1
  551. package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -48
  552. package/lib/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
  553. package/lib/components/viewer3d/lrm.js +0 -312
  554. package/lib/components/viewer3d/lrm.js.map +0 -1
  555. package/lib/components/viewer3d/model.js +0 -715
  556. package/lib/components/viewer3d/model.js.map +0 -1
  557. package/lib/components/viewer3d/pointer-lock-navigation.js +0 -123
  558. package/lib/components/viewer3d/pointer-lock-navigation.js.map +0 -1
  559. package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -69
  560. package/lib/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
  561. package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -503
  562. package/lib/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
  563. package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -235
  564. package/lib/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
  565. package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -70
  566. package/lib/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
  567. package/lib/components/viewer3d/ruler-utils/state3D.js +0 -26
  568. package/lib/components/viewer3d/ruler-utils/state3D.js.map +0 -1
  569. package/lib/components/viewer3d/scene-creator.js +0 -3641
  570. package/lib/components/viewer3d/scene-creator.js.map +0 -1
  571. package/lib/components/viewer3d/three-memory-cleaner.js +0 -61
  572. package/lib/components/viewer3d/three-memory-cleaner.js.map +0 -1
  573. package/lib/components/viewer3d/viewer3d-first-person.js +0 -321
  574. package/lib/components/viewer3d/viewer3d-first-person.js.map +0 -1
  575. package/lib/components/viewer3d/viewer3d.js +0 -2508
  576. package/lib/components/viewer3d/viewer3d.js.map +0 -1
  577. package/lib/components/wizardstep/button/styles.js +0 -67
  578. package/lib/components/wizardstep/button/styles.js.map +0 -1
  579. package/lib/components/wizardstep/export.js +0 -12
  580. package/lib/components/wizardstep/export.js.map +0 -1
  581. package/lib/components/wizardstep/index.js +0 -978
  582. package/lib/components/wizardstep/index.js.map +0 -1
  583. package/lib/components/wizardstep/styles.js +0 -68
  584. package/lib/components/wizardstep/styles.js.map +0 -1
  585. package/lib/components/wizardstep/wizardstep-content-button.js +0 -224
  586. package/lib/components/wizardstep/wizardstep-content-button.js.map +0 -1
  587. package/lib/components/wizardstep/wizardstep-toggle-button.js +0 -133
  588. package/lib/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
  589. package/lib/constants.js +0 -646
  590. package/lib/constants.js.map +0 -1
  591. package/lib/hooks/useCheckCart.js +0 -60
  592. package/lib/hooks/useCheckCart.js.map +0 -1
  593. package/lib/hooks/useGetPricesBySku.js +0 -81
  594. package/lib/hooks/useGetPricesBySku.js.map +0 -1
  595. package/lib/hooks/useValidateToken.js +0 -207
  596. package/lib/hooks/useValidateToken.js.map +0 -1
  597. package/lib/index.js +0 -102
  598. package/lib/index.js.map +0 -1
  599. package/lib/models.js +0 -518
  600. package/lib/models.js.map +0 -1
  601. package/lib/plugins/SVGLoader.js +0 -1418
  602. package/lib/plugins/SVGLoader.js.map +0 -1
  603. package/lib/plugins/autosave.js +0 -40
  604. package/lib/plugins/autosave.js.map +0 -1
  605. package/lib/plugins/console-debugger.js +0 -45
  606. package/lib/plugins/console-debugger.js.map +0 -1
  607. package/lib/plugins/export.js +0 -34
  608. package/lib/plugins/export.js.map +0 -1
  609. package/lib/plugins/keyboard.js +0 -108
  610. package/lib/plugins/keyboard.js.map +0 -1
  611. package/lib/reducers/areas-reducer.js +0 -19
  612. package/lib/reducers/areas-reducer.js.map +0 -1
  613. package/lib/reducers/export.js +0 -98
  614. package/lib/reducers/export.js.map +0 -1
  615. package/lib/reducers/groups-reducer.js +0 -45
  616. package/lib/reducers/groups-reducer.js.map +0 -1
  617. package/lib/reducers/holes-reducer.js +0 -69
  618. package/lib/reducers/holes-reducer.js.map +0 -1
  619. package/lib/reducers/items-reducer.js +0 -147
  620. package/lib/reducers/items-reducer.js.map +0 -1
  621. package/lib/reducers/lines-reducer.js +0 -52
  622. package/lib/reducers/lines-reducer.js.map +0 -1
  623. package/lib/reducers/project-reducer.js +0 -136
  624. package/lib/reducers/project-reducer.js.map +0 -1
  625. package/lib/reducers/reducer.js +0 -27
  626. package/lib/reducers/reducer.js.map +0 -1
  627. package/lib/reducers/scene-reducer.js +0 -35
  628. package/lib/reducers/scene-reducer.js.map +0 -1
  629. package/lib/reducers/user-reducer.js +0 -48
  630. package/lib/reducers/user-reducer.js.map +0 -1
  631. package/lib/reducers/vertices-reducer.js +0 -26
  632. package/lib/reducers/vertices-reducer.js.map +0 -1
  633. package/lib/reducers/viewer2d-reducer.js +0 -83
  634. package/lib/reducers/viewer2d-reducer.js.map +0 -1
  635. package/lib/reducers/viewer3d-reducer.js +0 -64
  636. package/lib/reducers/viewer3d-reducer.js.map +0 -1
  637. package/lib/shared-style.js +0 -73
  638. package/lib/shared-style.js.map +0 -1
  639. package/lib/styles/export.js +0 -14
  640. package/lib/styles/export.js.map +0 -1
  641. package/lib/translator/en.js +0 -111
  642. package/lib/translator/en.js.map +0 -1
  643. package/lib/translator/it.js +0 -86
  644. package/lib/translator/it.js.map +0 -1
  645. package/lib/translator/ru.js +0 -86
  646. package/lib/translator/ru.js.map +0 -1
  647. package/lib/translator/translator.js +0 -91
  648. package/lib/translator/translator.js.map +0 -1
  649. package/lib/utils/browser.js +0 -41
  650. package/lib/utils/browser.js.map +0 -1
  651. package/lib/utils/email-validator.js +0 -11
  652. package/lib/utils/email-validator.js.map +0 -1
  653. package/lib/utils/export.js +0 -57
  654. package/lib/utils/export.js.map +0 -1
  655. package/lib/utils/geometry.js +0 -2329
  656. package/lib/utils/geometry.js.map +0 -1
  657. package/lib/utils/get-edges-of-subgraphs.js +0 -29
  658. package/lib/utils/get-edges-of-subgraphs.js.map +0 -1
  659. package/lib/utils/graph-cycles.js +0 -241
  660. package/lib/utils/graph-cycles.js.map +0 -1
  661. package/lib/utils/graph-inner-cycles.js +0 -55
  662. package/lib/utils/graph-inner-cycles.js.map +0 -1
  663. package/lib/utils/graph.js +0 -152
  664. package/lib/utils/graph.js.map +0 -1
  665. package/lib/utils/helper.js +0 -360
  666. package/lib/utils/helper.js.map +0 -1
  667. package/lib/utils/history.js +0 -37
  668. package/lib/utils/history.js.map +0 -1
  669. package/lib/utils/id-broker.js +0 -26
  670. package/lib/utils/id-broker.js.map +0 -1
  671. package/lib/utils/logger.js +0 -15
  672. package/lib/utils/logger.js.map +0 -1
  673. package/lib/utils/math.js +0 -58
  674. package/lib/utils/math.js.map +0 -1
  675. package/lib/utils/molding.js +0 -864
  676. package/lib/utils/molding.js.map +0 -1
  677. package/lib/utils/name-generator.js +0 -24
  678. package/lib/utils/name-generator.js.map +0 -1
  679. package/lib/utils/objects-utils.js +0 -61
  680. package/lib/utils/objects-utils.js.map +0 -1
  681. package/lib/utils/phone-validator.js +0 -11
  682. package/lib/utils/phone-validator.js.map +0 -1
  683. package/lib/utils/process-black-list.js +0 -25
  684. package/lib/utils/process-black-list.js.map +0 -1
  685. package/lib/utils/react-if.js +0 -25
  686. package/lib/utils/react-if.js.map +0 -1
  687. package/lib/utils/snap-scene.js +0 -106
  688. package/lib/utils/snap-scene.js.map +0 -1
  689. package/lib/utils/snap.js +0 -250
  690. package/lib/utils/snap.js.map +0 -1
  691. package/lib/utils/threeCSG.es6.js +0 -504
  692. package/lib/utils/threeCSG.es6.js.map +0 -1
  693. package/lib/version.js +0 -8
  694. package/lib/version.js.map +0 -1
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _KitchenConfigurator = require("KitchenConfigurator");
8
- var info = {
9
- title: 'area',
10
- tag: ['area'],
11
- description: 'Generic Room',
12
- image: ''
13
- };
14
- var textures = {
15
- parquet: {
16
- name: 'Parquet',
17
- uri: require('./textures/parquet.jpg'),
18
- lengthRepeatScale: 0.004,
19
- heightRepeatScale: 0.004
20
- },
21
- tile1: {
22
- name: 'Tile1',
23
- uri: require('./textures/tile1.jpg'),
24
- lengthRepeatScale: 0.01,
25
- heightRepeatScale: 0.01
26
- },
27
- ceramic: {
28
- name: 'Ceramic Tile',
29
- uri: require('./textures/ceramic-tile.jpg'),
30
- lengthRepeatScale: 0.02,
31
- heightRepeatScale: 0.02
32
- },
33
- strand_porcelain: {
34
- name: 'Strand Porcelain Tile',
35
- uri: require('./textures/strand-porcelain.jpg'),
36
- lengthRepeatScale: 0.02,
37
- heightRepeatScale: 0.02
38
- },
39
- grass: {
40
- name: 'Grass',
41
- uri: require('./textures/grass.jpg'),
42
- lengthRepeatScale: 0.01,
43
- heightRepeatScale: 0.01
44
- }
45
- };
46
- var _default = exports["default"] = _KitchenConfigurator.ElementsFactories.AreaFactory('area', info, textures);
47
- //# sourceMappingURL=planner-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planner-element.js","names":["_KitchenConfigurator","require","info","title","tag","description","image","textures","parquet","name","uri","lengthRepeatScale","heightRepeatScale","tile1","ceramic","strand_porcelain","grass","_default","exports","ElementsFactories","AreaFactory"],"sources":["../../../../src/catalog/areas/area/planner-element.jsx"],"sourcesContent":["import { ElementsFactories } from 'KitchenConfigurator';\r\n\r\nlet info = {\r\n title: 'area',\r\n tag: ['area'],\r\n description: 'Generic Room',\r\n image: ''\r\n};\r\n\r\nlet textures = {\r\n parquet: {\r\n name: 'Parquet',\r\n uri: require('./textures/parquet.jpg'),\r\n lengthRepeatScale: 0.004,\r\n heightRepeatScale: 0.004\r\n },\r\n tile1: {\r\n name: 'Tile1',\r\n uri: require('./textures/tile1.jpg'),\r\n lengthRepeatScale: 0.01,\r\n heightRepeatScale: 0.01\r\n },\r\n ceramic: {\r\n name: 'Ceramic Tile',\r\n uri: require('./textures/ceramic-tile.jpg'),\r\n lengthRepeatScale: 0.02,\r\n heightRepeatScale: 0.02\r\n },\r\n strand_porcelain: {\r\n name: 'Strand Porcelain Tile',\r\n uri: require('./textures/strand-porcelain.jpg'),\r\n lengthRepeatScale: 0.02,\r\n heightRepeatScale: 0.02\r\n },\r\n grass: {\r\n name: 'Grass',\r\n uri: require('./textures/grass.jpg'),\r\n lengthRepeatScale: 0.01,\r\n heightRepeatScale: 0.01\r\n }\r\n};\r\n\r\nexport default ElementsFactories.AreaFactory('area', info, textures);\r\n"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAEA,IAAIC,IAAI,GAAG;EACTC,KAAK,EAAE,MAAM;EACbC,GAAG,EAAE,CAAC,MAAM,CAAC;EACbC,WAAW,EAAE,cAAc;EAC3BC,KAAK,EAAE;AACT,CAAC;AAED,IAAIC,QAAQ,GAAG;EACbC,OAAO,EAAE;IACPC,IAAI,EAAE,SAAS;IACfC,GAAG,EAAET,OAAO,CAAC,wBAAwB,CAAC;IACtCU,iBAAiB,EAAE,KAAK;IACxBC,iBAAiB,EAAE;EACrB,CAAC;EACDC,KAAK,EAAE;IACLJ,IAAI,EAAE,OAAO;IACbC,GAAG,EAAET,OAAO,CAAC,sBAAsB,CAAC;IACpCU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDE,OAAO,EAAE;IACPL,IAAI,EAAE,cAAc;IACpBC,GAAG,EAAET,OAAO,CAAC,6BAA6B,CAAC;IAC3CU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDG,gBAAgB,EAAE;IAChBN,IAAI,EAAE,uBAAuB;IAC7BC,GAAG,EAAET,OAAO,CAAC,iCAAiC,CAAC;IAC/CU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB,CAAC;EACDI,KAAK,EAAE;IACLP,IAAI,EAAE,OAAO;IACbC,GAAG,EAAET,OAAO,CAAC,sBAAsB,CAAC;IACpCU,iBAAiB,EAAE,IAAI;IACvBC,iBAAiB,EAAE;EACrB;AACF,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEaC,sCAAiB,CAACC,WAAW,CAAC,MAAM,EAAElB,IAAI,EAAEK,QAAQ,CAAC","ignoreList":[]}
@@ -1,283 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _export = require("./properties/export");
8
- var _constants = require("../constants");
9
- var _utils = require("../components/viewer2d/utils");
10
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
12
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
15
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
16
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
17
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
19
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
- var Catalog = exports["default"] = /*#__PURE__*/function () {
23
- function Catalog() {
24
- var unit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _constants.UNIT_CENTIMETER;
25
- _classCallCheck(this, Catalog);
26
- this.elements = {};
27
- this.categories = {
28
- root: {
29
- name: 'root',
30
- label: '/',
31
- elements: [],
32
- categories: []
33
- }
34
- };
35
- this.propertyTypes = {};
36
- this.unit = unit;
37
- this.registerMultiplePropertyType([['color', _export.PropertyColor, _export.PropertyColor], ['enum', _export.PropertyEnum, _export.PropertyEnum], ['string', _export.PropertyString, _export.PropertyString], ['number', _export.PropertyNumber, _export.PropertyNumber], ['length-measure', _export.PropertyLengthMeasure, _export.PropertyLengthMeasure], ['toggle', _export.PropertyToggle, _export.PropertyToggle], ['checkbox', _export.PropertyCheckbox, _export.PropertyCheckbox], ['hidden', _export.PropertyHidden, _export.PropertyHidden], ['read-only', _export.PropertyReadOnly, _export.PropertyReadOnly]]);
38
- }
39
-
40
- /**
41
- * @description Get catalog's element
42
- * @param {string} type Element's type
43
- * @return {?object} Element
44
- */
45
- return _createClass(Catalog, [{
46
- key: "getElement",
47
- value: function getElement(type) {
48
- if (this.hasElement(type)) {
49
- return this.elements[type];
50
- } else {
51
- var deepSearchType = (0, _utils.returnReplaceableDeepSearchType)(type);
52
- var element = this.elements[deepSearchType];
53
- if (element) return element;
54
- if (!element) return false;
55
- // console.log("getElement", this);
56
- throw new Error("Element ".concat(type, " does not exist in catalog"));
57
- }
58
- }
59
-
60
- /**
61
- * @description Get catalog category
62
- * @param {string} categoryName Name of category
63
- * @return {object} Category
64
- */
65
- }, {
66
- key: "getCategory",
67
- value: function getCategory(categoryName) {
68
- if (this.hasCategory(categoryName)) {
69
- return this.categories[categoryName];
70
- }
71
- throw new Error("Category ".concat(categoryName, " does not exist in catalog"));
72
- }
73
-
74
- /**
75
- * @description Return type of a specfied property
76
- * @param {string} type Property type
77
- * @return {?object} Property
78
- */
79
- }, {
80
- key: "getPropertyType",
81
- value: function getPropertyType(type) {
82
- if (this.propertyTypes.hasOwnProperty(type)) {
83
- return this.propertyTypes[type];
84
- }
85
- throw new Error("Element ".concat(type, " does not exist in catalog"));
86
- }
87
-
88
- /**
89
- * @description Register a new element
90
- * @param {object} json Element structure
91
- * @return {void}
92
- */
93
- }, {
94
- key: "registerElement",
95
- value: function registerElement(json) {
96
- json.properties = json.properties || {};
97
- if (this.validateElement(json)) {
98
- this.elements[json.name] = json;
99
- this.categories.root.elements.push(this.elements[json.name]);
100
- }
101
- }
102
-
103
- /**
104
- * @description Register multiple elements
105
- * @param {array} [elementArray] Array of elements
106
- * @return {void}
107
- */
108
- }, {
109
- key: "registerMultipleElements",
110
- value: function registerMultipleElements(elementArray) {
111
- var _this = this;
112
- elementArray.forEach(function (el) {
113
- return _this.registerElement(el);
114
- });
115
- }
116
-
117
- /**
118
- * @description Register a new property
119
- * @param {string} type Type of property
120
- * @param {object} Viewer Property viewer component
121
- * @param {object} Editor Property editor component
122
- * @return {void}
123
- */
124
- }, {
125
- key: "registerPropertyType",
126
- value: function registerPropertyType(type, Viewer, Editor) {
127
- this.propertyTypes[type] = {
128
- type: type,
129
- Viewer: Viewer,
130
- Editor: Editor
131
- };
132
- }
133
-
134
- /**
135
- * @description Register multiple property
136
- * @param {array} propertyTypeArray Array of properties
137
- * @return {void}
138
- */
139
- }, {
140
- key: "registerMultiplePropertyType",
141
- value: function registerMultiplePropertyType(propertyTypeArray) {
142
- var _this2 = this;
143
- propertyTypeArray.forEach(function (el) {
144
- return _this2.registerPropertyType.apply(_this2, _toConsumableArray(el));
145
- });
146
- }
147
-
148
- /**
149
- * @description Validate an element
150
- * @param {object} json Element's structure
151
- * @return {?boolean}
152
- */
153
- }, {
154
- key: "validateElement",
155
- value: function validateElement(json) {
156
- if (!json.hasOwnProperty('name')) throw new Error('Element not valid');
157
- var name = json.name;
158
- if (json.prototype.toLowerCase().includes('molding')) return true;
159
- if (!json.hasOwnProperty('prototype')) throw new Error("Element ".concat(name, " doesn't have prototype"));
160
- if (!json.hasOwnProperty('info')) throw new Error("Element ".concat(name, " doesn't have info"));
161
- if (!json.info.hasOwnProperty('tag')) throw new Error("Element ".concat(name, " doesn't have tag"));
162
- if (!json.info.hasOwnProperty('description')) throw new Error("Element ".concat(name, " doesn't have description"));
163
- // if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);
164
-
165
- if (!json.hasOwnProperty('render2D')) throw new Error("Element ".concat(name, " doesn't have render2D handler"));
166
- if (!json.hasOwnProperty('render3D')) throw new Error("Element ".concat(name, " doesn't have render3D handler"));
167
- if (!json.hasOwnProperty('properties')) throw new Error("Element ".concat(name, " doesn't have properties"));
168
- for (var propertyName in json.properties) {
169
- var propertyConfigs = json.properties[propertyName];
170
- if (!propertyConfigs.hasOwnProperty('type')) throw new Error("Element ".concat(name, ", Property ").concat(propertyName, " doesn't have type"));
171
- if (!propertyConfigs.hasOwnProperty('defaultValue')) throw new Error("Element ".concat(name, ", Property ").concat(propertyName, " doesn't have defaultValue"));
172
- }
173
- return true;
174
- }
175
-
176
- /**
177
- * @description Check if catalog has element
178
- * @param {string} type Element's type
179
- * @return {boolean}
180
- */
181
- }, {
182
- key: "hasElement",
183
- value: function hasElement(type) {
184
- return this.elements.hasOwnProperty(type);
185
- }
186
-
187
- /**
188
- * @description Register a new category
189
- * @param {string} name Name of category
190
- * @param {string} label Label of category
191
- * @param {array} [childs] Category's childs
192
- * @return {?object} Registered category
193
- */
194
- }, {
195
- key: "registerCategory",
196
- value: function registerCategory(name, label, childs) {
197
- var _this3 = this;
198
- if (this.validateCategory(name, label)) {
199
- this.categories[name] = {
200
- name: name,
201
- label: label,
202
- categories: [],
203
- elements: []
204
- };
205
- this.categories.root.categories.push(this.categories[name]);
206
- if (childs && childs.length) {
207
- childs.forEach(function (el) {
208
- return _this3.addToCategory(name, el);
209
- });
210
- }
211
- return this.categories[name];
212
- }
213
- return null;
214
- }
215
-
216
- /**
217
- * @description Add an element to the specified category
218
- * @param {string} name Name of category
219
- * @param {object} child Element's structure
220
- * @return {?void}
221
- */
222
- }, {
223
- key: "addToCategory",
224
- value: function addToCategory(name, child) {
225
- if (this.hasElement(child.name)) {
226
- this.categories[name].elements.push(child);
227
- this.categories.root.elements.splice(this.categories.root.elements.indexOf(child), 1);
228
- } else if (this.hasCategory(child.name)) {
229
- this.categories[name].categories.push(child);
230
- this.categories.root.categories.splice(this.categories.root.categories.indexOf(child), 1);
231
- } else {
232
- throw new Error("child ".concat(child, " is either category nor element"));
233
- }
234
- }
235
-
236
- /**
237
- * @description Check if category contain element
238
- * @param {string} categoryName Name of category
239
- * @param {string} elementName Name of element
240
- * @return {boolean}
241
- */
242
- }, {
243
- key: "categoryHasElement",
244
- value: function categoryHasElement(categoryName, elementName) {
245
- return this.hasCategory(categoryName) && this.categories[categoryName].elements.some(function (el) {
246
- return el.name === elementName;
247
- });
248
- }
249
-
250
- /**
251
- * @description Validate a category
252
- * @param {string} name Name of category
253
- * @param {string} label Label of category
254
- * @return {?boolean}
255
- */
256
- }, {
257
- key: "validateCategory",
258
- value: function validateCategory(name, label) {
259
- if (!name) {
260
- throw new Error('Category has undefined name');
261
- }
262
- if (name === '') {
263
- throw new Error('Category has empty name');
264
- }
265
- if (this.hasCategory(name)) {
266
- throw new Error('Category has already been registered');
267
- }
268
- return true;
269
- }
270
-
271
- /**
272
- * @description Verify if catalog already contain a category with specified name
273
- * @param {string} categoryName Name of category
274
- * @return {boolean}
275
- */
276
- }, {
277
- key: "hasCategory",
278
- value: function hasCategory(categoryName) {
279
- return this.categories.hasOwnProperty(categoryName);
280
- }
281
- }]);
282
- }();
283
- //# sourceMappingURL=catalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catalog.js","names":["_export","require","_constants","_utils","_typeof","o","Symbol","iterator","constructor","prototype","_toConsumableArray","r","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","t","toString","call","slice","name","Array","from","test","isArray","length","e","n","_classCallCheck","_defineProperties","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","i","_toPrimitive","toPrimitive","String","Number","Catalog","exports","unit","arguments","undefined","UNIT_CENTIMETER","elements","categories","root","label","propertyTypes","registerMultiplePropertyType","PropertyColor","PropertyEnum","PropertyString","PropertyNumber","PropertyLengthMeasure","PropertyToggle","PropertyCheckbox","PropertyHidden","PropertyReadOnly","value","getElement","type","hasElement","deepSearchType","returnReplaceableDeepSearchType","element","Error","concat","getCategory","categoryName","hasCategory","getPropertyType","hasOwnProperty","registerElement","json","properties","validateElement","push","registerMultipleElements","elementArray","_this","forEach","el","registerPropertyType","Viewer","Editor","propertyTypeArray","_this2","apply","toLowerCase","includes","info","propertyName","propertyConfigs","registerCategory","childs","_this3","validateCategory","addToCategory","child","splice","indexOf","categoryHasElement","elementName","some"],"sources":["../../src/catalog/catalog.js"],"sourcesContent":["import {\r\n PropertyCheckbox,\r\n PropertyColor,\r\n PropertyEnum,\r\n PropertyHidden,\r\n PropertyLengthMeasure,\r\n PropertyNumber,\r\n PropertyReadOnly,\r\n PropertyString,\r\n PropertyToggle\r\n} from './properties/export';\r\nimport { UNIT_CENTIMETER } from '../constants';\r\nimport { returnReplaceableDeepSearchType } from '../components/viewer2d/utils';\r\n\r\nexport default class Catalog {\r\n constructor(unit = UNIT_CENTIMETER) {\r\n this.elements = {};\r\n this.categories = {\r\n root: { name: 'root', label: '/', elements: [], categories: [] }\r\n };\r\n this.propertyTypes = {};\r\n this.unit = unit;\r\n\r\n this.registerMultiplePropertyType([\r\n ['color', PropertyColor, PropertyColor],\r\n ['enum', PropertyEnum, PropertyEnum],\r\n ['string', PropertyString, PropertyString],\r\n ['number', PropertyNumber, PropertyNumber],\r\n ['length-measure', PropertyLengthMeasure, PropertyLengthMeasure],\r\n ['toggle', PropertyToggle, PropertyToggle],\r\n ['checkbox', PropertyCheckbox, PropertyCheckbox],\r\n ['hidden', PropertyHidden, PropertyHidden],\r\n ['read-only', PropertyReadOnly, PropertyReadOnly]\r\n ]);\r\n }\r\n\r\n /**\r\n * @description Get catalog's element\r\n * @param {string} type Element's type\r\n * @return {?object} Element\r\n */\r\n getElement(type) {\r\n if (this.hasElement(type)) {\r\n return this.elements[type];\r\n } else {\r\n let deepSearchType = returnReplaceableDeepSearchType(type);\r\n let element = this.elements[deepSearchType];\r\n if (element) return element;\r\n if (!element) return false;\r\n // console.log(\"getElement\", this);\r\n throw new Error(`Element ${type} does not exist in catalog`);\r\n }\r\n }\r\n\r\n /**\r\n * @description Get catalog category\r\n * @param {string} categoryName Name of category\r\n * @return {object} Category\r\n */\r\n getCategory(categoryName) {\r\n if (this.hasCategory(categoryName)) {\r\n return this.categories[categoryName];\r\n }\r\n throw new Error(`Category ${categoryName} does not exist in catalog`);\r\n }\r\n\r\n /**\r\n * @description Return type of a specfied property\r\n * @param {string} type Property type\r\n * @return {?object} Property\r\n */\r\n getPropertyType(type) {\r\n if (this.propertyTypes.hasOwnProperty(type)) {\r\n return this.propertyTypes[type];\r\n }\r\n throw new Error(`Element ${type} does not exist in catalog`);\r\n }\r\n\r\n /**\r\n * @description Register a new element\r\n * @param {object} json Element structure\r\n * @return {void}\r\n */\r\n registerElement(json) {\r\n json.properties = json.properties || {};\r\n if (this.validateElement(json)) {\r\n this.elements[json.name] = json;\r\n this.categories.root.elements.push(this.elements[json.name]);\r\n }\r\n }\r\n\r\n /**\r\n * @description Register multiple elements\r\n * @param {array} [elementArray] Array of elements\r\n * @return {void}\r\n */\r\n registerMultipleElements(elementArray) {\r\n elementArray.forEach(el => this.registerElement(el));\r\n }\r\n\r\n /**\r\n * @description Register a new property\r\n * @param {string} type Type of property\r\n * @param {object} Viewer Property viewer component\r\n * @param {object} Editor Property editor component\r\n * @return {void}\r\n */\r\n registerPropertyType(type, Viewer, Editor) {\r\n this.propertyTypes[type] = { type, Viewer, Editor };\r\n }\r\n\r\n /**\r\n * @description Register multiple property\r\n * @param {array} propertyTypeArray Array of properties\r\n * @return {void}\r\n */\r\n registerMultiplePropertyType(propertyTypeArray) {\r\n propertyTypeArray.forEach(el => this.registerPropertyType(...el));\r\n }\r\n\r\n /**\r\n * @description Validate an element\r\n * @param {object} json Element's structure\r\n * @return {?boolean}\r\n */\r\n validateElement(json) {\r\n if (!json.hasOwnProperty('name')) throw new Error('Element not valid');\r\n\r\n let name = json.name;\r\n if (json.prototype.toLowerCase().includes('molding')) return true;\r\n if (!json.hasOwnProperty('prototype'))\r\n throw new Error(`Element ${name} doesn't have prototype`);\r\n\r\n if (!json.hasOwnProperty('info'))\r\n throw new Error(`Element ${name} doesn't have info`);\r\n if (!json.info.hasOwnProperty('tag'))\r\n throw new Error(`Element ${name} doesn't have tag`);\r\n if (!json.info.hasOwnProperty('description'))\r\n throw new Error(`Element ${name} doesn't have description`);\r\n // if (!json.info.hasOwnProperty('image')) throw new Error(`Element ${name} doesn't have image`);\r\n\r\n if (!json.hasOwnProperty('render2D'))\r\n throw new Error(`Element ${name} doesn't have render2D handler`);\r\n if (!json.hasOwnProperty('render3D'))\r\n throw new Error(`Element ${name} doesn't have render3D handler`);\r\n if (!json.hasOwnProperty('properties'))\r\n throw new Error(`Element ${name} doesn't have properties`);\r\n\r\n for (let propertyName in json.properties) {\r\n let propertyConfigs = json.properties[propertyName];\r\n if (!propertyConfigs.hasOwnProperty('type'))\r\n throw new Error(\r\n `Element ${name}, Property ${propertyName} doesn't have type`\r\n );\r\n if (!propertyConfigs.hasOwnProperty('defaultValue'))\r\n throw new Error(\r\n `Element ${name}, Property ${propertyName} doesn't have defaultValue`\r\n );\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * @description Check if catalog has element\r\n * @param {string} type Element's type\r\n * @return {boolean}\r\n */\r\n hasElement(type) {\r\n return this.elements.hasOwnProperty(type);\r\n }\r\n\r\n /**\r\n * @description Register a new category\r\n * @param {string} name Name of category\r\n * @param {string} label Label of category\r\n * @param {array} [childs] Category's childs\r\n * @return {?object} Registered category\r\n */\r\n registerCategory(name, label, childs) {\r\n if (this.validateCategory(name, label)) {\r\n this.categories[name] = { name, label, categories: [], elements: [] };\r\n this.categories.root.categories.push(this.categories[name]);\r\n if (childs && childs.length) {\r\n childs.forEach(el => this.addToCategory(name, el));\r\n }\r\n\r\n return this.categories[name];\r\n }\r\n return null;\r\n }\r\n\r\n /**\r\n * @description Add an element to the specified category\r\n * @param {string} name Name of category\r\n * @param {object} child Element's structure\r\n * @return {?void}\r\n */\r\n addToCategory(name, child) {\r\n if (this.hasElement(child.name)) {\r\n this.categories[name].elements.push(child);\r\n this.categories.root.elements.splice(\r\n this.categories.root.elements.indexOf(child),\r\n 1\r\n );\r\n } else if (this.hasCategory(child.name)) {\r\n this.categories[name].categories.push(child);\r\n this.categories.root.categories.splice(\r\n this.categories.root.categories.indexOf(child),\r\n 1\r\n );\r\n } else {\r\n throw new Error(`child ${child} is either category nor element`);\r\n }\r\n }\r\n\r\n /**\r\n * @description Check if category contain element\r\n * @param {string} categoryName Name of category\r\n * @param {string} elementName Name of element\r\n * @return {boolean}\r\n */\r\n categoryHasElement(categoryName, elementName) {\r\n return (\r\n this.hasCategory(categoryName) &&\r\n this.categories[categoryName].elements.some(el => el.name === elementName)\r\n );\r\n }\r\n\r\n /**\r\n * @description Validate a category\r\n * @param {string} name Name of category\r\n * @param {string} label Label of category\r\n * @return {?boolean}\r\n */\r\n validateCategory(name, label) {\r\n if (!name) {\r\n throw new Error('Category has undefined name');\r\n }\r\n if (name === '') {\r\n throw new Error('Category has empty name');\r\n }\r\n if (this.hasCategory(name)) {\r\n throw new Error('Category has already been registered');\r\n }\r\n\r\n return true;\r\n }\r\n\r\n /**\r\n * @description Verify if catalog already contain a category with specified name\r\n * @param {string} categoryName Name of category\r\n * @return {boolean}\r\n */\r\n hasCategory(categoryName) {\r\n return this.categories.hasOwnProperty(categoryName);\r\n }\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAWA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+E,S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ACA;AACA;EALE;IAAAxE,GAAA;IAAA4B,KAAA,EAMA,SAAAsC,gBAAgBA,CAAClF,IAAI,EAAEgC,KAAK,EAAE;MAC5B,IAAI,CAAChC,IAAI,EAAE;QACT,MAAM,IAAImD,KAAK,CAAC,6BAA6B,CAAC;MAChD;MACA,IAAInD,IAAI,KAAK,EAAE,EAAE;QACf,MAAM,IAAImD,KAAK,CAAC,yBAAyB,CAAC;MAC5C;MACA,IAAI,IAAI,CAACI,WAAW,CAACvD,IAAI,CAAC,EAAE;QAC1B,MAAM,IAAImD,KAAK,CAAC,sCAAsC,CAAC;MACzD;MAEA,OAAO,IAAI;IACb;;IAEA;AACF;AACA;AACA;AACA;EAJE;IAAAnC,GAAA;IAAA4B,KAAA,EAKA,SAAAW,WAAWA,CAACD,YAAY,EAAE;MACxB,OAAO,IAAI,CAACxB,UAAU,CAAC2B,cAAc,CAACH,YAAY,CAAC;IACrD;EAAC;AAAA","ignoreList":[]}
@@ -1,192 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.createArea = createArea;
8
- exports.updatedArea = updatedArea;
9
- var _three = _interopRequireWildcard(require("three"));
10
- var Three = _three;
11
- var _helper = require("../../../src/utils/helper");
12
- var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
13
- var _RGBELoader = require("three/examples/jsm/loaders/RGBELoader");
14
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
- var params = {
16
- envMap: 'HDR',
17
- roughness: 0.9,
18
- metalness: 0.8,
19
- exposure: 1.0
20
- // debug: false
21
- };
22
-
23
- /**
24
- * Apply a texture to a wall face
25
- * @param material: The material of the face
26
- * @param texture: The texture to load
27
- * @param length: The lenght of the face
28
- * @param height: The height of the face
29
- */
30
- var applyTexture = function applyTexture(material, texture, length, height) {
31
- var loader = new _three.TextureLoader();
32
- if (texture) {
33
- material.map = loader.load(texture.uri);
34
- material.map.colorSpace = Three.SRGBColorSpace;
35
- material.needsUpdate = true;
36
- material.map.wrapS = _three.RepeatWrapping;
37
- material.map.wrapT = _three.RepeatWrapping;
38
- material.map.repeat.set(length * texture.lengthRepeatScale, height * texture.heightRepeatScale);
39
- if (texture.normal) {
40
- material.normalMap = loader.load(texture.normal.uri);
41
- material.normalScale = new _three.Vector2(texture.normal.normalScaleX, texture.normal.normalScaleY);
42
- material.normalMap.wrapS = _three.RepeatWrapping;
43
- material.normalMap.wrapT = _three.RepeatWrapping;
44
- material.normalMap.repeat.set(length * texture.normal.lengthRepeatScale, height * texture.normal.heightRepeatScale);
45
- }
46
- }
47
- };
48
-
49
- /**
50
- * Function that assign UV coordinates to a geometry
51
- * @param geometry
52
- */
53
- var assignUVs = function assignUVs(geometry) {
54
- geometry.computeBoundingBox();
55
- var _geometry$boundingBox = geometry.boundingBox,
56
- min = _geometry$boundingBox.min,
57
- max = _geometry$boundingBox.max;
58
- var offset = new _three.Vector2(0 - min.x, 0 - min.y);
59
- var range = new _three.Vector2(max.x - min.x, max.y - min.y);
60
- var uvArray = [];
61
- var position = geometry.attributes.position;
62
- for (var i = 0; i < position.count; i += 3) {
63
- var x1 = position.getX(i);
64
- var y1 = position.getY(i);
65
- var x2 = position.getX(i + 1);
66
- var y2 = position.getY(i + 1);
67
- var x3 = position.getX(i + 2);
68
- var y3 = position.getY(i + 2);
69
- uvArray.push((x1 + offset.x) / range.x, (y1 + offset.y) / range.y, (x2 + offset.x) / range.x, (y2 + offset.y) / range.y, (x3 + offset.x) / range.x, (y3 + offset.y) / range.y);
70
- }
71
- geometry.setAttribute('uv', new Three.BufferAttribute(new Float32Array(uvArray), 2));
72
- geometry.needsUpdate = true;
73
- };
74
- function createArea(element, layer, scene, textures) {
75
- var vertices = [];
76
- element.vertices.forEach(function (vertexID) {
77
- vertices.push(layer.vertices.get(vertexID));
78
- });
79
- var texture = element.texture;
80
- texture.lengthRepeatScale = 0.01;
81
- texture.heightRepeatScale = 0.01;
82
- var color = element.properties.get('patternColor');
83
- if (element.selected) {
84
- color = SharedStyle.AREA_MESH_COLOR.selected;
85
- } else {
86
- color = SharedStyle.AREA_MESH_COLOR.unselected;
87
- }
88
- if (texture.uri === undefined || texture.uri == '') {
89
- texture.uri = layer.floorStyle.uri;
90
- }
91
- var shape = new _three.Shape();
92
- shape.moveTo(vertices[0].x, vertices[0].y);
93
- for (var i = 1; i < vertices.length; i++) {
94
- shape.lineTo(vertices[i].x, vertices[i].y);
95
- }
96
- function loadFloorENV() {
97
- return new _RGBELoader.RGBELoader().load('/assets/Window.hdr', function (texture) {
98
- texture.mapping = Three.EquirectangularReflectionMapping;
99
- return texture;
100
- });
101
- }
102
- var floorENV = loadFloorENV();
103
- var loader = new _three.TextureLoader();
104
- var areaMaterial = new _three.MeshPhysicalMaterial({
105
- side: Three.DoubleSide,
106
- metalness: texture.metalness,
107
- roughness: 0.3,
108
- envMap: floorENV,
109
- envMapIntensity: 1.8,
110
- specularIntensity: 0.4,
111
- map: loader.load(texture.uri)
112
- });
113
-
114
- /* Create holes for the area */
115
- element.holes.forEach(function (holeID) {
116
- var holeCoords = [];
117
- layer.getIn(['areas', holeID, 'vertices']).forEach(function (vertexID) {
118
- var _layer$getIn = layer.getIn(['vertices', vertexID]),
119
- x = _layer$getIn.x,
120
- y = _layer$getIn.y;
121
- holeCoords.push([x, y]);
122
- });
123
- holeCoords = holeCoords.reverse();
124
- var holeShape = createShape(holeCoords);
125
- shape.holes.push(holeShape);
126
- });
127
-
128
- // This is extrude floor mesh
129
-
130
- var extrudeSettings = {
131
- depth: -3,
132
- bevelEnabled: false
133
- };
134
- var shapeGeometry = new Three.ExtrudeGeometry(shape, extrudeSettings);
135
- assignUVs(shapeGeometry);
136
- var boundingBox = new _three.Box3().setFromObject(new _three.Mesh(shapeGeometry, new _three.MeshBasicMaterial()));
137
- var width = boundingBox.max.x - boundingBox.min.x;
138
- var height = boundingBox.max.y - boundingBox.min.y;
139
- var texture_unit = 70 * 2.54; // 70 inch
140
-
141
- applyTexture(areaMaterial, texture, width / texture_unit * 100, height / texture_unit * 100);
142
- var area = new _three.Mesh(shapeGeometry, areaMaterial);
143
- area.rotation.x -= Math.PI / 2;
144
- area.receiveShadow = true;
145
- area.name = 'floor';
146
- // This mesh is use for creating ceiling mesh
147
-
148
- var shapeGeometry2 = new Three.ShapeGeometry(shape);
149
- var area2 = new _three.Mesh(shapeGeometry2, new _three.MeshBasicMaterial({
150
- transparent: true,
151
- opacity: 0.0
152
- }));
153
- area2.castShadow = true;
154
- area2.rotation.x -= Math.PI / 2;
155
- area2.receiveShadow = true;
156
- area2.name = 'floorSupport';
157
- var floorSupport = area2.clone();
158
- area.userData.floorSupport = floorSupport;
159
- return Promise.resolve(area);
160
- }
161
- function updatedArea(element, layer, scene, textures, mesh, oldElement, differences, selfDestroy, selfBuild) {
162
- var noPerf = function noPerf() {
163
- selfDestroy();
164
- return selfBuild();
165
- };
166
- var floor = mesh.getObjectByName('floor');
167
- floor.receiveShadow = true;
168
- if (differences[0] == 'selected') {
169
- var color = element.selected ? SharedStyle.AREA_MESH_COLOR.selected : SharedStyle.AREA_MESH_COLOR.unselected;
170
- floor.material.color.set(color);
171
- } else if (differences[0] == 'properties') {
172
- if (differences[1] === 'texture') {
173
- return noPerf();
174
- }
175
- } else return noPerf();
176
- return Promise.resolve(mesh);
177
- }
178
-
179
- /**
180
- * This function will create a shape given a list of coordinates
181
- * @param shapeCoords
182
- * @returns {Shape}
183
- */
184
- var createShape = function createShape(shapeCoords) {
185
- var shape = new _three.Shape();
186
- shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);
187
- for (var i = 1; i < shapeCoords.length; i++) {
188
- shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);
189
- }
190
- return shape;
191
- };
192
- //# sourceMappingURL=area-factory-3d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"area-factory-3d.js","names":["_three","_interopRequireWildcard","require","Three","_helper","SharedStyle","_RGBELoader","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","params","envMap","roughness","metalness","exposure","applyTexture","material","texture","length","height","loader","TextureLoader","map","load","uri","colorSpace","SRGBColorSpace","needsUpdate","wrapS","RepeatWrapping","wrapT","repeat","lengthRepeatScale","heightRepeatScale","normal","normalMap","normalScale","Vector2","normalScaleX","normalScaleY","assignUVs","geometry","computeBoundingBox","_geometry$boundingBox","boundingBox","min","max","offset","x","y","range","uvArray","position","attributes","count","x1","getX","y1","getY","x2","y2","x3","y3","push","setAttribute","BufferAttribute","Float32Array","createArea","element","layer","scene","textures","vertices","forEach","vertexID","color","properties","selected","AREA_MESH_COLOR","unselected","undefined","floorStyle","shape","Shape","moveTo","lineTo","loadFloorENV","RGBELoader","mapping","EquirectangularReflectionMapping","floorENV","areaMaterial","MeshPhysicalMaterial","side","DoubleSide","envMapIntensity","specularIntensity","holes","holeID","holeCoords","getIn","_layer$getIn","reverse","holeShape","createShape","extrudeSettings","depth","bevelEnabled","shapeGeometry","ExtrudeGeometry","Box3","setFromObject","Mesh","MeshBasicMaterial","width","texture_unit","area","rotation","Math","PI","receiveShadow","name","shapeGeometry2","ShapeGeometry","area2","transparent","opacity","castShadow","floorSupport","clone","userData","Promise","resolve","updatedArea","mesh","oldElement","differences","selfDestroy","selfBuild","noPerf","floor","getObjectByName","shapeCoords"],"sources":["../../../src/catalog/factories/area-factory-3d.js"],"sourcesContent":["import {\r\n Shape,\r\n ShapeGeometry,\r\n Box3,\r\n TextureLoader,\r\n Mesh,\r\n MeshBasicMaterial,\r\n MeshStandardMaterial,\r\n RepeatWrapping,\r\n Vector2,\r\n DoubleSide,\r\n MeshPhysicalMaterial\r\n} from 'three';\r\nimport * as Three from 'three';\r\nimport { textureCube } from '../../../src/utils/helper';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';\r\n\r\nconst params = {\r\n envMap: 'HDR',\r\n roughness: 0.9,\r\n metalness: 0.8,\r\n exposure: 1.0\r\n // debug: false\r\n};\r\n\r\n/**\r\n * Apply a texture to a wall face\r\n * @param material: The material of the face\r\n * @param texture: The texture to load\r\n * @param length: The lenght of the face\r\n * @param height: The height of the face\r\n */\r\nconst applyTexture = (material, texture, length, height) => {\r\n let loader = new TextureLoader();\r\n if (texture) {\r\n material.map = loader.load(texture.uri);\r\n material.map.colorSpace = Three.SRGBColorSpace;\r\n material.needsUpdate = true;\r\n material.map.wrapS = RepeatWrapping;\r\n material.map.wrapT = RepeatWrapping;\r\n material.map.repeat.set(\r\n length * texture.lengthRepeatScale,\r\n height * texture.heightRepeatScale\r\n );\r\n\r\n if (texture.normal) {\r\n material.normalMap = loader.load(texture.normal.uri);\r\n material.normalScale = new Vector2(\r\n texture.normal.normalScaleX,\r\n texture.normal.normalScaleY\r\n );\r\n material.normalMap.wrapS = RepeatWrapping;\r\n material.normalMap.wrapT = RepeatWrapping;\r\n material.normalMap.repeat.set(\r\n length * texture.normal.lengthRepeatScale,\r\n height * texture.normal.heightRepeatScale\r\n );\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Function that assign UV coordinates to a geometry\r\n * @param geometry\r\n */\r\nconst assignUVs = geometry => {\r\n geometry.computeBoundingBox();\r\n\r\n let { min, max } = geometry.boundingBox;\r\n let offset = new Vector2(0 - min.x, 0 - min.y);\r\n let range = new Vector2(max.x - min.x, max.y - min.y);\r\n\r\n const uvArray = [];\r\n const position = geometry.attributes.position;\r\n\r\n for (let i = 0; i < position.count; i += 3) {\r\n const x1 = position.getX(i);\r\n const y1 = position.getY(i);\r\n\r\n const x2 = position.getX(i + 1);\r\n const y2 = position.getY(i + 1);\r\n\r\n const x3 = position.getX(i + 2);\r\n const y3 = position.getY(i + 2);\r\n\r\n uvArray.push(\r\n (x1 + offset.x) / range.x,\r\n (y1 + offset.y) / range.y,\r\n (x2 + offset.x) / range.x,\r\n (y2 + offset.y) / range.y,\r\n (x3 + offset.x) / range.x,\r\n (y3 + offset.y) / range.y\r\n );\r\n }\r\n geometry.setAttribute(\r\n 'uv',\r\n new Three.BufferAttribute(new Float32Array(uvArray), 2)\r\n );\r\n geometry.needsUpdate = true;\r\n};\r\n\r\nexport function createArea(element, layer, scene, textures) {\r\n let vertices = [];\r\n\r\n element.vertices.forEach(vertexID => {\r\n vertices.push(layer.vertices.get(vertexID));\r\n });\r\n\r\n let { texture } = element;\r\n\r\n texture.lengthRepeatScale = 0.01;\r\n texture.heightRepeatScale = 0.01;\r\n\r\n let color = element.properties.get('patternColor');\r\n\r\n if (element.selected) {\r\n color = SharedStyle.AREA_MESH_COLOR.selected;\r\n } else {\r\n color = SharedStyle.AREA_MESH_COLOR.unselected;\r\n }\r\n if (texture.uri === undefined || texture.uri == '') {\r\n texture.uri = layer.floorStyle.uri;\r\n }\r\n\r\n let shape = new Shape();\r\n\r\n shape.moveTo(vertices[0].x, vertices[0].y);\r\n for (let i = 1; i < vertices.length; i++) {\r\n shape.lineTo(vertices[i].x, vertices[i].y);\r\n }\r\n function loadFloorENV() {\r\n return new RGBELoader().load('/assets/Window.hdr', function (texture) {\r\n texture.mapping = Three.EquirectangularReflectionMapping;\r\n return texture;\r\n });\r\n }\r\n const floorENV = loadFloorENV();\r\n let loader = new TextureLoader();\r\n\r\n let areaMaterial = new MeshPhysicalMaterial({\r\n side: Three.DoubleSide,\r\n metalness: texture.metalness,\r\n roughness: 0.3,\r\n envMap: floorENV,\r\n envMapIntensity: 1.8,\r\n specularIntensity: 0.4,\r\n map: loader.load(texture.uri)\r\n });\r\n\r\n /* Create holes for the area */\r\n element.holes.forEach(holeID => {\r\n let holeCoords = [];\r\n layer.getIn(['areas', holeID, 'vertices']).forEach(vertexID => {\r\n let { x, y } = layer.getIn(['vertices', vertexID]);\r\n holeCoords.push([x, y]);\r\n });\r\n holeCoords = holeCoords.reverse();\r\n let holeShape = createShape(holeCoords);\r\n shape.holes.push(holeShape);\r\n });\r\n\r\n // This is extrude floor mesh\r\n\r\n let extrudeSettings = {\r\n depth: -3,\r\n bevelEnabled: false\r\n };\r\n\r\n let shapeGeometry = new Three.ExtrudeGeometry(shape, extrudeSettings);\r\n\r\n assignUVs(shapeGeometry);\r\n\r\n let boundingBox = new Box3().setFromObject(\r\n new Mesh(shapeGeometry, new MeshBasicMaterial())\r\n );\r\n let width = boundingBox.max.x - boundingBox.min.x;\r\n let height = boundingBox.max.y - boundingBox.min.y;\r\n const texture_unit = 70 * 2.54; // 70 inch\r\n\r\n applyTexture(\r\n areaMaterial,\r\n texture,\r\n (width / texture_unit) * 100,\r\n (height / texture_unit) * 100\r\n );\r\n let area = new Mesh(shapeGeometry, areaMaterial);\r\n area.rotation.x -= Math.PI / 2;\r\n area.receiveShadow = true;\r\n area.name = 'floor';\r\n // This mesh is use for creating ceiling mesh\r\n\r\n let shapeGeometry2 = new Three.ShapeGeometry(shape);\r\n let area2 = new Mesh(\r\n shapeGeometry2,\r\n new MeshBasicMaterial({ transparent: true, opacity: 0.0 })\r\n );\r\n area2.castShadow = true;\r\n area2.rotation.x -= Math.PI / 2;\r\n area2.receiveShadow = true;\r\n area2.name = 'floorSupport';\r\n\r\n const floorSupport = area2.clone();\r\n area.userData.floorSupport = floorSupport;\r\n\r\n return Promise.resolve(area);\r\n}\r\n\r\nexport function updatedArea(\r\n element,\r\n layer,\r\n scene,\r\n textures,\r\n mesh,\r\n oldElement,\r\n differences,\r\n selfDestroy,\r\n selfBuild\r\n) {\r\n let noPerf = () => {\r\n selfDestroy();\r\n return selfBuild();\r\n };\r\n let floor = mesh.getObjectByName('floor');\r\n floor.receiveShadow = true;\r\n if (differences[0] == 'selected') {\r\n let color = element.selected\r\n ? SharedStyle.AREA_MESH_COLOR.selected\r\n : SharedStyle.AREA_MESH_COLOR.unselected;\r\n floor.material.color.set(color);\r\n } else if (differences[0] == 'properties') {\r\n if (differences[1] === 'texture') {\r\n return noPerf();\r\n }\r\n } else return noPerf();\r\n\r\n return Promise.resolve(mesh);\r\n}\r\n\r\n/**\r\n * This function will create a shape given a list of coordinates\r\n * @param shapeCoords\r\n * @returns {Shape}\r\n */\r\nconst createShape = shapeCoords => {\r\n let shape = new Shape();\r\n shape.moveTo(shapeCoords[0][0], shapeCoords[0][1]);\r\n for (let i = 1; i < shapeCoords.length; i++) {\r\n shape.lineTo(shapeCoords[i][0], shapeCoords[i][1]);\r\n }\r\n return shape;\r\n};\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAYe,IAAAC,KAAA,GAAAH,MAAA;AAEf,IAAAI,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAJ,uBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAmE,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,wBAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,mBAAAT,CAAA,iBAAAA,C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