kitchen-simulator 1.1.1-test.9 → 2.0.1-dot-color

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 (1034) hide show
  1. package/README.md +24 -1
  2. package/es/LiteKitchenConfigurator.js +480 -0
  3. package/es/LiteRenderer.js +503 -0
  4. package/es/actions/export.js +25 -12
  5. package/es/actions/items-actions.js +11 -6
  6. package/es/actions/project-actions.js +9 -4
  7. package/es/analytics/ga4.js +1 -4
  8. package/es/assets/Window.hdr +2100 -0
  9. package/es/assets/brown_photostudio_02_1k.hdr +0 -0
  10. package/es/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
  11. package/es/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
  12. package/es/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
  13. package/es/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
  14. package/es/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
  15. package/es/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
  16. package/es/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
  17. package/es/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
  18. package/es/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
  19. package/es/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
  20. package/es/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
  21. package/es/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
  22. package/es/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
  23. package/es/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
  24. package/es/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
  25. package/es/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
  26. package/es/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
  27. package/es/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
  28. package/es/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
  29. package/es/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
  30. package/es/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
  31. package/es/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
  32. package/es/assets/fonts/style.css +177 -0
  33. package/es/assets/gltf/door_closet.bin +0 -0
  34. package/es/assets/gltf/door_closet.fbx +0 -0
  35. package/es/assets/gltf/door_closet.gltf +1 -0
  36. package/es/assets/gltf/door_exterior.bin +0 -0
  37. package/es/assets/gltf/door_exterior.fbx +0 -0
  38. package/es/assets/gltf/door_exterior.gltf +1 -0
  39. package/es/assets/gltf/door_interior.bin +0 -0
  40. package/es/assets/gltf/door_interior.fbx +0 -0
  41. package/es/assets/gltf/door_interior.gltf +1 -0
  42. package/es/assets/gltf/door_sliding.bin +0 -0
  43. package/es/assets/gltf/door_sliding.fbx +0 -0
  44. package/es/assets/gltf/door_sliding.gltf +1 -0
  45. package/es/assets/gltf/doorway_framed.bin +0 -0
  46. package/es/assets/gltf/doorway_framed.fbx +0 -0
  47. package/es/assets/gltf/doorway_framed.gltf +1 -0
  48. package/es/assets/gltf/window_clear.bin +0 -0
  49. package/es/assets/gltf/window_clear.fbx +0 -0
  50. package/es/assets/gltf/window_clear.gltf +1 -0
  51. package/es/assets/gltf/window_cross.bin +0 -0
  52. package/es/assets/gltf/window_cross.fbx +0 -0
  53. package/es/assets/gltf/window_cross.gltf +1 -0
  54. package/es/assets/gltf/window_double_hung.bin +0 -0
  55. package/es/assets/gltf/window_double_hung.fbx +0 -0
  56. package/es/assets/gltf/window_double_hung.gltf +1 -0
  57. package/es/assets/gltf/window_vertical.bin +0 -0
  58. package/es/assets/gltf/window_vertical.fbx +0 -0
  59. package/es/assets/gltf/window_vertical.gltf +1 -0
  60. package/es/assets/img/1.jpg +0 -0
  61. package/es/assets/img/TKC_thumbnail.png +0 -0
  62. package/es/assets/img/Toggle.png +0 -0
  63. package/es/assets/img/loading/loading.gif +0 -0
  64. package/es/assets/img/loading/loading_1.svg +11 -0
  65. package/es/assets/img/loading_large.gif +0 -0
  66. package/es/assets/img/png/door/closet.png +0 -0
  67. package/es/assets/img/png/door/doorwaysframed.png +0 -0
  68. package/es/assets/img/png/door/doorwaysframeles.png +0 -0
  69. package/es/assets/img/png/door/doorwaysframeless.png +0 -0
  70. package/es/assets/img/png/door/exterior.png +0 -0
  71. package/es/assets/img/png/door/interior.png +0 -0
  72. package/es/assets/img/png/door/sliding.png +0 -0
  73. package/es/assets/img/png/helper/outcome.png +0 -0
  74. package/es/assets/img/png/helper/video_preview_3d.png +0 -0
  75. package/es/assets/img/png/helper/video_preview_start.png +0 -0
  76. package/es/assets/img/project_img.png +0 -0
  77. package/es/assets/img/rta/rta_logo_box_blue.jpg +0 -0
  78. package/es/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
  79. package/es/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
  80. package/es/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
  81. package/es/assets/img/rta/rta_logo_box_lightblue.png +0 -0
  82. package/es/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
  83. package/es/assets/img/rta/rta_logo_box_maroon.png +0 -0
  84. package/es/assets/img/rta/rta_logo_box_white.png +0 -0
  85. package/es/assets/img/rta_menu.png +0 -0
  86. package/es/assets/img/step2.jpg +0 -0
  87. package/es/assets/img/step3.jpg +0 -0
  88. package/es/assets/img/step4.jpg +0 -0
  89. package/es/assets/img/step5.jpg +0 -0
  90. package/es/assets/img/step6.jpg +0 -0
  91. package/es/assets/img/step7.jpg +0 -0
  92. package/es/assets/img/step8.jpg +0 -0
  93. package/es/assets/img/svg/2d_delete_object.svg +33 -0
  94. package/es/assets/img/svg/2d_delete_object1.svg +33 -0
  95. package/es/assets/img/svg/2d_lock_object.svg +33 -0
  96. package/es/assets/img/svg/3d_item_move.svg +106 -0
  97. package/es/assets/img/svg/3d_item_rotation.svg +76 -0
  98. package/es/assets/img/svg/3d_item_warning_edit.svg +77 -0
  99. package/es/assets/img/svg/3d_item_warning_info.svg +81 -0
  100. package/es/assets/img/svg/accessories.svg +4 -0
  101. package/es/assets/img/svg/angle_icon.svg +39 -0
  102. package/es/assets/img/svg/blank_div.svg +14 -0
  103. package/es/assets/img/svg/bottombar/2d3d_button.svg +3 -0
  104. package/es/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
  105. package/es/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
  106. package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
  107. package/es/assets/img/svg/bottombar/arrow-down.svg +3 -0
  108. package/es/assets/img/svg/bottombar/arrow-left.svg +3 -0
  109. package/es/assets/img/svg/bottombar/arrow-minus.svg +3 -0
  110. package/es/assets/img/svg/bottombar/arrow-plus.svg +11 -0
  111. package/es/assets/img/svg/bottombar/arrow-right.svg +3 -0
  112. package/es/assets/img/svg/bottombar/arrow-up.svg +3 -0
  113. package/es/assets/img/svg/bottombar/collapse.svg +3 -0
  114. package/es/assets/img/svg/bottombar/elevation-back.svg +6 -0
  115. package/es/assets/img/svg/bottombar/elevation-front.svg +6 -0
  116. package/es/assets/img/svg/bottombar/elevation-left.svg +6 -0
  117. package/es/assets/img/svg/bottombar/elevation-right.svg +7 -0
  118. package/es/assets/img/svg/bottombar/elevation.svg +6 -0
  119. package/es/assets/img/svg/bottombar/expand.svg +3 -0
  120. package/es/assets/img/svg/bottombar/help.svg +72 -0
  121. package/es/assets/img/svg/bottombar/incm_toggle.svg +39 -0
  122. package/es/assets/img/svg/bottombar/pan_1.svg +57 -0
  123. package/es/assets/img/svg/bottombar/pan_2.svg +27 -0
  124. package/es/assets/img/svg/bottombar/pan_3.svg +27 -0
  125. package/es/assets/img/svg/bottombar/pan_4.svg +27 -0
  126. package/es/assets/img/svg/bottombar/pan_5.svg +27 -0
  127. package/es/assets/img/svg/bottombar/settings.svg +23 -0
  128. package/es/assets/img/svg/bottombar/spin-down.svg +76 -0
  129. package/es/assets/img/svg/bottombar/spin-left.svg +75 -0
  130. package/es/assets/img/svg/bottombar/spin-right.svg +75 -0
  131. package/es/assets/img/svg/bottombar/spin-up.svg +76 -0
  132. package/es/assets/img/svg/bottombar/spin_1.svg +48 -0
  133. package/es/assets/img/svg/bottombar/spin_2.svg +31 -0
  134. package/es/assets/img/svg/bottombar/spin_3.svg +31 -0
  135. package/es/assets/img/svg/bottombar/spin_4.svg +31 -0
  136. package/es/assets/img/svg/bottombar/spin_5.svg +31 -0
  137. package/es/assets/img/svg/bottombar/zoomin.svg +29 -0
  138. package/es/assets/img/svg/bottombar/zoomout.svg +26 -0
  139. package/es/assets/img/svg/check.svg +10 -0
  140. package/es/assets/img/svg/close.svg +11 -0
  141. package/es/assets/img/svg/color/Black.svg +3 -0
  142. package/es/assets/img/svg/color/Blue.svg +3 -0
  143. package/es/assets/img/svg/color/Brown.svg +9 -0
  144. package/es/assets/img/svg/color/Cream.svg +3 -0
  145. package/es/assets/img/svg/color/Dark.svg +9 -0
  146. package/es/assets/img/svg/color/Gray.svg +3 -0
  147. package/es/assets/img/svg/color/Green.svg +3 -0
  148. package/es/assets/img/svg/color/Light.svg +9 -0
  149. package/es/assets/img/svg/color/Medium.svg +9 -0
  150. package/es/assets/img/svg/color/Unfinished.svg +9 -0
  151. package/es/assets/img/svg/color/White.svg +3 -0
  152. package/es/assets/img/svg/color/White.svg.bak +3 -0
  153. package/es/assets/img/svg/color/stone2.jpg +0 -0
  154. package/es/assets/img/svg/color/wood2.jpg +0 -0
  155. package/es/assets/img/svg/copy.svg +11 -0
  156. package/es/assets/img/svg/delete.svg +3 -0
  157. package/es/assets/img/svg/detail.svg +77 -0
  158. package/es/assets/img/svg/disclaimer/background.svg +758 -0
  159. package/es/assets/img/svg/disclaimer/logo-dots.svg +11 -0
  160. package/es/assets/img/svg/door/Closet.svg +11 -0
  161. package/es/assets/img/svg/door/Exterior.svg +5 -0
  162. package/es/assets/img/svg/door/Framed_dorway.svg +5 -0
  163. package/es/assets/img/svg/door/Frameless_dorway.svg +5 -0
  164. package/es/assets/img/svg/door/Interior.svg +7 -0
  165. package/es/assets/img/svg/door/Sliding.svg +5 -0
  166. package/es/assets/img/svg/doors_closet.svg +47 -0
  167. package/es/assets/img/svg/doors_exterior.svg +25 -0
  168. package/es/assets/img/svg/doors_interior.svg +29 -0
  169. package/es/assets/img/svg/doors_patio.svg +26 -0
  170. package/es/assets/img/svg/duplicate.svg +11 -0
  171. package/es/assets/img/svg/duplicate_object_left.svg +32 -0
  172. package/es/assets/img/svg/duplicate_object_right.svg +32 -0
  173. package/es/assets/img/svg/filtersActive.svg +19 -0
  174. package/es/assets/img/svg/firstsetting/L.svg +3 -0
  175. package/es/assets/img/svg/firstsetting/L2.svg +3 -0
  176. package/es/assets/img/svg/firstsetting/Open.svg +3 -0
  177. package/es/assets/img/svg/firstsetting/Square.svg +3 -0
  178. package/es/assets/img/svg/firstsetting/bar-active.svg +9 -0
  179. package/es/assets/img/svg/firstsetting/bar-normal.svg +3 -0
  180. package/es/assets/img/svg/firstsetting/bullet-current.svg +3 -0
  181. package/es/assets/img/svg/firstsetting/bullet-done.svg +3 -0
  182. package/es/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
  183. package/es/assets/img/svg/firstsetting/check-active.svg +3 -0
  184. package/es/assets/img/svg/firstsetting/check-normal.svg +3 -0
  185. package/es/assets/img/svg/firstsetting/pencil.svg +11 -0
  186. package/es/assets/img/svg/green_checkmark.svg +27 -0
  187. package/es/assets/img/svg/headerbar/assist.svg +3 -0
  188. package/es/assets/img/svg/headerbar/cart.svg +3 -0
  189. package/es/assets/img/svg/headerbar/check.svg +10 -0
  190. package/es/assets/img/svg/headerbar/consult_designer.svg +45 -0
  191. package/es/assets/img/svg/headerbar/edit_name.svg +26 -0
  192. package/es/assets/img/svg/headerbar/file-dollar.svg +13 -0
  193. package/es/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
  194. package/es/assets/img/svg/headerbar/plus.svg +11 -0
  195. package/es/assets/img/svg/headerbar/review_quote.svg +44 -0
  196. package/es/assets/img/svg/headerbar/ruler-measure.svg +11 -0
  197. package/es/assets/img/svg/headerbar/save.svg +3 -0
  198. package/es/assets/img/svg/headerbar/setting.svg +75 -0
  199. package/es/assets/img/svg/help/check.svg +10 -0
  200. package/es/assets/img/svg/help/search.svg +76 -0
  201. package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
  202. package/es/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
  203. package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
  204. package/es/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
  205. package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
  206. package/es/assets/img/svg/intro/3-retrieve-project.svg +18 -0
  207. package/es/assets/img/svg/invert.svg +127 -0
  208. package/es/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
  209. package/es/assets/img/svg/lefttoolbar/appliance.svg +13 -0
  210. package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
  211. package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
  212. package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
  213. package/es/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
  214. package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
  215. package/es/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
  216. package/es/assets/img/svg/lefttoolbar/door-style.svg +20 -0
  217. package/es/assets/img/svg/lefttoolbar/door.svg +12 -0
  218. package/es/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
  219. package/es/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
  220. package/es/assets/img/svg/lefttoolbar/finishing.svg +13 -0
  221. package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
  222. package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
  223. package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
  224. package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
  225. package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
  226. package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
  227. package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
  228. package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
  229. package/es/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
  230. package/es/assets/img/svg/lefttoolbar/search.svg +76 -0
  231. package/es/assets/img/svg/lefttoolbar/view_more.svg +86 -0
  232. package/es/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
  233. package/es/assets/img/svg/lefttoolbar/window.svg +12 -0
  234. package/es/assets/img/svg/logo.svg +11 -0
  235. package/es/assets/img/svg/logo_with_text.svg +25 -0
  236. package/es/assets/img/svg/menubar/login.svg +84 -0
  237. package/es/assets/img/svg/menubar/my_projects.svg +85 -0
  238. package/es/assets/img/svg/menubar/new_project.svg +110 -0
  239. package/es/assets/img/svg/menubar/save_project.svg +84 -0
  240. package/es/assets/img/svg/options.svg +3 -0
  241. package/es/assets/img/svg/positioning.svg +3 -0
  242. package/es/assets/img/svg/rotate.png +0 -0
  243. package/es/assets/img/svg/rotate.svg +17 -0
  244. package/es/assets/img/svg/rotate_object_clockwise.svg +26 -0
  245. package/es/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
  246. package/es/assets/img/svg/toggleFilters.svg +19 -0
  247. package/es/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
  248. package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
  249. package/es/assets/img/svg/toolbar/add_button.svg +36 -0
  250. package/es/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
  251. package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
  252. package/es/assets/img/svg/toolbar/add_items_doors.svg +25 -0
  253. package/es/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
  254. package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
  255. package/es/assets/img/svg/toolbar/add_items_windows.svg +28 -0
  256. package/es/assets/img/svg/toolbar/apply_button.svg +38 -0
  257. package/es/assets/img/svg/toolbar/arrow-plus.svg +11 -0
  258. package/es/assets/img/svg/toolbar/backsplash.svg +8 -0
  259. package/es/assets/img/svg/toolbar/cancel_button.svg +37 -0
  260. package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
  261. package/es/assets/img/svg/toolbar/countertop.svg +7 -0
  262. package/es/assets/img/svg/toolbar/dcm.png +0 -0
  263. package/es/assets/img/svg/toolbar/dcm_off.svg +12 -0
  264. package/es/assets/img/svg/toolbar/dcm_on.svg +474 -0
  265. package/es/assets/img/svg/toolbar/delete_button.svg +37 -0
  266. package/es/assets/img/svg/toolbar/download.svg +77 -0
  267. package/es/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
  268. package/es/assets/img/svg/toolbar/edit_button.svg +75 -0
  269. package/es/assets/img/svg/toolbar/email_quote_button.svg +44 -0
  270. package/es/assets/img/svg/toolbar/fbm.png +0 -0
  271. package/es/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
  272. package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
  273. package/es/assets/img/svg/toolbar/floorstyle.svg +9 -0
  274. package/es/assets/img/svg/toolbar/fmb.png +0 -0
  275. package/es/assets/img/svg/toolbar/fmb_off.svg +12 -0
  276. package/es/assets/img/svg/toolbar/fmb_on.svg +489 -0
  277. package/es/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
  278. package/es/assets/img/svg/toolbar/get_started_button.svg +41 -0
  279. package/es/assets/img/svg/toolbar/handles.svg +5 -0
  280. package/es/assets/img/svg/toolbar/lighting.svg +7 -0
  281. package/es/assets/img/svg/toolbar/lrm.png +0 -0
  282. package/es/assets/img/svg/toolbar/lrm_off.svg +12 -0
  283. package/es/assets/img/svg/toolbar/lrm_on.svg +470 -0
  284. package/es/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
  285. package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
  286. package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
  287. package/es/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
  288. package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
  289. package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
  290. package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
  291. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
  292. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
  293. package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
  294. package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
  295. package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
  296. package/es/assets/img/svg/toolbar/redo_button.svg +75 -0
  297. package/es/assets/img/svg/toolbar/redo_button1.svg +75 -0
  298. package/es/assets/img/svg/toolbar/review_quote_active.svg +14 -0
  299. package/es/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
  300. package/es/assets/img/svg/toolbar/save_project_button.svg +44 -0
  301. package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
  302. package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
  303. package/es/assets/img/svg/toolbar/shopping-cart.svg +13 -0
  304. package/es/assets/img/svg/toolbar/style_change_button.svg +47 -0
  305. package/es/assets/img/svg/toolbar/take_picture.svg +75 -0
  306. package/es/assets/img/svg/toolbar/undo_button.svg +76 -0
  307. package/es/assets/img/svg/toolbar/undo_button1.svg +76 -0
  308. package/es/assets/img/svg/toolbar/use_button.svg +37 -0
  309. package/es/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
  310. package/es/assets/img/svg/topbar/edit_active.svg +10 -0
  311. package/es/assets/img/svg/topbar/edit_inactive.svg +10 -0
  312. package/es/assets/img/svg/topbar/redo_active.svg +42 -0
  313. package/es/assets/img/svg/topbar/redo_inactive.svg +23 -0
  314. package/es/assets/img/svg/topbar/select_all_active.svg +50 -0
  315. package/es/assets/img/svg/topbar/select_all_inactive.svg +32 -0
  316. package/es/assets/img/svg/topbar/take_picture_active.svg +51 -0
  317. package/es/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
  318. package/es/assets/img/svg/topbar/undo_active.svg +42 -0
  319. package/es/assets/img/svg/topbar/undo_inactive.svg +23 -0
  320. package/es/assets/img/svg/warning_info_2d.svg +81 -0
  321. package/es/assets/img/svg/window/Clear.svg +3 -0
  322. package/es/assets/img/svg/window/Cross.svg +5 -0
  323. package/es/assets/img/svg/window/Double_hung.svg +4 -0
  324. package/es/assets/img/svg/window/Vertical.svg +4 -0
  325. package/es/assets/img/svg/windows_clear.svg +23 -0
  326. package/es/assets/img/svg/windows_cross.svg +28 -0
  327. package/es/assets/img/svg/windows_double_hung.svg +24 -0
  328. package/es/assets/img/svg/windows_vertical.svg +24 -0
  329. package/es/assets/img/svg/wizardstep/Custom.svg +3 -0
  330. package/es/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
  331. package/es/assets/img/svg/wizardstep/L.svg +3 -0
  332. package/es/assets/img/svg/wizardstep/L2.svg +3 -0
  333. package/es/assets/img/svg/wizardstep/Open.svg +3 -0
  334. package/es/assets/img/svg/wizardstep/Square.svg +3 -0
  335. package/es/assets/img/svg/wizardstep/bar-active.svg +9 -0
  336. package/es/assets/img/svg/wizardstep/bar-normal.svg +3 -0
  337. package/es/assets/img/svg/wizardstep/bullet-current.svg +3 -0
  338. package/es/assets/img/svg/wizardstep/bullet-done.svg +3 -0
  339. package/es/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
  340. package/es/assets/img/svg/wizardstep/check-active.svg +3 -0
  341. package/es/assets/img/svg/wizardstep/check-normal.svg +3 -0
  342. package/es/assets/img/svg/wizardstep/detail_view.svg +87 -0
  343. package/es/assets/img/svg/wizardstep/pencil.svg +11 -0
  344. package/es/assets/img/svg/wizardstep/tile_view.svg +95 -0
  345. package/es/assets/img/texture/glass.jpg +0 -0
  346. package/es/assets/img/texture/steel.jpg +0 -0
  347. package/es/assets/img/texture/white1px.jpg +0 -0
  348. package/es/assets/img/texture/wood.jpg +0 -0
  349. package/es/assets/model/DCM.bin +0 -0
  350. package/es/assets/model/DCM.fbx +0 -0
  351. package/es/assets/model/DCM.gltf +1 -0
  352. package/es/assets/model/FBM.bin +0 -0
  353. package/es/assets/model/FBM.fbx +0 -0
  354. package/es/assets/model/FBM.gltf +1 -0
  355. package/es/assets/model/LRM.bin +0 -0
  356. package/es/assets/model/LRM.fbx +0 -0
  357. package/es/assets/model/LRM.gltf +1 -0
  358. package/es/assets/rtastore_logo.png +0 -0
  359. package/es/catalog/areas/area/planner-element.js +12 -7
  360. package/es/catalog/back.png +0 -0
  361. package/es/catalog/catalog.js +4 -16
  362. package/es/catalog/doors.png +0 -0
  363. package/es/catalog/doorways.png +0 -0
  364. package/es/catalog/export.js +0 -0
  365. package/es/catalog/factories/area-factory.js +1 -4
  366. package/es/catalog/factories/wall-factory-3d.js +3 -3
  367. package/es/catalog/factories/wall-factory.js +9 -10
  368. package/es/catalog/lines/wall/planner-element.js +20 -11
  369. package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
  370. package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
  371. package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
  372. package/es/catalog/properties/property-checkbox.js +2 -5
  373. package/es/catalog/properties/property-enum.js +2 -7
  374. package/es/catalog/properties/property-lenght-measure.js +4 -5
  375. package/es/catalog/properties/property-length-measure.js +6 -7
  376. package/es/catalog/properties/property-length-measure_hole.js +4 -5
  377. package/es/catalog/utils/FuseUtils.js +3 -6
  378. package/es/catalog/utils/exporter.js +7 -6
  379. package/es/catalog/utils/item-loader.js +115 -42
  380. package/es/catalog/utils/mtl-loader.js +2 -2
  381. package/es/catalog/utils/obj-loader.js +2 -2
  382. package/es/catalog/windows.png +0 -0
  383. package/es/class/FuseUtils.js +3 -6
  384. package/es/class/area.js +3 -7
  385. package/es/class/group.js +3 -12
  386. package/es/class/guide.js +2 -6
  387. package/es/class/hole.js +2 -6
  388. package/es/class/item.js +124 -164
  389. package/es/class/layer.js +2 -6
  390. package/es/class/line.js +115 -74
  391. package/es/class/project.js +34 -32
  392. package/es/class/vertex.js +4 -8
  393. package/es/components/content.js +30 -5
  394. package/es/components/export.js +3 -5
  395. package/es/components/style/button.js +7 -14
  396. package/es/components/style/cancel-button.js +2 -3
  397. package/es/components/style/content-container.js +1 -4
  398. package/es/components/style/content-title.js +3 -7
  399. package/es/components/style/delete-button.js +2 -3
  400. package/es/components/style/form-block.js +3 -7
  401. package/es/components/style/form-color-input.js +2 -3
  402. package/es/components/style/form-label.js +3 -7
  403. package/es/components/style/form-number-input.js +6 -12
  404. package/es/components/style/form-number-input_2.js +6 -12
  405. package/es/components/style/form-select.js +3 -4
  406. package/es/components/style/form-slider.js +24 -9
  407. package/es/components/style/form-submit-button.js +2 -3
  408. package/es/components/style/form-text-input.js +8 -15
  409. package/es/components/viewer2d/area.js +4 -4
  410. package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -1
  411. package/es/components/viewer2d/grids/grid-streak.js +1 -2
  412. package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -1
  413. package/es/components/viewer2d/grids/grids.js +1 -6
  414. package/es/components/viewer2d/item.js +25 -91
  415. package/es/components/viewer2d/layer.js +1 -1
  416. package/es/components/viewer2d/line.js +336 -257
  417. package/es/components/viewer2d/ruler.js +17 -38
  418. package/es/components/viewer2d/rulerDist.js +19 -33
  419. package/es/components/viewer2d/rulerX.js +6 -12
  420. package/es/components/viewer2d/rulerY.js +6 -12
  421. package/es/components/viewer2d/scene.js +13 -25
  422. package/es/components/viewer2d/state.js +1 -6
  423. package/es/components/viewer2d/utils.js +27 -2
  424. package/es/components/viewer2d/viewer2d.js +155 -120
  425. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +6 -13
  426. package/es/components/viewer3d/front3D.js +1 -6
  427. package/es/components/viewer3d/libs/mtl-loader.js +2 -2
  428. package/es/components/viewer3d/libs/obj-loader.js +2 -2
  429. package/es/components/viewer3d/libs/orbit-controls.js +3 -4
  430. package/es/components/viewer3d/libs/pointer-lock-controls.js +6 -7
  431. package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
  432. package/es/components/viewer3d/ruler-utils/layer3D.js +2 -2
  433. package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -4
  434. package/es/components/viewer3d/ruler-utils/scene3D.js +1 -3
  435. package/es/components/viewer3d/scene-creator.js +27 -18
  436. package/es/components/viewer3d/viewer3d-first-person.js +5 -11
  437. package/es/components/viewer3d/viewer3d.js +379 -254
  438. package/es/constants.js +55 -3
  439. package/es/devLiteRenderer.js +316 -0
  440. package/es/index.js +56 -15
  441. package/es/models.js +16 -20
  442. package/es/plugins/console-debugger.js +1 -4
  443. package/es/plugins/export.js +1 -3
  444. package/es/reducers/items-reducer.js +8 -4
  445. package/es/reducers/project-reducer.js +4 -2
  446. package/es/reducers/viewer2d-reducer.js +2 -2
  447. package/es/reducers/viewer3d-reducer.js +2 -2
  448. package/es/shared-style.js +4 -4
  449. package/es/translator/translator.js +2 -6
  450. package/es/utils/convert-units-lite.js +29 -0
  451. package/es/utils/geometry.js +68 -42
  452. package/es/utils/get-edges-of-subgraphs.js +1 -1
  453. package/es/utils/graph-cycles.js +1 -1
  454. package/es/utils/graph.js +3 -7
  455. package/es/utils/helper.js +4 -6
  456. package/es/utils/id-broker.js +4 -8
  457. package/es/utils/isolate-event-handler.js +683 -0
  458. package/es/utils/molding.js +36 -42
  459. package/es/utils/name-generator.js +2 -6
  460. package/es/utils/objects-utils.js +1 -1
  461. package/es/utils/process-black-list.js +1 -4
  462. package/es/utils/snap-scene.js +1 -6
  463. package/es/utils/snap.js +6 -12
  464. package/es/utils/threeCSG.es6.js +2 -6
  465. package/es/version.js +1 -2
  466. package/lib/@history.js +3 -2
  467. package/lib/AppContext.js +3 -2
  468. package/lib/LiteKitchenConfigurator.js +490 -0
  469. package/lib/LiteRenderer.js +513 -0
  470. package/lib/actions/export.js +35 -39
  471. package/lib/actions/items-actions.js +11 -5
  472. package/lib/actions/project-actions.js +9 -3
  473. package/lib/analytics/ga4.js +3 -6
  474. package/lib/analytics/posthog.js +1 -1
  475. package/lib/assets/Window.hdr +2100 -0
  476. package/lib/assets/brown_photostudio_02_1k.hdr +0 -0
  477. package/lib/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
  478. package/lib/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
  479. package/lib/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
  480. package/lib/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
  481. package/lib/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
  482. package/lib/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
  483. package/lib/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
  484. package/lib/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
  485. package/lib/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
  486. package/lib/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
  487. package/lib/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
  488. package/lib/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
  489. package/lib/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
  490. package/lib/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
  491. package/lib/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
  492. package/lib/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
  493. package/lib/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
  494. package/lib/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
  495. package/lib/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
  496. package/lib/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
  497. package/lib/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
  498. package/lib/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
  499. package/lib/assets/fonts/style.css +177 -0
  500. package/lib/assets/gltf/door_closet.bin +0 -0
  501. package/lib/assets/gltf/door_closet.fbx +0 -0
  502. package/lib/assets/gltf/door_closet.gltf +1 -0
  503. package/lib/assets/gltf/door_exterior.bin +0 -0
  504. package/lib/assets/gltf/door_exterior.fbx +0 -0
  505. package/lib/assets/gltf/door_exterior.gltf +1 -0
  506. package/lib/assets/gltf/door_interior.bin +0 -0
  507. package/lib/assets/gltf/door_interior.fbx +0 -0
  508. package/lib/assets/gltf/door_interior.gltf +1 -0
  509. package/lib/assets/gltf/door_sliding.bin +0 -0
  510. package/lib/assets/gltf/door_sliding.fbx +0 -0
  511. package/lib/assets/gltf/door_sliding.gltf +1 -0
  512. package/lib/assets/gltf/doorway_framed.bin +0 -0
  513. package/lib/assets/gltf/doorway_framed.fbx +0 -0
  514. package/lib/assets/gltf/doorway_framed.gltf +1 -0
  515. package/lib/assets/gltf/window_clear.bin +0 -0
  516. package/lib/assets/gltf/window_clear.fbx +0 -0
  517. package/lib/assets/gltf/window_clear.gltf +1 -0
  518. package/lib/assets/gltf/window_cross.bin +0 -0
  519. package/lib/assets/gltf/window_cross.fbx +0 -0
  520. package/lib/assets/gltf/window_cross.gltf +1 -0
  521. package/lib/assets/gltf/window_double_hung.bin +0 -0
  522. package/lib/assets/gltf/window_double_hung.fbx +0 -0
  523. package/lib/assets/gltf/window_double_hung.gltf +1 -0
  524. package/lib/assets/gltf/window_vertical.bin +0 -0
  525. package/lib/assets/gltf/window_vertical.fbx +0 -0
  526. package/lib/assets/gltf/window_vertical.gltf +1 -0
  527. package/lib/assets/img/1.jpg +0 -0
  528. package/lib/assets/img/TKC_thumbnail.png +0 -0
  529. package/lib/assets/img/Toggle.png +0 -0
  530. package/lib/assets/img/loading/loading.gif +0 -0
  531. package/lib/assets/img/loading/loading_1.svg +11 -0
  532. package/lib/assets/img/loading_large.gif +0 -0
  533. package/lib/assets/img/png/door/closet.png +0 -0
  534. package/lib/assets/img/png/door/doorwaysframed.png +0 -0
  535. package/lib/assets/img/png/door/doorwaysframeles.png +0 -0
  536. package/lib/assets/img/png/door/doorwaysframeless.png +0 -0
  537. package/lib/assets/img/png/door/exterior.png +0 -0
  538. package/lib/assets/img/png/door/interior.png +0 -0
  539. package/lib/assets/img/png/door/sliding.png +0 -0
  540. package/lib/assets/img/png/helper/outcome.png +0 -0
  541. package/lib/assets/img/png/helper/video_preview_3d.png +0 -0
  542. package/lib/assets/img/png/helper/video_preview_start.png +0 -0
  543. package/lib/assets/img/project_img.png +0 -0
  544. package/lib/assets/img/rta/rta_logo_box_blue.jpg +0 -0
  545. package/lib/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
  546. package/lib/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
  547. package/lib/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
  548. package/lib/assets/img/rta/rta_logo_box_lightblue.png +0 -0
  549. package/lib/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
  550. package/lib/assets/img/rta/rta_logo_box_maroon.png +0 -0
  551. package/lib/assets/img/rta/rta_logo_box_white.png +0 -0
  552. package/lib/assets/img/rta_menu.png +0 -0
  553. package/lib/assets/img/step2.jpg +0 -0
  554. package/lib/assets/img/step3.jpg +0 -0
  555. package/lib/assets/img/step4.jpg +0 -0
  556. package/lib/assets/img/step5.jpg +0 -0
  557. package/lib/assets/img/step6.jpg +0 -0
  558. package/lib/assets/img/step7.jpg +0 -0
  559. package/lib/assets/img/step8.jpg +0 -0
  560. package/lib/assets/img/svg/2d_delete_object.svg +33 -0
  561. package/lib/assets/img/svg/2d_delete_object1.svg +33 -0
  562. package/lib/assets/img/svg/2d_lock_object.svg +33 -0
  563. package/lib/assets/img/svg/3d_item_move.svg +106 -0
  564. package/lib/assets/img/svg/3d_item_rotation.svg +76 -0
  565. package/lib/assets/img/svg/3d_item_warning_edit.svg +77 -0
  566. package/lib/assets/img/svg/3d_item_warning_info.svg +81 -0
  567. package/lib/assets/img/svg/accessories.svg +4 -0
  568. package/lib/assets/img/svg/angle_icon.svg +39 -0
  569. package/lib/assets/img/svg/blank_div.svg +14 -0
  570. package/lib/assets/img/svg/bottombar/2d3d_button.svg +3 -0
  571. package/lib/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
  572. package/lib/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
  573. package/lib/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
  574. package/lib/assets/img/svg/bottombar/arrow-down.svg +3 -0
  575. package/lib/assets/img/svg/bottombar/arrow-left.svg +3 -0
  576. package/lib/assets/img/svg/bottombar/arrow-minus.svg +3 -0
  577. package/lib/assets/img/svg/bottombar/arrow-plus.svg +11 -0
  578. package/lib/assets/img/svg/bottombar/arrow-right.svg +3 -0
  579. package/lib/assets/img/svg/bottombar/arrow-up.svg +3 -0
  580. package/lib/assets/img/svg/bottombar/collapse.svg +3 -0
  581. package/lib/assets/img/svg/bottombar/elevation-back.svg +6 -0
  582. package/lib/assets/img/svg/bottombar/elevation-front.svg +6 -0
  583. package/lib/assets/img/svg/bottombar/elevation-left.svg +6 -0
  584. package/lib/assets/img/svg/bottombar/elevation-right.svg +7 -0
  585. package/lib/assets/img/svg/bottombar/elevation.svg +6 -0
  586. package/lib/assets/img/svg/bottombar/expand.svg +3 -0
  587. package/lib/assets/img/svg/bottombar/help.svg +72 -0
  588. package/lib/assets/img/svg/bottombar/incm_toggle.svg +39 -0
  589. package/lib/assets/img/svg/bottombar/pan_1.svg +57 -0
  590. package/lib/assets/img/svg/bottombar/pan_2.svg +27 -0
  591. package/lib/assets/img/svg/bottombar/pan_3.svg +27 -0
  592. package/lib/assets/img/svg/bottombar/pan_4.svg +27 -0
  593. package/lib/assets/img/svg/bottombar/pan_5.svg +27 -0
  594. package/lib/assets/img/svg/bottombar/settings.svg +23 -0
  595. package/lib/assets/img/svg/bottombar/spin-down.svg +76 -0
  596. package/lib/assets/img/svg/bottombar/spin-left.svg +75 -0
  597. package/lib/assets/img/svg/bottombar/spin-right.svg +75 -0
  598. package/lib/assets/img/svg/bottombar/spin-up.svg +76 -0
  599. package/lib/assets/img/svg/bottombar/spin_1.svg +48 -0
  600. package/lib/assets/img/svg/bottombar/spin_2.svg +31 -0
  601. package/lib/assets/img/svg/bottombar/spin_3.svg +31 -0
  602. package/lib/assets/img/svg/bottombar/spin_4.svg +31 -0
  603. package/lib/assets/img/svg/bottombar/spin_5.svg +31 -0
  604. package/lib/assets/img/svg/bottombar/zoomin.svg +29 -0
  605. package/lib/assets/img/svg/bottombar/zoomout.svg +26 -0
  606. package/lib/assets/img/svg/check.svg +10 -0
  607. package/lib/assets/img/svg/close.svg +11 -0
  608. package/lib/assets/img/svg/color/Black.svg +3 -0
  609. package/lib/assets/img/svg/color/Blue.svg +3 -0
  610. package/lib/assets/img/svg/color/Brown.svg +9 -0
  611. package/lib/assets/img/svg/color/Cream.svg +3 -0
  612. package/lib/assets/img/svg/color/Dark.svg +9 -0
  613. package/lib/assets/img/svg/color/Gray.svg +3 -0
  614. package/lib/assets/img/svg/color/Green.svg +3 -0
  615. package/lib/assets/img/svg/color/Light.svg +9 -0
  616. package/lib/assets/img/svg/color/Medium.svg +9 -0
  617. package/lib/assets/img/svg/color/Unfinished.svg +9 -0
  618. package/lib/assets/img/svg/color/White.svg +3 -0
  619. package/lib/assets/img/svg/color/White.svg.bak +3 -0
  620. package/lib/assets/img/svg/color/stone2.jpg +0 -0
  621. package/lib/assets/img/svg/color/wood2.jpg +0 -0
  622. package/lib/assets/img/svg/copy.svg +11 -0
  623. package/lib/assets/img/svg/delete.svg +3 -0
  624. package/lib/assets/img/svg/detail.svg +77 -0
  625. package/lib/assets/img/svg/disclaimer/background.svg +758 -0
  626. package/lib/assets/img/svg/disclaimer/logo-dots.svg +11 -0
  627. package/lib/assets/img/svg/door/Closet.svg +11 -0
  628. package/lib/assets/img/svg/door/Exterior.svg +5 -0
  629. package/lib/assets/img/svg/door/Framed_dorway.svg +5 -0
  630. package/lib/assets/img/svg/door/Frameless_dorway.svg +5 -0
  631. package/lib/assets/img/svg/door/Interior.svg +7 -0
  632. package/lib/assets/img/svg/door/Sliding.svg +5 -0
  633. package/lib/assets/img/svg/doors_closet.svg +47 -0
  634. package/lib/assets/img/svg/doors_exterior.svg +25 -0
  635. package/lib/assets/img/svg/doors_interior.svg +29 -0
  636. package/lib/assets/img/svg/doors_patio.svg +26 -0
  637. package/lib/assets/img/svg/duplicate.svg +11 -0
  638. package/lib/assets/img/svg/duplicate_object_left.svg +32 -0
  639. package/lib/assets/img/svg/duplicate_object_right.svg +32 -0
  640. package/lib/assets/img/svg/filtersActive.svg +19 -0
  641. package/lib/assets/img/svg/firstsetting/L.svg +3 -0
  642. package/lib/assets/img/svg/firstsetting/L2.svg +3 -0
  643. package/lib/assets/img/svg/firstsetting/Open.svg +3 -0
  644. package/lib/assets/img/svg/firstsetting/Square.svg +3 -0
  645. package/lib/assets/img/svg/firstsetting/bar-active.svg +9 -0
  646. package/lib/assets/img/svg/firstsetting/bar-normal.svg +3 -0
  647. package/lib/assets/img/svg/firstsetting/bullet-current.svg +3 -0
  648. package/lib/assets/img/svg/firstsetting/bullet-done.svg +3 -0
  649. package/lib/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
  650. package/lib/assets/img/svg/firstsetting/check-active.svg +3 -0
  651. package/lib/assets/img/svg/firstsetting/check-normal.svg +3 -0
  652. package/lib/assets/img/svg/firstsetting/pencil.svg +11 -0
  653. package/lib/assets/img/svg/green_checkmark.svg +27 -0
  654. package/lib/assets/img/svg/headerbar/assist.svg +3 -0
  655. package/lib/assets/img/svg/headerbar/cart.svg +3 -0
  656. package/lib/assets/img/svg/headerbar/check.svg +10 -0
  657. package/lib/assets/img/svg/headerbar/consult_designer.svg +45 -0
  658. package/lib/assets/img/svg/headerbar/edit_name.svg +26 -0
  659. package/lib/assets/img/svg/headerbar/file-dollar.svg +13 -0
  660. package/lib/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
  661. package/lib/assets/img/svg/headerbar/plus.svg +11 -0
  662. package/lib/assets/img/svg/headerbar/review_quote.svg +44 -0
  663. package/lib/assets/img/svg/headerbar/ruler-measure.svg +11 -0
  664. package/lib/assets/img/svg/headerbar/save.svg +3 -0
  665. package/lib/assets/img/svg/headerbar/setting.svg +75 -0
  666. package/lib/assets/img/svg/help/check.svg +10 -0
  667. package/lib/assets/img/svg/help/search.svg +76 -0
  668. package/lib/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
  669. package/lib/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
  670. package/lib/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
  671. package/lib/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
  672. package/lib/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
  673. package/lib/assets/img/svg/intro/3-retrieve-project.svg +18 -0
  674. package/lib/assets/img/svg/invert.svg +127 -0
  675. package/lib/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
  676. package/lib/assets/img/svg/lefttoolbar/appliance.svg +13 -0
  677. package/lib/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
  678. package/lib/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
  679. package/lib/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
  680. package/lib/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
  681. package/lib/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
  682. package/lib/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
  683. package/lib/assets/img/svg/lefttoolbar/door-style.svg +20 -0
  684. package/lib/assets/img/svg/lefttoolbar/door.svg +12 -0
  685. package/lib/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
  686. package/lib/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
  687. package/lib/assets/img/svg/lefttoolbar/finishing.svg +13 -0
  688. package/lib/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
  689. package/lib/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
  690. package/lib/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
  691. package/lib/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
  692. package/lib/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
  693. package/lib/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
  694. package/lib/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
  695. package/lib/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
  696. package/lib/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
  697. package/lib/assets/img/svg/lefttoolbar/search.svg +76 -0
  698. package/lib/assets/img/svg/lefttoolbar/view_more.svg +86 -0
  699. package/lib/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
  700. package/lib/assets/img/svg/lefttoolbar/window.svg +12 -0
  701. package/lib/assets/img/svg/logo.svg +11 -0
  702. package/lib/assets/img/svg/logo_with_text.svg +25 -0
  703. package/lib/assets/img/svg/menubar/login.svg +84 -0
  704. package/lib/assets/img/svg/menubar/my_projects.svg +85 -0
  705. package/lib/assets/img/svg/menubar/new_project.svg +110 -0
  706. package/lib/assets/img/svg/menubar/save_project.svg +84 -0
  707. package/lib/assets/img/svg/options.svg +3 -0
  708. package/lib/assets/img/svg/positioning.svg +3 -0
  709. package/lib/assets/img/svg/rotate.png +0 -0
  710. package/lib/assets/img/svg/rotate.svg +17 -0
  711. package/lib/assets/img/svg/rotate_object_clockwise.svg +26 -0
  712. package/lib/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
  713. package/lib/assets/img/svg/toggleFilters.svg +19 -0
  714. package/lib/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
  715. package/lib/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
  716. package/lib/assets/img/svg/toolbar/add_button.svg +36 -0
  717. package/lib/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
  718. package/lib/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
  719. package/lib/assets/img/svg/toolbar/add_items_doors.svg +25 -0
  720. package/lib/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
  721. package/lib/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
  722. package/lib/assets/img/svg/toolbar/add_items_windows.svg +28 -0
  723. package/lib/assets/img/svg/toolbar/apply_button.svg +38 -0
  724. package/lib/assets/img/svg/toolbar/arrow-plus.svg +11 -0
  725. package/lib/assets/img/svg/toolbar/backsplash.svg +8 -0
  726. package/lib/assets/img/svg/toolbar/cancel_button.svg +37 -0
  727. package/lib/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
  728. package/lib/assets/img/svg/toolbar/countertop.svg +7 -0
  729. package/lib/assets/img/svg/toolbar/dcm.png +0 -0
  730. package/lib/assets/img/svg/toolbar/dcm_off.svg +12 -0
  731. package/lib/assets/img/svg/toolbar/dcm_on.svg +474 -0
  732. package/lib/assets/img/svg/toolbar/delete_button.svg +37 -0
  733. package/lib/assets/img/svg/toolbar/download.svg +77 -0
  734. package/lib/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
  735. package/lib/assets/img/svg/toolbar/edit_button.svg +75 -0
  736. package/lib/assets/img/svg/toolbar/email_quote_button.svg +44 -0
  737. package/lib/assets/img/svg/toolbar/fbm.png +0 -0
  738. package/lib/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
  739. package/lib/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
  740. package/lib/assets/img/svg/toolbar/floorstyle.svg +9 -0
  741. package/lib/assets/img/svg/toolbar/fmb.png +0 -0
  742. package/lib/assets/img/svg/toolbar/fmb_off.svg +12 -0
  743. package/lib/assets/img/svg/toolbar/fmb_on.svg +489 -0
  744. package/lib/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
  745. package/lib/assets/img/svg/toolbar/get_started_button.svg +41 -0
  746. package/lib/assets/img/svg/toolbar/handles.svg +5 -0
  747. package/lib/assets/img/svg/toolbar/lighting.svg +7 -0
  748. package/lib/assets/img/svg/toolbar/lrm.png +0 -0
  749. package/lib/assets/img/svg/toolbar/lrm_off.svg +12 -0
  750. package/lib/assets/img/svg/toolbar/lrm_on.svg +470 -0
  751. package/lib/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
  752. package/lib/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
  753. package/lib/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
  754. package/lib/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
  755. package/lib/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
  756. package/lib/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
  757. package/lib/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
  758. package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
  759. package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
  760. package/lib/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
  761. package/lib/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
  762. package/lib/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
  763. package/lib/assets/img/svg/toolbar/redo_button.svg +75 -0
  764. package/lib/assets/img/svg/toolbar/redo_button1.svg +75 -0
  765. package/lib/assets/img/svg/toolbar/review_quote_active.svg +14 -0
  766. package/lib/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
  767. package/lib/assets/img/svg/toolbar/save_project_button.svg +44 -0
  768. package/lib/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
  769. package/lib/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
  770. package/lib/assets/img/svg/toolbar/shopping-cart.svg +13 -0
  771. package/lib/assets/img/svg/toolbar/style_change_button.svg +47 -0
  772. package/lib/assets/img/svg/toolbar/take_picture.svg +75 -0
  773. package/lib/assets/img/svg/toolbar/undo_button.svg +76 -0
  774. package/lib/assets/img/svg/toolbar/undo_button1.svg +76 -0
  775. package/lib/assets/img/svg/toolbar/use_button.svg +37 -0
  776. package/lib/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
  777. package/lib/assets/img/svg/topbar/edit_active.svg +10 -0
  778. package/lib/assets/img/svg/topbar/edit_inactive.svg +10 -0
  779. package/lib/assets/img/svg/topbar/redo_active.svg +42 -0
  780. package/lib/assets/img/svg/topbar/redo_inactive.svg +23 -0
  781. package/lib/assets/img/svg/topbar/select_all_active.svg +50 -0
  782. package/lib/assets/img/svg/topbar/select_all_inactive.svg +32 -0
  783. package/lib/assets/img/svg/topbar/take_picture_active.svg +51 -0
  784. package/lib/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
  785. package/lib/assets/img/svg/topbar/undo_active.svg +42 -0
  786. package/lib/assets/img/svg/topbar/undo_inactive.svg +23 -0
  787. package/lib/assets/img/svg/warning_info_2d.svg +81 -0
  788. package/lib/assets/img/svg/window/Clear.svg +3 -0
  789. package/lib/assets/img/svg/window/Cross.svg +5 -0
  790. package/lib/assets/img/svg/window/Double_hung.svg +4 -0
  791. package/lib/assets/img/svg/window/Vertical.svg +4 -0
  792. package/lib/assets/img/svg/windows_clear.svg +23 -0
  793. package/lib/assets/img/svg/windows_cross.svg +28 -0
  794. package/lib/assets/img/svg/windows_double_hung.svg +24 -0
  795. package/lib/assets/img/svg/windows_vertical.svg +24 -0
  796. package/lib/assets/img/svg/wizardstep/Custom.svg +3 -0
  797. package/lib/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
  798. package/lib/assets/img/svg/wizardstep/L.svg +3 -0
  799. package/lib/assets/img/svg/wizardstep/L2.svg +3 -0
  800. package/lib/assets/img/svg/wizardstep/Open.svg +3 -0
  801. package/lib/assets/img/svg/wizardstep/Square.svg +3 -0
  802. package/lib/assets/img/svg/wizardstep/bar-active.svg +9 -0
  803. package/lib/assets/img/svg/wizardstep/bar-normal.svg +3 -0
  804. package/lib/assets/img/svg/wizardstep/bullet-current.svg +3 -0
  805. package/lib/assets/img/svg/wizardstep/bullet-done.svg +3 -0
  806. package/lib/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
  807. package/lib/assets/img/svg/wizardstep/check-active.svg +3 -0
  808. package/lib/assets/img/svg/wizardstep/check-normal.svg +3 -0
  809. package/lib/assets/img/svg/wizardstep/detail_view.svg +87 -0
  810. package/lib/assets/img/svg/wizardstep/pencil.svg +11 -0
  811. package/lib/assets/img/svg/wizardstep/tile_view.svg +95 -0
  812. package/lib/assets/img/texture/glass.jpg +0 -0
  813. package/lib/assets/img/texture/steel.jpg +0 -0
  814. package/lib/assets/img/texture/white1px.jpg +0 -0
  815. package/lib/assets/img/texture/wood.jpg +0 -0
  816. package/lib/assets/model/DCM.bin +0 -0
  817. package/lib/assets/model/DCM.fbx +0 -0
  818. package/lib/assets/model/DCM.gltf +1 -0
  819. package/lib/assets/model/FBM.bin +0 -0
  820. package/lib/assets/model/FBM.fbx +0 -0
  821. package/lib/assets/model/FBM.gltf +1 -0
  822. package/lib/assets/model/LRM.bin +0 -0
  823. package/lib/assets/model/LRM.fbx +0 -0
  824. package/lib/assets/model/LRM.gltf +1 -0
  825. package/lib/assets/rtastore_logo.png +0 -0
  826. package/lib/catalog/areas/area/planner-element.js +14 -7
  827. package/lib/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
  828. package/lib/catalog/areas/area/textures/grass.jpg +0 -0
  829. package/lib/catalog/areas/area/textures/parquet.jpg +0 -0
  830. package/lib/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
  831. package/lib/catalog/areas/area/textures/tile1.jpg +0 -0
  832. package/lib/catalog/back.png +0 -0
  833. package/lib/catalog/catalog.js +10 -20
  834. package/lib/catalog/doors.png +0 -0
  835. package/lib/catalog/doorways.png +0 -0
  836. package/lib/catalog/envMap/nx.hdr +0 -0
  837. package/lib/catalog/envMap/ny.hdr +0 -0
  838. package/lib/catalog/envMap/nz.hdr +0 -0
  839. package/lib/catalog/envMap/px.hdr +0 -0
  840. package/lib/catalog/envMap/py.hdr +0 -0
  841. package/lib/catalog/envMap/pz.hdr +0 -0
  842. package/lib/catalog/export.js +1 -0
  843. package/lib/catalog/factories/area-factory-3d.js +1 -1
  844. package/lib/catalog/factories/area-factory.js +6 -7
  845. package/lib/catalog/factories/export.js +1 -1
  846. package/lib/catalog/factories/wall-factory-3d.js +6 -6
  847. package/lib/catalog/factories/wall-factory.js +12 -11
  848. package/lib/catalog/holes/door-closet/planner-element.js +4 -3
  849. package/lib/catalog/holes/door-double/door_double.png +0 -0
  850. package/lib/catalog/holes/door-double/planner-element.js +4 -3
  851. package/lib/catalog/holes/door-exterior/planner-element.js +4 -3
  852. package/lib/catalog/holes/door-interior/planner-element.js +4 -3
  853. package/lib/catalog/holes/door-panic/panicDoor.png +0 -0
  854. package/lib/catalog/holes/door-panic/planner-element.js +4 -3
  855. package/lib/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
  856. package/lib/catalog/holes/door-panic-double/planner-element.js +4 -3
  857. package/lib/catalog/holes/door-sliding/planner-element.js +4 -3
  858. package/lib/catalog/holes/doorway-framed/planner-element.js +4 -3
  859. package/lib/catalog/holes/doorway-frameless/planner-element.js +4 -3
  860. package/lib/catalog/holes/export.js +2 -2
  861. package/lib/catalog/holes/gate/gate.jpg +0 -0
  862. package/lib/catalog/holes/window-clear/planner-element.js +4 -3
  863. package/lib/catalog/holes/window-clear/texture.png +0 -0
  864. package/lib/catalog/holes/window-cross/planner-element.js +4 -3
  865. package/lib/catalog/holes/window-cross/texture.png +0 -0
  866. package/lib/catalog/holes/window-double-hung/planner-element.js +4 -3
  867. package/lib/catalog/holes/window-double-hung/texture.png +0 -0
  868. package/lib/catalog/holes/window-vertical/planner-element.js +4 -3
  869. package/lib/catalog/holes/window-vertical/texture.png +0 -0
  870. package/lib/catalog/lines/wall/planner-element.js +22 -11
  871. package/lib/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
  872. package/lib/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
  873. package/lib/catalog/lines/wall/textures/bricks.jpg +0 -0
  874. package/lib/catalog/lines/wall/textures/bricks2.jpg +0 -0
  875. package/lib/catalog/lines/wall/textures/bricks3.jpg +0 -0
  876. package/lib/catalog/lines/wall/textures/morden-normal.jpg +0 -0
  877. package/lib/catalog/lines/wall/textures/morden.jpg +0 -0
  878. package/lib/catalog/lines/wall/textures/painted-normal.jpg +0 -0
  879. package/lib/catalog/lines/wall/textures/painted.jpg +0 -0
  880. package/lib/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
  881. package/lib/catalog/lines/wall/textures/plaster.jpg +0 -0
  882. package/lib/catalog/lines/wall/wall.png +0 -0
  883. package/lib/catalog/molding/molding-dcm/planner-element.js +2 -6
  884. package/lib/catalog/molding/molding-dcm/texture.png +0 -0
  885. package/lib/catalog/molding/molding-fbm/planner-element.js +2 -6
  886. package/lib/catalog/molding/molding-fbm/texture.png +0 -0
  887. package/lib/catalog/molding/molding-lrm/planner-element.js +2 -6
  888. package/lib/catalog/molding/molding-lrm/texture.png +0 -0
  889. package/lib/catalog/properties/export.js +1 -1
  890. package/lib/catalog/properties/property-checkbox.js +12 -14
  891. package/lib/catalog/properties/property-color.js +3 -2
  892. package/lib/catalog/properties/property-enum.js +8 -12
  893. package/lib/catalog/properties/property-hidden.js +3 -2
  894. package/lib/catalog/properties/property-lenght-measure.js +11 -11
  895. package/lib/catalog/properties/property-length-measure.js +15 -15
  896. package/lib/catalog/properties/property-length-measure_hole.js +10 -10
  897. package/lib/catalog/properties/property-number.js +3 -2
  898. package/lib/catalog/properties/property-read-only.js +3 -2
  899. package/lib/catalog/properties/property-string.js +3 -2
  900. package/lib/catalog/properties/property-toggle.js +3 -2
  901. package/lib/catalog/properties/shared-property-style.js +2 -1
  902. package/lib/catalog/utils/FuseUtils.js +10 -11
  903. package/lib/catalog/utils/exporter.js +15 -13
  904. package/lib/catalog/utils/geom-utils.js +1 -1
  905. package/lib/catalog/utils/item-loader.js +140 -65
  906. package/lib/catalog/utils/mtl-loader.js +9 -2
  907. package/lib/catalog/utils/obj-loader.js +10 -2
  908. package/lib/catalog/windows.png +0 -0
  909. package/lib/class/FuseUtils.js +10 -11
  910. package/lib/class/area.js +9 -11
  911. package/lib/class/export.js +1 -1
  912. package/lib/class/group.js +13 -20
  913. package/lib/class/guide.js +9 -12
  914. package/lib/class/hole.js +7 -9
  915. package/lib/class/item.js +134 -173
  916. package/lib/class/layer.js +7 -9
  917. package/lib/class/line.js +126 -82
  918. package/lib/class/project.js +40 -35
  919. package/lib/class/vertex.js +10 -12
  920. package/lib/components/content.js +35 -8
  921. package/lib/components/export.js +6 -32
  922. package/lib/components/style/button.js +17 -22
  923. package/lib/components/style/cancel-button.js +7 -7
  924. package/lib/components/style/content-container.js +5 -7
  925. package/lib/components/style/content-title.js +10 -12
  926. package/lib/components/style/delete-button.js +8 -8
  927. package/lib/components/style/export.js +1 -1
  928. package/lib/components/style/form-block.js +9 -12
  929. package/lib/components/style/form-color-input.js +7 -7
  930. package/lib/components/style/form-label.js +9 -12
  931. package/lib/components/style/form-number-input.js +15 -19
  932. package/lib/components/style/form-number-input_2.js +15 -19
  933. package/lib/components/style/form-select.js +10 -10
  934. package/lib/components/style/form-slider.js +28 -12
  935. package/lib/components/style/form-submit-button.js +8 -8
  936. package/lib/components/style/form-text-input.js +19 -24
  937. package/lib/components/viewer2d/area.js +8 -7
  938. package/lib/components/viewer2d/export.js +1 -1
  939. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +3 -3
  940. package/lib/components/viewer2d/grids/grid-streak.js +4 -4
  941. package/lib/components/viewer2d/grids/grid-vertical-streak.js +3 -3
  942. package/lib/components/viewer2d/grids/grids.js +6 -10
  943. package/lib/components/viewer2d/group.js +4 -3
  944. package/lib/components/viewer2d/item.js +34 -98
  945. package/lib/components/viewer2d/layer.js +4 -3
  946. package/lib/components/viewer2d/line.js +338 -258
  947. package/lib/components/viewer2d/ruler.js +21 -41
  948. package/lib/components/viewer2d/rulerDist.js +23 -36
  949. package/lib/components/viewer2d/rulerX.js +15 -19
  950. package/lib/components/viewer2d/rulerY.js +15 -19
  951. package/lib/components/viewer2d/scene.js +23 -33
  952. package/lib/components/viewer2d/snap.js +4 -3
  953. package/lib/components/viewer2d/state.js +7 -11
  954. package/lib/components/viewer2d/utils.js +29 -2
  955. package/lib/components/viewer2d/vertex.js +4 -3
  956. package/lib/components/viewer2d/viewer2d.js +178 -139
  957. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +14 -20
  958. package/lib/components/viewer3d/dcm.js +2 -1
  959. package/lib/components/viewer3d/fbm.js +2 -1
  960. package/lib/components/viewer3d/front3D.js +6 -10
  961. package/lib/components/viewer3d/grid-creator.js +4 -3
  962. package/lib/components/viewer3d/grids/grid-horizontal-streak.js +3 -2
  963. package/lib/components/viewer3d/grids/grid-streak.js +3 -2
  964. package/lib/components/viewer3d/grids/grid-vertical-streak.js +3 -2
  965. package/lib/components/viewer3d/libs/mtl-loader.js +9 -2
  966. package/lib/components/viewer3d/libs/obj-loader.js +9 -2
  967. package/lib/components/viewer3d/libs/orbit-controls.js +11 -5
  968. package/lib/components/viewer3d/libs/pointer-lock-controls.js +13 -7
  969. package/lib/components/viewer3d/lrm.js +2 -1
  970. package/lib/components/viewer3d/pointer-lock-navigation.js +1 -1
  971. package/lib/components/viewer3d/ruler-utils/itemRect.js +10 -9
  972. package/lib/components/viewer3d/ruler-utils/layer3D.js +35 -34
  973. package/lib/components/viewer3d/ruler-utils/ruler3D.js +5 -7
  974. package/lib/components/viewer3d/ruler-utils/scene3D.js +3 -5
  975. package/lib/components/viewer3d/ruler-utils/state3D.js +3 -2
  976. package/lib/components/viewer3d/scene-creator.js +62 -52
  977. package/lib/components/viewer3d/three-memory-cleaner.js +1 -1
  978. package/lib/components/viewer3d/viewer3d-first-person.js +13 -17
  979. package/lib/components/viewer3d/viewer3d.js +394 -266
  980. package/lib/constants.js +59 -7
  981. package/lib/devLiteRenderer.js +320 -0
  982. package/lib/index.js +59 -89
  983. package/lib/models.js +64 -68
  984. package/lib/plugins/console-debugger.js +5 -7
  985. package/lib/plugins/export.js +1 -9
  986. package/lib/plugins/keyboard.js +2 -1
  987. package/lib/reducers/areas-reducer.js +2 -1
  988. package/lib/reducers/export.js +1 -1
  989. package/lib/reducers/groups-reducer.js +2 -1
  990. package/lib/reducers/holes-reducer.js +2 -1
  991. package/lib/reducers/items-reducer.js +9 -4
  992. package/lib/reducers/lines-reducer.js +2 -1
  993. package/lib/reducers/project-reducer.js +5 -2
  994. package/lib/reducers/scene-reducer.js +2 -1
  995. package/lib/reducers/user-reducer.js +2 -1
  996. package/lib/reducers/vertices-reducer.js +2 -1
  997. package/lib/reducers/viewer2d-reducer.js +5 -5
  998. package/lib/reducers/viewer3d-reducer.js +5 -5
  999. package/lib/shared-style.js +4 -4
  1000. package/lib/styles/export.js +1 -1
  1001. package/lib/styles/tabs.css +40 -0
  1002. package/lib/translator/en.js +2 -1
  1003. package/lib/translator/it.js +2 -1
  1004. package/lib/translator/ru.js +2 -1
  1005. package/lib/translator/translator.js +7 -10
  1006. package/lib/utils/convert-units-lite.js +35 -0
  1007. package/lib/utils/export.js +2 -2
  1008. package/lib/utils/geometry.js +83 -54
  1009. package/lib/utils/get-edges-of-subgraphs.js +6 -1
  1010. package/lib/utils/graph-cycles.js +7 -8
  1011. package/lib/utils/graph-inner-cycles.js +1 -1
  1012. package/lib/utils/graph.js +13 -11
  1013. package/lib/utils/helper.js +15 -16
  1014. package/lib/utils/history.js +1 -1
  1015. package/lib/utils/id-broker.js +7 -10
  1016. package/lib/utils/isolate-event-handler.js +691 -0
  1017. package/lib/utils/molding.js +66 -71
  1018. package/lib/utils/name-generator.js +7 -9
  1019. package/lib/utils/objects-utils.js +5 -3
  1020. package/lib/utils/process-black-list.js +3 -5
  1021. package/lib/utils/react-if.js +3 -2
  1022. package/lib/utils/snap-scene.js +3 -7
  1023. package/lib/utils/snap.js +22 -26
  1024. package/lib/utils/threeCSG.es6.js +16 -15
  1025. package/lib/version.js +1 -2
  1026. package/package.json +53 -60
  1027. package/es/KitchenConfigurator.js +0 -652
  1028. package/es/KitchenConfiguratorApp.js +0 -495
  1029. package/es/components/disclaimer/disclaimer.js +0 -117
  1030. package/es/plugins/autosave.js +0 -33
  1031. package/lib/KitchenConfigurator.js +0 -660
  1032. package/lib/KitchenConfiguratorApp.js +0 -502
  1033. package/lib/components/disclaimer/disclaimer.js +0 -125
  1034. package/lib/plugins/autosave.js +0 -39
@@ -0,0 +1,40 @@
1
+ .react-tabs__tab-list {
2
+ border-bottom: 1px solid #aaa;
3
+ margin: 0 0 10px;
4
+ padding: 0;
5
+ }
6
+
7
+ .react-tabs__tab {
8
+ display: inline-block;
9
+ border: 1px solid transparent;
10
+ border-bottom: none;
11
+ bottom: -1px;
12
+ position: relative;
13
+ list-style: none;
14
+ padding: 6px 12px;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .react-tabs__tab--selected,
19
+ .react-tabs__tab:focus {
20
+ border-color: #aaa;
21
+ color: #1ca6fc;
22
+ outline: none;
23
+ }
24
+
25
+ .react-tabs__tab-panel {
26
+ display: none;
27
+ }
28
+
29
+ .react-tabs__tab-panel--selected {
30
+ display: block;
31
+ }
32
+
33
+ @keyframes spin {
34
+ from {
35
+ transform: rotate(0deg);
36
+ }
37
+ to {
38
+ transform: rotate(360deg);
39
+ }
40
+ }
@@ -107,4 +107,5 @@ var _default = exports["default"] = {
107
107
  Width: 'Width',
108
108
  Depth: 'Depth',
109
109
  Height: 'Height'
110
- };
110
+ };
111
+ module.exports = exports.default;
@@ -82,4 +82,5 @@ var _default = exports["default"] = {
82
82
  'Would you want to start a new Project?': 'Vuoi iniziare un nuovo progetto?',
83
83
  'Zoom in': 'Ingrandisci',
84
84
  'Zoom out': 'Riduci'
85
- };
85
+ };
86
+ module.exports = exports.default;
@@ -82,4 +82,5 @@ var _default = exports["default"] = {
82
82
  'Would you want to start a new Project?': 'Начать новый проект?',
83
83
  'Zoom in': 'Приблизить',
84
84
  'Zoom out': 'Отдалить'
85
- };
85
+ };
86
+ module.exports = exports.default;
@@ -1,23 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports["default"] = void 0;
8
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
7
10
  var _en = _interopRequireDefault(require("./en"));
8
11
  var _it = _interopRequireDefault(require("./it"));
9
12
  var _ru = _interopRequireDefault(require("./ru"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
- 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); }
12
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
- 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); } }
14
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
- 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); }
17
13
  var DEFAULT_LOCALE = 'en';
18
14
  var Translator = exports["default"] = /*#__PURE__*/function () {
19
15
  function Translator() {
20
- _classCallCheck(this, Translator);
16
+ (0, _classCallCheck2["default"])(this, Translator);
21
17
  this.locale = null;
22
18
  this.translations = {};
23
19
  this.registerTranslation('en', _en["default"]);
@@ -35,7 +31,7 @@ var Translator = exports["default"] = /*#__PURE__*/function () {
35
31
  locale = locale ? locale : DEFAULT_LOCALE;
36
32
  this.setLocale(locale);
37
33
  }
38
- return _createClass(Translator, [{
34
+ return (0, _createClass2["default"])(Translator, [{
39
35
  key: "t",
40
36
  value: function t(phrase) {
41
37
  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -87,4 +83,5 @@ var Translator = exports["default"] = /*#__PURE__*/function () {
87
83
  return navigator.languages ? navigator.languages : [navigator.language || navigator.userLanguage];
88
84
  }
89
85
  }]);
90
- }();
86
+ }();
87
+ module.exports = exports.default;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.convert = convert;
7
+ var lengthFactors = {
8
+ m: 1,
9
+ cm: 100,
10
+ mm: 1000,
11
+ "in": 39.3701,
12
+ ft: 3.28084,
13
+ m2: 1,
14
+ cm2: 10000,
15
+ // (100^2)
16
+ mm2: 1000000,
17
+ // (1000^2)
18
+ in2: 1550.0031,
19
+ // (39.3701^2)
20
+ ft2: 10.7639 // (3.28084^2)
21
+ };
22
+ function convert(value) {
23
+ return {
24
+ from: function from(fromUnit) {
25
+ return {
26
+ to: function to(toUnit) {
27
+ if (!(fromUnit in lengthFactors) || !(toUnit in lengthFactors)) {
28
+ throw new Error("Unsupported unit conversion: ".concat(fromUnit, " \u2192 ").concat(toUnit));
29
+ }
30
+ return value / lengthFactors[fromUnit] * lengthFactors[toUnit];
31
+ }
32
+ };
33
+ }
34
+ };
35
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
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); }
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -39,7 +40,6 @@ var _idBroker = _interopRequireDefault(require("./id-broker"));
39
40
  var _nameGenerator = _interopRequireDefault(require("./name-generator"));
40
41
  var Logger = _interopRequireWildcard(require("./logger"));
41
42
  exports.Logger = Logger;
42
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
43
43
  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); }
44
44
  var _default = exports["default"] = {
45
45
  GeometryUtils: GeometryUtils,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
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); }
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -49,6 +50,7 @@ exports.getHoleItems = getHoleItems;
49
50
  exports.getInterSect = getInterSect;
50
51
  exports.getLineInterSect = getLineInterSect;
51
52
  exports.getNormaline = getNormaline;
53
+ exports.getPoylgonPoints = getPoylgonPoints;
52
54
  exports.getRelatedLines = void 0;
53
55
  exports.getRelatedVertices = getRelatedVertices;
54
56
  exports.horizontalLine = horizontalLine;
@@ -88,37 +90,29 @@ exports.twoLineSegmentsIntersection = twoLineSegmentsIntersection;
88
90
  exports.twoLinesIntersection = twoLinesIntersection;
89
91
  exports.upcrossLine = upcrossLine;
90
92
  exports.validInterSect = validInterSect;
93
+ exports.validRect = validRect;
91
94
  exports.validSnap = validSnap;
92
95
  exports.validateLineSnaps = validateLineSnaps;
93
96
  exports.validateSnaps = validateSnaps;
94
97
  exports.verticalLine = verticalLine;
95
98
  exports.verticesDistance = verticesDistance;
96
99
  exports.verticesMidPoint = verticesMidPoint;
100
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
101
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
102
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
97
103
  var _math = require("./math.js");
98
104
  var _constants = require("../constants");
99
- var _convertUnits = _interopRequireDefault(require("convert-units"));
105
+ var _convertUnitsLite = require("./convert-units-lite");
100
106
  var Three = _interopRequireWildcard(require("three"));
101
107
  var _utils = require("../components/viewer2d/utils.js");
102
108
  var _helper = require("./helper.js");
103
109
  var _export = require("./export.js");
104
110
  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); }
105
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
106
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
107
- 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."); }
108
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
109
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
110
111
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
111
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
112
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
113
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
114
- 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); }
112
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
115
113
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
116
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
117
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
118
114
  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; } }
119
- 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; }
120
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
121
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /** @description Determines the distance between two points
115
+ 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; } /** @description Determines the distance between two points
122
116
  * @param {number} x0 Vertex 0 x
123
117
  * @param {number} y0 Vertex 0 y
124
118
  * @param {number} x1 Vertex 1 x
@@ -258,7 +252,7 @@ function _twoLineSegmentsIntersection(p1, p2, p3, p4) {
258
252
  var _sort = [line0, line1].sort(function (lineA, lineB) {
259
253
  return comparator(lineA[0], lineB[0]);
260
254
  }),
261
- _sort2 = _slicedToArray(_sort, 2),
255
+ _sort2 = (0, _slicedToArray2["default"])(_sort, 2),
262
256
  lineSX = _sort2[0],
263
257
  lineDX = _sort2[1];
264
258
  comparator(lineSX[1], lineDX[0]) < 0 ? 'colinear' : 'none';
@@ -442,7 +436,7 @@ function angleBetweenTwoLines(line, drawingLine, vertices) {
442
436
  var v = vertices === null || vertices === void 0 ? void 0 : vertices[idx];
443
437
  return v ? new Three.Vector2(v.x, v.y) : new Three.Vector2(0, 0);
444
438
  }),
445
- _points$slice$map2 = _slicedToArray(_points$slice$map, 3),
439
+ _points$slice$map2 = (0, _slicedToArray2["default"])(_points$slice$map, 3),
446
440
  c = _points$slice$map2[0],
447
441
  p1 = _points$slice$map2[1],
448
442
  p2 = _points$slice$map2[2];
@@ -489,17 +483,23 @@ function snapAngleByUnit(lineAngle, vertices, drawingLine, x, y, dragVertexId) {
489
483
  // angle snapping as a value of UNIT_ANGLE
490
484
  var rest = absAngle % _constants.UNIT_ANGLE;
491
485
  var missAngle = _constants.UNIT_ANGLE - rest;
486
+ var isSingleLine = !drawingLine.vertices.some(function (vetID) {
487
+ return vertices[vetID].lines.some(function (lineID) {
488
+ return lineID !== drawingLine.id;
489
+ });
490
+ });
492
491
  // the origin point of rotation(snapping)
493
- var originVerId = drawingLine.vertices.findIndex(function (vertice) {
492
+ var originVerIndex = drawingLine.vertices.findIndex(function (vertice) {
494
493
  return vertice !== dragVertexId;
495
494
  });
496
- originVerId = originVerId < 0 ? drawingLine.vertices[0] : drawingLine.vertices[originVerId];
495
+ var originVerId = originVerIndex < 0 ? drawingLine.vertices[0] : drawingLine.vertices[originVerIndex];
497
496
  var ox = vertices[originVerId].x;
498
497
  var oy = vertices[originVerId].y;
499
498
  // check whether the line is snapped to before point.
500
499
  if (rest <= _constants.UNIT_ANGLE / 2) {
501
500
  // determine the direction of rotation.
502
501
  rest = lineAngle > 0 ? rest : -rest;
502
+ rest = isSingleLine ? -rest : rest;
503
503
  // rotate the current point to last point around the first point of drawing line.
504
504
  tx = rotatePointAroundPoint(x, y, ox, oy, rest).x;
505
505
  ty = rotatePointAroundPoint(x, y, ox, oy, rest).y;
@@ -508,6 +508,7 @@ function snapAngleByUnit(lineAngle, vertices, drawingLine, x, y, dragVertexId) {
508
508
  else if (rest > _constants.UNIT_ANGLE / 2) {
509
509
  // determine the direction of rotation.
510
510
  missAngle = lineAngle > 0 ? -missAngle : missAngle;
511
+ missAngle = isSingleLine ? -missAngle : missAngle;
511
512
  // rotate the current point to last point around the first point of drawing line.
512
513
  tx = rotatePointAroundPoint(x, y, ox, oy, missAngle).x;
513
514
  ty = rotatePointAroundPoint(x, y, ox, oy, missAngle).y;
@@ -780,9 +781,9 @@ function getAllItems(scene, catalog, allLineRects) {
780
781
  layoutpos: cat && cat.info.layoutpos,
781
782
  is_corner: cat && cat.info.is_corner
782
783
  });
783
- width = (0, _convertUnits["default"])(sizeinfo.width).from(sizeinfo.widthUnit).to(scene.unit);
784
- height = (0, _convertUnits["default"])(sizeinfo.depth).from(sizeinfo.depthUnit).to(scene.unit);
785
- depth = (0, _convertUnits["default"])(sizeinfo.height).from(sizeinfo.heightUnit).to(scene.unit);
784
+ width = (0, _convertUnitsLite.convert)(sizeinfo.width).from(sizeinfo.widthUnit).to(scene.unit);
785
+ height = (0, _convertUnitsLite.convert)(sizeinfo.depth).from(sizeinfo.depthUnit).to(scene.unit);
786
+ depth = (0, _convertUnitsLite.convert)(sizeinfo.height).from(sizeinfo.heightUnit).to(scene.unit);
786
787
  val.size = {
787
788
  width: width,
788
789
  height: height,
@@ -841,7 +842,7 @@ function getAllItemSpecified(scene, catalog, filter) {
841
842
  var getSize = function getSize(key) {
842
843
  var _props$getIn;
843
844
  var length = props === null || props === void 0 || (_props$getIn = props.getIn) === null || _props$getIn === void 0 ? void 0 : _props$getIn.call(props, [key, '_length']);
844
- return length != null ? (0, _convertUnits["default"])(length).from('in').to(scene.unit) : 0;
845
+ return length != null ? (0, _convertUnitsLite.convert)(length).from('in').to(scene.unit) : 0;
845
846
  };
846
847
  val.size = {
847
848
  width: getSize('width'),
@@ -880,7 +881,7 @@ function findCatalogElement(catalog, elementName) {
880
881
  var deepVariants = variants.map(function (v) {
881
882
  return (0, _utils.returnReplaceableDeepSearchType)(v);
882
883
  }).filter(Boolean);
883
- var allCandidates = [].concat(variants, _toConsumableArray(deepVariants));
884
+ var allCandidates = [].concat(variants, (0, _toConsumableArray2["default"])(deepVariants));
884
885
  var getElement = function getElement(catid) {
885
886
  if (!catid) return null;
886
887
 
@@ -1037,7 +1038,15 @@ function getAllArea(layer) {
1037
1038
 
1038
1039
  /** Get all lines of the scene */
1039
1040
  function getAllLines(layer) {
1040
- var allAreaLines = getAllAreaLines(layer);
1041
+ var allArea = getAllArea(layer);
1042
+ var allAreaLines = [];
1043
+ var allVertices = layer.get('vertices').toJS();
1044
+ layer.lines.forEach(function (tline) {
1045
+ var line = tline.toJS();
1046
+ if (isPointInArea(allArea, allVertices[line.vertices[0]]) || isPointInArea(allArea, allVertices[line.vertices[1]])) {
1047
+ allAreaLines.push(line.vertices.reverse());
1048
+ }
1049
+ });
1041
1050
  var allLines = [];
1042
1051
  //let allNonAreaLines = [];
1043
1052
  var thick = _constants.LINE_THICKNESS / 2;
@@ -1188,21 +1197,8 @@ function getCalcRectFromLine(x0, y0, x1, y1, thick, layer) {
1188
1197
  rot += Math.PI;
1189
1198
  }
1190
1199
  } else {
1191
- var pt0 = point(x0 + ox, y0 + oy);
1192
- var pt1 = point(x1 + ox, y1 + oy);
1193
- var ptC = point((pt0.x + pt1.x) / 2, (pt0.y + pt1.y) / 2);
1194
- var allArea = getAllArea(layer);
1195
- if (isPointInArea(allArea, ptC)) {
1196
- // try make rect under line
1197
- var _pt0 = point(x0 - ox, y0 - oy);
1198
- var _pt1 = point(x1 - ox, y1 - oy);
1199
- var _ptC = point((_pt0.x + _pt1.x) / 2, (_pt0.y + _pt1.y) / 2);
1200
- if (!isPointInArea(allArea, _ptC)) {
1201
- // only under rect is not included in area, make rect under line
1202
- ox = -ox;
1203
- oy = -oy;
1204
- }
1205
- }
1200
+ ox = -ox;
1201
+ oy = -oy;
1206
1202
  }
1207
1203
  return {
1208
1204
  rectEnd: [point(x0 + ox / 2, y0 + oy / 2), point(x1 + ox / 2, y1 + oy / 2)],
@@ -1250,16 +1246,18 @@ function validateSnaps(allSnaps, allRects) {
1250
1246
  }
1251
1247
  function validateLineSnaps(allSnaps, allItemSnap, allLineSnap, allItemRects, allLineRects, allRects) {
1252
1248
  var validSnaps = [];
1249
+ var addFlag = true;
1253
1250
  allSnaps.forEach(function (snap) {
1254
1251
  if (validSnap(snap, allRects)) {
1255
1252
  validSnaps.push(snap);
1256
- } else {
1253
+ } else if (addFlag) {
1257
1254
  allItemSnap.forEach(function (snap) {
1258
1255
  validSnaps.push(snap);
1259
1256
  });
1260
1257
  allLineSnap.forEach(function (snap) {
1261
1258
  validSnaps.push(snap);
1262
1259
  });
1260
+ addFlag = false;
1263
1261
  }
1264
1262
  });
1265
1263
  return validSnaps;
@@ -1563,10 +1561,8 @@ function calcSnap2(allItemRect, allItemSnap, allLineRects, allLineSnap, allRect,
1563
1561
  val.is_corner = allItemRect.cur && allItemRect.cur.is_corner;
1564
1562
  var curitem = getCalcRectFromItem(val);
1565
1563
  var allCurSnap = [];
1566
- //if (!val.is_corner) {
1567
1564
  allCurSnap = getAllCurSnap(allLineRects, x, y, allItemRect.cur);
1568
1565
  allCurSnap = validateSnaps(allCurSnap, allRect);
1569
- //}
1570
1566
  var getSnap = false;
1571
1567
  var snapdist = [];
1572
1568
  //console.log("allItemSnap", allItemSnap.filter(e => e.isSnappedLine))
@@ -1717,7 +1713,7 @@ function calcSnap2(allItemRect, allItemSnap, allLineRects, allLineSnap, allRect,
1717
1713
  //Check case.
1718
1714
  //If item is 'blind base cabinet', it must be pulled from other 3".
1719
1715
  if (allItemRect.cur && allItemRect.cur.itemInfo.sku_number.startsWith('BBC')) {
1720
- var offset3inch = (0, _convertUnits["default"])(3).from('in').to('cm');
1716
+ var offset3inch = (0, _convertUnitsLite.convert)(3).from('in').to('cm');
1721
1717
  var tx = nx,
1722
1718
  ty = ny;
1723
1719
  if (allItemRect.cur && allItemRect.cur.itemInfo.sku_number.endsWith('-L')) {
@@ -1997,7 +1993,7 @@ function getAllHoleRect(scene, val) {
1997
1993
  y: vertice1.y
1998
1994
  };
1999
1995
  var rotation = Math.atan2(point1.y - point0.y, point1.x - point0.x);
2000
- var rectInfo = getCalcRectFromLine(point0.x, point0.y, point1.x, point1.y, _constants.LINE_THICKNESS, layer);
1996
+ var rectInfo = getCalcRectFromLine(point1.x, point1.y, point0.x, point0.y, _constants.LINE_THICKNESS, layer);
2001
1997
  var vN = point(rectInfo.rect[0].x - rectInfo.rect[3].x, rectInfo.rect[0].y - rectInfo.rect[3].y);
2002
1998
  var lenN = Math.sqrt(vN.x * vN.x + vN.y * vN.y);
2003
1999
  vN.x /= lenN;
@@ -2070,14 +2066,14 @@ function needSnap(curItem, othItem) {
2070
2066
  var blSnap = false;
2071
2067
  if (curItem == undefined || curItem == null) return false;
2072
2068
  var altitude = curItem.selectedItem.properties.get('altitude');
2073
- var heightFromFloor = (0, _convertUnits["default"])(altitude.get('_length')).from(altitude.get('_unit')).to('in');
2069
+ var heightFromFloor = (0, _convertUnitsLite.convert)(altitude.get('_length')).from(altitude.get('_unit')).to('in');
2074
2070
  var height = curItem.cat.info.sizeinfo.height;
2075
2071
  var currentItem = {
2076
2072
  heightFromFloor: heightFromFloor,
2077
2073
  height: height
2078
2074
  };
2079
2075
  altitude = othItem.item.properties.get('altitude');
2080
- heightFromFloor = (0, _convertUnits["default"])(altitude.get('_length')).from(altitude.get('_unit')).to('in');
2076
+ heightFromFloor = (0, _convertUnitsLite.convert)(altitude.get('_length')).from(altitude.get('_unit')).to('in');
2081
2077
  height = othItem.cat && othItem.cat.info.sizeinfo.height;
2082
2078
  var otherItem = {
2083
2079
  heightFromFloor: heightFromFloor,
@@ -2138,7 +2134,7 @@ function isRightWall(v0, v1) {
2138
2134
  * OVERLAP_LINK: two lines are linked at the common point, so they can be merged to one line
2139
2135
  * OVERLAP_INCLUDED: destLine includes srcLine
2140
2136
  * OVERLAP_SOME: two lines are overlapped with some common range, then returns the trimmed segments of srcLine
2141
- *
2137
+ *
2142
2138
  * //////// test - start /////////////
2143
2139
  const p1 = { x1: 1413.1313131313132, y1: 1044.949494949495 };
2144
2140
  const p2 = { x1: 1476.2626262626263, y1: 1108.0808080808079 };
@@ -2204,7 +2200,7 @@ function relationshipOfTwoOverlappedLines2(srcLine, destLine) {
2204
2200
  var _sort3 = [line0, line1].sort(function (lineA, lineB) {
2205
2201
  return comparator(lineA[0], lineB[0]);
2206
2202
  }),
2207
- _sort4 = _slicedToArray(_sort3, 2),
2203
+ _sort4 = (0, _slicedToArray2["default"])(_sort3, 2),
2208
2204
  lineSX = _sort4[0],
2209
2205
  lineDX = _sort4[1];
2210
2206
  var isReversedSrcLineIdx = false;
@@ -2505,12 +2501,45 @@ function relationshipOfTwoOverlappedLines1(srcLine, destLine) {
2505
2501
 
2506
2502
  /**
2507
2503
  *
2508
- * @param {Array} points //points of polygon
2509
- * @returns {Array} [centroid.x, centroid.y]
2504
+ * @param {Array} points points of polygon [[x0, y0], [x1, y1], ...]
2505
+ * @returns {Array} { x, y } position of centroid
2510
2506
  */
2511
2507
  function getCentroidOfPolygon(points) {
2512
- var center = points.reduce(function (x, y) {
2508
+ var centroid = points.reduce(function (x, y) {
2513
2509
  return [x[0] + y[0] / points.length, x[1] + y[1] / points.length];
2514
2510
  }, [0, 0]);
2515
- return center;
2511
+ return {
2512
+ x: centroid[0],
2513
+ y: centroid[1]
2514
+ };
2515
+ }
2516
+
2517
+ /**
2518
+ * Return the polygon points of room
2519
+ * @param {Object} layer
2520
+ * @returns {Array} polygon points [x0, y0, x1, y1, ... ]
2521
+ */
2522
+ function getPoylgonPoints(layer) {
2523
+ var _layer$areas;
2524
+ var areainfo = [];
2525
+ (_layer$areas = layer.areas) === null || _layer$areas === void 0 || _layer$areas.forEach(function (area) {
2526
+ var _area$vertices;
2527
+ var sz = (_area$vertices = area.vertices) === null || _area$vertices === void 0 ? void 0 : _area$vertices.size;
2528
+ for (var i = 0; i < sz; i++) {
2529
+ areainfo.push(area.vertices.get(i));
2530
+ }
2531
+ });
2532
+ var rect = [];
2533
+ areainfo.forEach(function (area) {
2534
+ var _layer$vertices;
2535
+ var vert = (_layer$vertices = layer.vertices) === null || _layer$vertices === void 0 ? void 0 : _layer$vertices.get(area);
2536
+ rect.push(vert === null || vert === void 0 ? void 0 : vert.x, vert === null || vert === void 0 ? void 0 : vert.y);
2537
+ });
2538
+ return rect;
2539
+ }
2540
+ function validRect(itemRect, rects) {
2541
+ var updatedItemRect = getCalcRectFromItem(itemRect);
2542
+ return rects.every(function (rect) {
2543
+ return !intersectRect(rect.rect, updatedItemRect.rect);
2544
+ });
2516
2545
  }
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
3
7
  function getEdgesOfSubgraphs(subgraphs, graph) {
4
8
  var edges = [];
5
9
  subgraphs.forEach(function (component) {
@@ -25,4 +29,5 @@ function getVerticesFromBiconnectedComponent(component) {
25
29
  });
26
30
  return vertices;
27
31
  }
28
- module.exports = getEdgesOfSubgraphs;
32
+ var _default = exports["default"] = getEdgesOfSubgraphs;
33
+ module.exports = exports.default;
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
3
7
  /**
4
8
  * UTILS
5
9
  */
@@ -204,15 +208,12 @@ function find_inner_cycles(V, EV) {
204
208
  }
205
209
 
206
210
  // export default find_inner_cycles;
207
- module.exports = find_inner_cycles;
208
-
211
+ var _default = exports["default"] = find_inner_cycles;
209
212
  /**
210
213
  * DATA
211
214
  */
212
-
213
215
  // let V = [[0.5774, 1.0], [1.0, 1.0], [1.1547, 0.0], [1.0, 0.0], [0.0, 0.0], [0.0, 0.732], [1.0, 0.1547], [0.732, 0.0], [1.0491, 0.183], [-0.317, 0.549], [1.0, 0.268], [0.183, -0.3169], [0.5491, 1.049], [0.4642, 1.0], [0.0, -0.4226], [0.0, 1.0]]
214
216
  // let EV = [[0, 1], [2, 3], [5, 4], [7, 6], [2, 8], [3, 6], [4, 9], [0, 10], [9, 5], [8, 10], [7, 11], [12, 13], [6, 8], [6, 10], [4, 7], [4, 11], [4, 14], [5, 15], [11, 14], [0, 12], [13, 15], [0, 13], [1, 10], [3, 7], [5, 13]]
215
-
216
217
  // let V = [[0,0],[10,0],[10,10],[0,10], [100,100],[110,100],[110,110],[100,110], [5,0], [5,10]]
217
218
  // let V = [[0,0.5],[12,-0.7],[14,14],[-2,10], [103,106],[117,98],[96,112],[104,109], [5.5,0.8], [4.8,10.5]]
218
219
  // let EV = [[3,9],[9,2],[2,1],[1,8],[8,0],[0,3],[8,9]] // IT WORKS
@@ -221,14 +222,11 @@ module.exports = find_inner_cycles;
221
222
  // let EV = [[2,3],[1,2],[0,1],[3,0]] // IT WORKS
222
223
  // let EV = [[2,3],[1,2],[0,1],[3,0],[6,7],[5,6],[4,5],[7,4]] // IT WORKS
223
224
  // let EV = [[3,2],[2,1],[1,0],[0,3],[7,6],[6,5],[5,4],[4,7]] // IT WORKS
224
-
225
225
  // let V = [[2,5],[5,6],[10,6.8],[23,8],[9.6,11.3],[20,15],[25,16],[29,18],[30,22],[4,11],[6,10],[24,25],[18,20],[27,7]]
226
226
  // let EV = [[0,1],[10,0],[9,10],[9,1],[1,2],[4,2],[3,13],[2,3],[4,5],[5,6],[6,7],[12,5],[12,11],[11,6],[11,8],[7,8],[9,4]]
227
-
228
227
  /**
229
228
  * MAIN
230
229
  */
231
-
232
230
  // let cycles_data = find_inner_cycles(V, EV)
233
231
  // console.log('############## OUTPUT')
234
232
  // console.log('EDGES:')
@@ -237,4 +235,5 @@ module.exports = find_inner_cycles;
237
235
  // console.log('VERTICES:')
238
236
  // console.log(cycles_data.v_cycles)
239
237
  // console.log('\n')
240
- // console.log(cycles_data.ev_mapping.every(m => m.color === 2))
238
+ // console.log(cycles_data.ev_mapping.every(m => m.color === 2))
239
+ module.exports = exports.default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -9,7 +10,6 @@ var _graph = _interopRequireDefault(require("./graph"));
9
10
  var _getEdgesOfSubgraphs = _interopRequireDefault(require("./get-edges-of-subgraphs"));
10
11
  var _graphCycles = _interopRequireDefault(require("./graph-cycles"));
11
12
  var _immutable = require("immutable");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  function calculateInnerCycles(verticesArray, edgesArray) {
14
14
  var innerCycles = new _immutable.List();
15
15
  var graph = new _graph["default"](verticesArray.length);
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
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
- 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); } }
5
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
- 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); }
8
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
10
  //JS porting of this code http://www.geeksforgeeks.org/biconnected-components/
10
11
 
11
12
  function create_array(length) {
@@ -15,14 +16,14 @@ function create_array(length) {
15
16
  }
16
17
  return array;
17
18
  }
18
- var Edge = /*#__PURE__*/_createClass(function Edge(u, v) {
19
- _classCallCheck(this, Edge);
19
+ var Edge = /*#__PURE__*/(0, _createClass2["default"])(function Edge(u, v) {
20
+ (0, _classCallCheck2["default"])(this, Edge);
20
21
  this.u = u;
21
22
  this.v = v;
22
23
  });
23
24
  var Graph = /*#__PURE__*/function () {
24
25
  function Graph(v) {
25
- _classCallCheck(this, Graph);
26
+ (0, _classCallCheck2["default"])(this, Graph);
26
27
  this.count = 0; // count is number of biconnected components
27
28
  this.subgraphs = []; //biconnected components
28
29
  this.time = 0; // time is used to find discovery times
@@ -35,7 +36,7 @@ var Graph = /*#__PURE__*/function () {
35
36
  }
36
37
 
37
38
  //Function to add an edge into the graph
38
- return _createClass(Graph, [{
39
+ return (0, _createClass2["default"])(Graph, [{
39
40
  key: "addEdge",
40
41
  value: function addEdge(v, w) {
41
42
  this.adj[v].push(w);
@@ -148,4 +149,5 @@ var Graph = /*#__PURE__*/function () {
148
149
  }
149
150
  }]);
150
151
  }();
151
- module.exports = Graph;
152
+ var _default = exports["default"] = Graph;
153
+ module.exports = exports.default;