kitchen-simulator 1.1.1-test.8 → 1.1.1-test.80

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 (999) hide show
  1. package/README.md +24 -1
  2. package/es/{KitchenConfigurator.js → LiteKitchenConfigurator.js} +45 -66
  3. package/es/{KitchenConfiguratorApp.js → LiteRenderer.js} +65 -83
  4. package/es/actions/export.js +4 -2
  5. package/es/actions/user-actions.js +58 -0
  6. package/es/analytics/ga4.js +1 -4
  7. package/es/assets/Window.hdr +2100 -0
  8. package/es/assets/brown_photostudio_02_1k.hdr +0 -0
  9. package/es/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
  10. package/es/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
  11. package/es/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
  12. package/es/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
  13. package/es/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
  14. package/es/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
  15. package/es/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
  16. package/es/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
  17. package/es/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
  18. package/es/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
  19. package/es/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
  20. package/es/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
  21. package/es/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
  22. package/es/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
  23. package/es/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
  24. package/es/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
  25. package/es/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
  26. package/es/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
  27. package/es/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
  28. package/es/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
  29. package/es/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
  30. package/es/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
  31. package/es/assets/fonts/style.css +177 -0
  32. package/es/assets/gltf/door_closet.bin +0 -0
  33. package/es/assets/gltf/door_closet.fbx +0 -0
  34. package/es/assets/gltf/door_closet.gltf +1 -0
  35. package/es/assets/gltf/door_exterior.bin +0 -0
  36. package/es/assets/gltf/door_exterior.fbx +0 -0
  37. package/es/assets/gltf/door_exterior.gltf +1 -0
  38. package/es/assets/gltf/door_interior.bin +0 -0
  39. package/es/assets/gltf/door_interior.fbx +0 -0
  40. package/es/assets/gltf/door_interior.gltf +1 -0
  41. package/es/assets/gltf/door_sliding.bin +0 -0
  42. package/es/assets/gltf/door_sliding.fbx +0 -0
  43. package/es/assets/gltf/door_sliding.gltf +1 -0
  44. package/es/assets/gltf/doorway_framed.bin +0 -0
  45. package/es/assets/gltf/doorway_framed.fbx +0 -0
  46. package/es/assets/gltf/doorway_framed.gltf +1 -0
  47. package/es/assets/gltf/window_clear.bin +0 -0
  48. package/es/assets/gltf/window_clear.fbx +0 -0
  49. package/es/assets/gltf/window_clear.gltf +1 -0
  50. package/es/assets/gltf/window_cross.bin +0 -0
  51. package/es/assets/gltf/window_cross.fbx +0 -0
  52. package/es/assets/gltf/window_cross.gltf +1 -0
  53. package/es/assets/gltf/window_double_hung.bin +0 -0
  54. package/es/assets/gltf/window_double_hung.fbx +0 -0
  55. package/es/assets/gltf/window_double_hung.gltf +1 -0
  56. package/es/assets/gltf/window_vertical.bin +0 -0
  57. package/es/assets/gltf/window_vertical.fbx +0 -0
  58. package/es/assets/gltf/window_vertical.gltf +1 -0
  59. package/es/assets/img/1.jpg +0 -0
  60. package/es/assets/img/TKC_thumbnail.png +0 -0
  61. package/es/assets/img/Toggle.png +0 -0
  62. package/es/assets/img/loading/loading.gif +0 -0
  63. package/es/assets/img/loading/loading_1.svg +11 -0
  64. package/es/assets/img/loading_large.gif +0 -0
  65. package/es/assets/img/png/door/closet.png +0 -0
  66. package/es/assets/img/png/door/doorwaysframed.png +0 -0
  67. package/es/assets/img/png/door/doorwaysframeles.png +0 -0
  68. package/es/assets/img/png/door/doorwaysframeless.png +0 -0
  69. package/es/assets/img/png/door/exterior.png +0 -0
  70. package/es/assets/img/png/door/interior.png +0 -0
  71. package/es/assets/img/png/door/sliding.png +0 -0
  72. package/es/assets/img/png/helper/outcome.png +0 -0
  73. package/es/assets/img/png/helper/video_preview_3d.png +0 -0
  74. package/es/assets/img/png/helper/video_preview_start.png +0 -0
  75. package/es/assets/img/project_img.png +0 -0
  76. package/es/assets/img/rta/rta_logo_box_blue.jpg +0 -0
  77. package/es/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
  78. package/es/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
  79. package/es/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
  80. package/es/assets/img/rta/rta_logo_box_lightblue.png +0 -0
  81. package/es/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
  82. package/es/assets/img/rta/rta_logo_box_maroon.png +0 -0
  83. package/es/assets/img/rta/rta_logo_box_white.png +0 -0
  84. package/es/assets/img/rta_menu.png +0 -0
  85. package/es/assets/img/step2.jpg +0 -0
  86. package/es/assets/img/step3.jpg +0 -0
  87. package/es/assets/img/step4.jpg +0 -0
  88. package/es/assets/img/step5.jpg +0 -0
  89. package/es/assets/img/step6.jpg +0 -0
  90. package/es/assets/img/step7.jpg +0 -0
  91. package/es/assets/img/step8.jpg +0 -0
  92. package/es/assets/img/svg/2d_delete_object.svg +33 -0
  93. package/es/assets/img/svg/2d_delete_object1.svg +33 -0
  94. package/es/assets/img/svg/2d_lock_object.svg +33 -0
  95. package/es/assets/img/svg/3d_item_move.svg +106 -0
  96. package/es/assets/img/svg/3d_item_rotation.svg +76 -0
  97. package/es/assets/img/svg/3d_item_warning_edit.svg +77 -0
  98. package/es/assets/img/svg/3d_item_warning_info.svg +81 -0
  99. package/es/assets/img/svg/accessories.svg +4 -0
  100. package/es/assets/img/svg/angle_icon.svg +39 -0
  101. package/es/assets/img/svg/blank_div.svg +14 -0
  102. package/es/assets/img/svg/bottombar/2d3d_button.svg +3 -0
  103. package/es/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
  104. package/es/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
  105. package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
  106. package/es/assets/img/svg/bottombar/arrow-down.svg +3 -0
  107. package/es/assets/img/svg/bottombar/arrow-left.svg +3 -0
  108. package/es/assets/img/svg/bottombar/arrow-minus.svg +3 -0
  109. package/es/assets/img/svg/bottombar/arrow-plus.svg +11 -0
  110. package/es/assets/img/svg/bottombar/arrow-right.svg +3 -0
  111. package/es/assets/img/svg/bottombar/arrow-up.svg +3 -0
  112. package/es/assets/img/svg/bottombar/collapse.svg +3 -0
  113. package/es/assets/img/svg/bottombar/elevation-back.svg +6 -0
  114. package/es/assets/img/svg/bottombar/elevation-front.svg +6 -0
  115. package/es/assets/img/svg/bottombar/elevation-left.svg +6 -0
  116. package/es/assets/img/svg/bottombar/elevation-right.svg +7 -0
  117. package/es/assets/img/svg/bottombar/elevation.svg +6 -0
  118. package/es/assets/img/svg/bottombar/expand.svg +3 -0
  119. package/es/assets/img/svg/bottombar/help.svg +72 -0
  120. package/es/assets/img/svg/bottombar/incm_toggle.svg +39 -0
  121. package/es/assets/img/svg/bottombar/pan_1.svg +57 -0
  122. package/es/assets/img/svg/bottombar/pan_2.svg +27 -0
  123. package/es/assets/img/svg/bottombar/pan_3.svg +27 -0
  124. package/es/assets/img/svg/bottombar/pan_4.svg +27 -0
  125. package/es/assets/img/svg/bottombar/pan_5.svg +27 -0
  126. package/es/assets/img/svg/bottombar/settings.svg +23 -0
  127. package/es/assets/img/svg/bottombar/spin-down.svg +76 -0
  128. package/es/assets/img/svg/bottombar/spin-left.svg +75 -0
  129. package/es/assets/img/svg/bottombar/spin-right.svg +75 -0
  130. package/es/assets/img/svg/bottombar/spin-up.svg +76 -0
  131. package/es/assets/img/svg/bottombar/spin_1.svg +48 -0
  132. package/es/assets/img/svg/bottombar/spin_2.svg +31 -0
  133. package/es/assets/img/svg/bottombar/spin_3.svg +31 -0
  134. package/es/assets/img/svg/bottombar/spin_4.svg +31 -0
  135. package/es/assets/img/svg/bottombar/spin_5.svg +31 -0
  136. package/es/assets/img/svg/bottombar/zoomin.svg +29 -0
  137. package/es/assets/img/svg/bottombar/zoomout.svg +26 -0
  138. package/es/assets/img/svg/check.svg +10 -0
  139. package/es/assets/img/svg/close.svg +11 -0
  140. package/es/assets/img/svg/color/Black.svg +3 -0
  141. package/es/assets/img/svg/color/Blue.svg +3 -0
  142. package/es/assets/img/svg/color/Brown.svg +9 -0
  143. package/es/assets/img/svg/color/Cream.svg +3 -0
  144. package/es/assets/img/svg/color/Dark.svg +9 -0
  145. package/es/assets/img/svg/color/Gray.svg +3 -0
  146. package/es/assets/img/svg/color/Green.svg +3 -0
  147. package/es/assets/img/svg/color/Light.svg +9 -0
  148. package/es/assets/img/svg/color/Medium.svg +9 -0
  149. package/es/assets/img/svg/color/Unfinished.svg +9 -0
  150. package/es/assets/img/svg/color/White.svg +3 -0
  151. package/es/assets/img/svg/color/White.svg.bak +3 -0
  152. package/es/assets/img/svg/color/stone2.jpg +0 -0
  153. package/es/assets/img/svg/color/wood2.jpg +0 -0
  154. package/es/assets/img/svg/copy.svg +11 -0
  155. package/es/assets/img/svg/delete.svg +3 -0
  156. package/es/assets/img/svg/detail.svg +77 -0
  157. package/es/assets/img/svg/disclaimer/background.svg +758 -0
  158. package/es/assets/img/svg/disclaimer/logo-dots.svg +11 -0
  159. package/es/assets/img/svg/door/Closet.svg +11 -0
  160. package/es/assets/img/svg/door/Exterior.svg +5 -0
  161. package/es/assets/img/svg/door/Framed_dorway.svg +5 -0
  162. package/es/assets/img/svg/door/Frameless_dorway.svg +5 -0
  163. package/es/assets/img/svg/door/Interior.svg +7 -0
  164. package/es/assets/img/svg/door/Sliding.svg +5 -0
  165. package/es/assets/img/svg/doors_closet.svg +47 -0
  166. package/es/assets/img/svg/doors_exterior.svg +25 -0
  167. package/es/assets/img/svg/doors_interior.svg +29 -0
  168. package/es/assets/img/svg/doors_patio.svg +26 -0
  169. package/es/assets/img/svg/duplicate.svg +11 -0
  170. package/es/assets/img/svg/duplicate_object_left.svg +32 -0
  171. package/es/assets/img/svg/duplicate_object_right.svg +32 -0
  172. package/es/assets/img/svg/filtersActive.svg +19 -0
  173. package/es/assets/img/svg/firstsetting/L.svg +3 -0
  174. package/es/assets/img/svg/firstsetting/L2.svg +3 -0
  175. package/es/assets/img/svg/firstsetting/Open.svg +3 -0
  176. package/es/assets/img/svg/firstsetting/Square.svg +3 -0
  177. package/es/assets/img/svg/firstsetting/bar-active.svg +9 -0
  178. package/es/assets/img/svg/firstsetting/bar-normal.svg +3 -0
  179. package/es/assets/img/svg/firstsetting/bullet-current.svg +3 -0
  180. package/es/assets/img/svg/firstsetting/bullet-done.svg +3 -0
  181. package/es/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
  182. package/es/assets/img/svg/firstsetting/check-active.svg +3 -0
  183. package/es/assets/img/svg/firstsetting/check-normal.svg +3 -0
  184. package/es/assets/img/svg/firstsetting/pencil.svg +11 -0
  185. package/es/assets/img/svg/green_checkmark.svg +27 -0
  186. package/es/assets/img/svg/headerbar/assist.svg +3 -0
  187. package/es/assets/img/svg/headerbar/cart.svg +3 -0
  188. package/es/assets/img/svg/headerbar/check.svg +10 -0
  189. package/es/assets/img/svg/headerbar/consult_designer.svg +45 -0
  190. package/es/assets/img/svg/headerbar/edit_name.svg +26 -0
  191. package/es/assets/img/svg/headerbar/file-dollar.svg +13 -0
  192. package/es/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
  193. package/es/assets/img/svg/headerbar/plus.svg +11 -0
  194. package/es/assets/img/svg/headerbar/review_quote.svg +44 -0
  195. package/es/assets/img/svg/headerbar/ruler-measure.svg +11 -0
  196. package/es/assets/img/svg/headerbar/save.svg +3 -0
  197. package/es/assets/img/svg/headerbar/setting.svg +75 -0
  198. package/es/assets/img/svg/help/check.svg +10 -0
  199. package/es/assets/img/svg/help/search.svg +76 -0
  200. package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
  201. package/es/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
  202. package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
  203. package/es/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
  204. package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
  205. package/es/assets/img/svg/intro/3-retrieve-project.svg +18 -0
  206. package/es/assets/img/svg/invert.svg +127 -0
  207. package/es/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
  208. package/es/assets/img/svg/lefttoolbar/appliance.svg +13 -0
  209. package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
  210. package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
  211. package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
  212. package/es/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
  213. package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
  214. package/es/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
  215. package/es/assets/img/svg/lefttoolbar/door-style.svg +20 -0
  216. package/es/assets/img/svg/lefttoolbar/door.svg +12 -0
  217. package/es/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
  218. package/es/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
  219. package/es/assets/img/svg/lefttoolbar/finishing.svg +13 -0
  220. package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
  221. package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
  222. package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
  223. package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
  224. package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
  225. package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
  226. package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
  227. package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
  228. package/es/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
  229. package/es/assets/img/svg/lefttoolbar/search.svg +76 -0
  230. package/es/assets/img/svg/lefttoolbar/view_more.svg +86 -0
  231. package/es/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
  232. package/es/assets/img/svg/lefttoolbar/window.svg +12 -0
  233. package/es/assets/img/svg/menubar/login.svg +84 -0
  234. package/es/assets/img/svg/menubar/my_projects.svg +85 -0
  235. package/es/assets/img/svg/menubar/new_project.svg +110 -0
  236. package/es/assets/img/svg/menubar/save_project.svg +84 -0
  237. package/es/assets/img/svg/options.svg +3 -0
  238. package/es/assets/img/svg/positioning.svg +3 -0
  239. package/es/assets/img/svg/rotate.png +0 -0
  240. package/es/assets/img/svg/rotate.svg +17 -0
  241. package/es/assets/img/svg/rotate_object_clockwise.svg +26 -0
  242. package/es/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
  243. package/es/assets/img/svg/toggleFilters.svg +19 -0
  244. package/es/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
  245. package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
  246. package/es/assets/img/svg/toolbar/add_button.svg +36 -0
  247. package/es/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
  248. package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
  249. package/es/assets/img/svg/toolbar/add_items_doors.svg +25 -0
  250. package/es/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
  251. package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
  252. package/es/assets/img/svg/toolbar/add_items_windows.svg +28 -0
  253. package/es/assets/img/svg/toolbar/apply_button.svg +38 -0
  254. package/es/assets/img/svg/toolbar/arrow-plus.svg +11 -0
  255. package/es/assets/img/svg/toolbar/backsplash.svg +8 -0
  256. package/es/assets/img/svg/toolbar/cancel_button.svg +37 -0
  257. package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
  258. package/es/assets/img/svg/toolbar/countertop.svg +7 -0
  259. package/es/assets/img/svg/toolbar/dcm.png +0 -0
  260. package/es/assets/img/svg/toolbar/dcm_off.svg +12 -0
  261. package/es/assets/img/svg/toolbar/dcm_on.svg +474 -0
  262. package/es/assets/img/svg/toolbar/delete_button.svg +37 -0
  263. package/es/assets/img/svg/toolbar/download.svg +77 -0
  264. package/es/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
  265. package/es/assets/img/svg/toolbar/edit_button.svg +75 -0
  266. package/es/assets/img/svg/toolbar/email_quote_button.svg +44 -0
  267. package/es/assets/img/svg/toolbar/fbm.png +0 -0
  268. package/es/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
  269. package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
  270. package/es/assets/img/svg/toolbar/floorstyle.svg +9 -0
  271. package/es/assets/img/svg/toolbar/fmb.png +0 -0
  272. package/es/assets/img/svg/toolbar/fmb_off.svg +12 -0
  273. package/es/assets/img/svg/toolbar/fmb_on.svg +489 -0
  274. package/es/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
  275. package/es/assets/img/svg/toolbar/get_started_button.svg +41 -0
  276. package/es/assets/img/svg/toolbar/handles.svg +5 -0
  277. package/es/assets/img/svg/toolbar/lighting.svg +7 -0
  278. package/es/assets/img/svg/toolbar/lrm.png +0 -0
  279. package/es/assets/img/svg/toolbar/lrm_off.svg +12 -0
  280. package/es/assets/img/svg/toolbar/lrm_on.svg +470 -0
  281. package/es/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
  282. package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
  283. package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
  284. package/es/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
  285. package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
  286. package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
  287. package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
  288. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
  289. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
  290. package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
  291. package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
  292. package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
  293. package/es/assets/img/svg/toolbar/redo_button.svg +75 -0
  294. package/es/assets/img/svg/toolbar/redo_button1.svg +75 -0
  295. package/es/assets/img/svg/toolbar/review_quote_active.svg +14 -0
  296. package/es/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
  297. package/es/assets/img/svg/toolbar/save_project_button.svg +44 -0
  298. package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
  299. package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
  300. package/es/assets/img/svg/toolbar/shopping-cart.svg +13 -0
  301. package/es/assets/img/svg/toolbar/style_change_button.svg +47 -0
  302. package/es/assets/img/svg/toolbar/take_picture.svg +75 -0
  303. package/es/assets/img/svg/toolbar/undo_button.svg +76 -0
  304. package/es/assets/img/svg/toolbar/undo_button1.svg +76 -0
  305. package/es/assets/img/svg/toolbar/use_button.svg +37 -0
  306. package/es/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
  307. package/es/assets/img/svg/topbar/edit_active.svg +10 -0
  308. package/es/assets/img/svg/topbar/edit_inactive.svg +10 -0
  309. package/es/assets/img/svg/topbar/redo_active.svg +42 -0
  310. package/es/assets/img/svg/topbar/redo_inactive.svg +23 -0
  311. package/es/assets/img/svg/topbar/select_all_active.svg +50 -0
  312. package/es/assets/img/svg/topbar/select_all_inactive.svg +32 -0
  313. package/es/assets/img/svg/topbar/take_picture_active.svg +51 -0
  314. package/es/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
  315. package/es/assets/img/svg/topbar/undo_active.svg +42 -0
  316. package/es/assets/img/svg/topbar/undo_inactive.svg +23 -0
  317. package/es/assets/img/svg/warning_info_2d.svg +81 -0
  318. package/es/assets/img/svg/window/Clear.svg +3 -0
  319. package/es/assets/img/svg/window/Cross.svg +5 -0
  320. package/es/assets/img/svg/window/Double_hung.svg +4 -0
  321. package/es/assets/img/svg/window/Vertical.svg +4 -0
  322. package/es/assets/img/svg/windows_clear.svg +23 -0
  323. package/es/assets/img/svg/windows_cross.svg +28 -0
  324. package/es/assets/img/svg/windows_double_hung.svg +24 -0
  325. package/es/assets/img/svg/windows_vertical.svg +24 -0
  326. package/es/assets/img/svg/wizardstep/Custom.svg +3 -0
  327. package/es/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
  328. package/es/assets/img/svg/wizardstep/L.svg +3 -0
  329. package/es/assets/img/svg/wizardstep/L2.svg +3 -0
  330. package/es/assets/img/svg/wizardstep/Open.svg +3 -0
  331. package/es/assets/img/svg/wizardstep/Square.svg +3 -0
  332. package/es/assets/img/svg/wizardstep/bar-active.svg +9 -0
  333. package/es/assets/img/svg/wizardstep/bar-normal.svg +3 -0
  334. package/es/assets/img/svg/wizardstep/bullet-current.svg +3 -0
  335. package/es/assets/img/svg/wizardstep/bullet-done.svg +3 -0
  336. package/es/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
  337. package/es/assets/img/svg/wizardstep/check-active.svg +3 -0
  338. package/es/assets/img/svg/wizardstep/check-normal.svg +3 -0
  339. package/es/assets/img/svg/wizardstep/detail_view.svg +87 -0
  340. package/es/assets/img/svg/wizardstep/pencil.svg +11 -0
  341. package/es/assets/img/svg/wizardstep/tile_view.svg +95 -0
  342. package/es/assets/img/texture/glass.jpg +0 -0
  343. package/es/assets/img/texture/steel.jpg +0 -0
  344. package/es/assets/img/texture/white1px.jpg +0 -0
  345. package/es/assets/img/texture/wood.jpg +0 -0
  346. package/es/assets/model/DCM.bin +0 -0
  347. package/es/assets/model/DCM.fbx +0 -0
  348. package/es/assets/model/DCM.gltf +1 -0
  349. package/es/assets/model/FBM.bin +0 -0
  350. package/es/assets/model/FBM.fbx +0 -0
  351. package/es/assets/model/FBM.gltf +1 -0
  352. package/es/assets/model/LRM.bin +0 -0
  353. package/es/assets/model/LRM.fbx +0 -0
  354. package/es/assets/model/LRM.gltf +1 -0
  355. package/es/assets/rtastore_logo.png +0 -0
  356. package/es/catalog/areas/area/planner-element.js +2 -2
  357. package/es/catalog/back.png +0 -0
  358. package/es/catalog/catalog.js +3 -12
  359. package/es/catalog/doors.png +0 -0
  360. package/es/catalog/doorways.png +0 -0
  361. package/es/catalog/export.js +0 -0
  362. package/es/catalog/factories/area-factory.js +1 -4
  363. package/es/catalog/factories/wall-factory-3d.js +1 -1
  364. package/es/catalog/factories/wall-factory.js +1 -2
  365. package/es/catalog/lines/wall/planner-element.js +2 -2
  366. package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
  367. package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
  368. package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
  369. package/es/catalog/properties/property-checkbox.js +2 -5
  370. package/es/catalog/properties/property-enum.js +2 -7
  371. package/es/catalog/properties/property-lenght-measure.js +4 -5
  372. package/es/catalog/properties/property-length-measure.js +6 -7
  373. package/es/catalog/properties/property-length-measure_hole.js +4 -5
  374. package/es/catalog/utils/FuseUtils.js +3 -6
  375. package/es/catalog/utils/exporter.js +2 -5
  376. package/es/catalog/utils/item-loader.js +5 -13
  377. package/es/catalog/windows.png +0 -0
  378. package/es/class/FuseUtils.js +3 -6
  379. package/es/class/area.js +3 -7
  380. package/es/class/group.js +3 -12
  381. package/es/class/guide.js +2 -6
  382. package/es/class/hole.js +2 -6
  383. package/es/class/item.js +13 -19
  384. package/es/class/layer.js +2 -6
  385. package/es/class/line.js +90 -64
  386. package/es/class/project.js +7 -9
  387. package/es/class/vertex.js +4 -8
  388. package/es/components/content.js +16 -0
  389. package/es/components/style/button.js +7 -14
  390. package/es/components/style/cancel-button.js +2 -3
  391. package/es/components/style/content-container.js +1 -4
  392. package/es/components/style/content-title.js +3 -7
  393. package/es/components/style/delete-button.js +2 -3
  394. package/es/components/style/form-block.js +3 -7
  395. package/es/components/style/form-color-input.js +2 -3
  396. package/es/components/style/form-label.js +3 -7
  397. package/es/components/style/form-number-input.js +6 -12
  398. package/es/components/style/form-number-input_2.js +6 -12
  399. package/es/components/style/form-select.js +3 -4
  400. package/es/components/style/form-slider.js +24 -9
  401. package/es/components/style/form-submit-button.js +2 -3
  402. package/es/components/style/form-text-input.js +8 -15
  403. package/es/components/viewer2d/area.js +4 -4
  404. package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -1
  405. package/es/components/viewer2d/grids/grid-streak.js +0 -1
  406. package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -1
  407. package/es/components/viewer2d/grids/grids.js +1 -6
  408. package/es/components/viewer2d/item.js +4 -11
  409. package/es/components/viewer2d/line.js +8 -1
  410. package/es/components/viewer2d/ruler.js +2 -3
  411. package/es/components/viewer2d/rulerDist.js +1 -1
  412. package/es/components/viewer2d/rulerX.js +6 -12
  413. package/es/components/viewer2d/rulerY.js +6 -12
  414. package/es/components/viewer2d/scene.js +13 -25
  415. package/es/components/viewer2d/state.js +1 -6
  416. package/es/components/viewer2d/utils.js +27 -2
  417. package/es/components/viewer2d/viewer2d.js +40 -32
  418. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +6 -13
  419. package/es/components/viewer3d/front3D.js +1 -6
  420. package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
  421. package/es/components/viewer3d/ruler-utils/layer3D.js +2 -2
  422. package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -4
  423. package/es/components/viewer3d/ruler-utils/scene3D.js +1 -3
  424. package/es/components/viewer3d/scene-creator.js +27 -18
  425. package/es/components/viewer3d/viewer3d-first-person.js +5 -11
  426. package/es/components/viewer3d/viewer3d.js +286 -194
  427. package/es/devLiteRenderer.js +44 -0
  428. package/es/index.js +14 -15
  429. package/es/models.js +8 -14
  430. package/es/plugins/console-debugger.js +1 -4
  431. package/es/plugins/export.js +1 -3
  432. package/es/reducers/viewer2d-reducer.js +2 -2
  433. package/es/reducers/viewer3d-reducer.js +2 -2
  434. package/es/translator/translator.js +2 -6
  435. package/es/utils/convert-units-lite.js +29 -0
  436. package/es/utils/geometry.js +68 -42
  437. package/es/utils/graph.js +2 -6
  438. package/es/utils/helper.js +3 -5
  439. package/es/utils/id-broker.js +4 -8
  440. package/es/utils/molding.js +36 -42
  441. package/es/utils/name-generator.js +2 -6
  442. package/es/utils/objects-utils.js +1 -1
  443. package/es/utils/process-black-list.js +1 -4
  444. package/es/utils/snap-scene.js +1 -6
  445. package/es/utils/snap.js +6 -12
  446. package/es/utils/threeCSG.es6.js +2 -6
  447. package/es/version.js +1 -2
  448. package/lib/@history.js +3 -2
  449. package/lib/AppContext.js +3 -2
  450. package/lib/{KitchenConfigurator.js → LiteKitchenConfigurator.js} +71 -90
  451. package/lib/{KitchenConfiguratorApp.js → LiteRenderer.js} +98 -113
  452. package/lib/actions/export.js +6 -3
  453. package/lib/actions/user-actions.js +68 -0
  454. package/lib/analytics/ga4.js +3 -6
  455. package/lib/analytics/posthog.js +1 -1
  456. package/lib/assets/Window.hdr +2100 -0
  457. package/lib/assets/brown_photostudio_02_1k.hdr +0 -0
  458. package/lib/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
  459. package/lib/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
  460. package/lib/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
  461. package/lib/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
  462. package/lib/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
  463. package/lib/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
  464. package/lib/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
  465. package/lib/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
  466. package/lib/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
  467. package/lib/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
  468. package/lib/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
  469. package/lib/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
  470. package/lib/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
  471. package/lib/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
  472. package/lib/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
  473. package/lib/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
  474. package/lib/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
  475. package/lib/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
  476. package/lib/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
  477. package/lib/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
  478. package/lib/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
  479. package/lib/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
  480. package/lib/assets/fonts/style.css +177 -0
  481. package/lib/assets/gltf/door_closet.bin +0 -0
  482. package/lib/assets/gltf/door_closet.fbx +0 -0
  483. package/lib/assets/gltf/door_closet.gltf +1 -0
  484. package/lib/assets/gltf/door_exterior.bin +0 -0
  485. package/lib/assets/gltf/door_exterior.fbx +0 -0
  486. package/lib/assets/gltf/door_exterior.gltf +1 -0
  487. package/lib/assets/gltf/door_interior.bin +0 -0
  488. package/lib/assets/gltf/door_interior.fbx +0 -0
  489. package/lib/assets/gltf/door_interior.gltf +1 -0
  490. package/lib/assets/gltf/door_sliding.bin +0 -0
  491. package/lib/assets/gltf/door_sliding.fbx +0 -0
  492. package/lib/assets/gltf/door_sliding.gltf +1 -0
  493. package/lib/assets/gltf/doorway_framed.bin +0 -0
  494. package/lib/assets/gltf/doorway_framed.fbx +0 -0
  495. package/lib/assets/gltf/doorway_framed.gltf +1 -0
  496. package/lib/assets/gltf/window_clear.bin +0 -0
  497. package/lib/assets/gltf/window_clear.fbx +0 -0
  498. package/lib/assets/gltf/window_clear.gltf +1 -0
  499. package/lib/assets/gltf/window_cross.bin +0 -0
  500. package/lib/assets/gltf/window_cross.fbx +0 -0
  501. package/lib/assets/gltf/window_cross.gltf +1 -0
  502. package/lib/assets/gltf/window_double_hung.bin +0 -0
  503. package/lib/assets/gltf/window_double_hung.fbx +0 -0
  504. package/lib/assets/gltf/window_double_hung.gltf +1 -0
  505. package/lib/assets/gltf/window_vertical.bin +0 -0
  506. package/lib/assets/gltf/window_vertical.fbx +0 -0
  507. package/lib/assets/gltf/window_vertical.gltf +1 -0
  508. package/lib/assets/img/1.jpg +0 -0
  509. package/lib/assets/img/TKC_thumbnail.png +0 -0
  510. package/lib/assets/img/Toggle.png +0 -0
  511. package/lib/assets/img/loading/loading.gif +0 -0
  512. package/lib/assets/img/loading/loading_1.svg +11 -0
  513. package/lib/assets/img/loading_large.gif +0 -0
  514. package/lib/assets/img/png/door/closet.png +0 -0
  515. package/lib/assets/img/png/door/doorwaysframed.png +0 -0
  516. package/lib/assets/img/png/door/doorwaysframeles.png +0 -0
  517. package/lib/assets/img/png/door/doorwaysframeless.png +0 -0
  518. package/lib/assets/img/png/door/exterior.png +0 -0
  519. package/lib/assets/img/png/door/interior.png +0 -0
  520. package/lib/assets/img/png/door/sliding.png +0 -0
  521. package/lib/assets/img/png/helper/outcome.png +0 -0
  522. package/lib/assets/img/png/helper/video_preview_3d.png +0 -0
  523. package/lib/assets/img/png/helper/video_preview_start.png +0 -0
  524. package/lib/assets/img/project_img.png +0 -0
  525. package/lib/assets/img/rta/rta_logo_box_blue.jpg +0 -0
  526. package/lib/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
  527. package/lib/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
  528. package/lib/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
  529. package/lib/assets/img/rta/rta_logo_box_lightblue.png +0 -0
  530. package/lib/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
  531. package/lib/assets/img/rta/rta_logo_box_maroon.png +0 -0
  532. package/lib/assets/img/rta/rta_logo_box_white.png +0 -0
  533. package/lib/assets/img/rta_menu.png +0 -0
  534. package/lib/assets/img/step2.jpg +0 -0
  535. package/lib/assets/img/step3.jpg +0 -0
  536. package/lib/assets/img/step4.jpg +0 -0
  537. package/lib/assets/img/step5.jpg +0 -0
  538. package/lib/assets/img/step6.jpg +0 -0
  539. package/lib/assets/img/step7.jpg +0 -0
  540. package/lib/assets/img/step8.jpg +0 -0
  541. package/lib/assets/img/svg/2d_delete_object.svg +33 -0
  542. package/lib/assets/img/svg/2d_delete_object1.svg +33 -0
  543. package/lib/assets/img/svg/2d_lock_object.svg +33 -0
  544. package/lib/assets/img/svg/3d_item_move.svg +106 -0
  545. package/lib/assets/img/svg/3d_item_rotation.svg +76 -0
  546. package/lib/assets/img/svg/3d_item_warning_edit.svg +77 -0
  547. package/lib/assets/img/svg/3d_item_warning_info.svg +81 -0
  548. package/lib/assets/img/svg/accessories.svg +4 -0
  549. package/lib/assets/img/svg/angle_icon.svg +39 -0
  550. package/lib/assets/img/svg/blank_div.svg +14 -0
  551. package/lib/assets/img/svg/bottombar/2d3d_button.svg +3 -0
  552. package/lib/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
  553. package/lib/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
  554. package/lib/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
  555. package/lib/assets/img/svg/bottombar/arrow-down.svg +3 -0
  556. package/lib/assets/img/svg/bottombar/arrow-left.svg +3 -0
  557. package/lib/assets/img/svg/bottombar/arrow-minus.svg +3 -0
  558. package/lib/assets/img/svg/bottombar/arrow-plus.svg +11 -0
  559. package/lib/assets/img/svg/bottombar/arrow-right.svg +3 -0
  560. package/lib/assets/img/svg/bottombar/arrow-up.svg +3 -0
  561. package/lib/assets/img/svg/bottombar/collapse.svg +3 -0
  562. package/lib/assets/img/svg/bottombar/elevation-back.svg +6 -0
  563. package/lib/assets/img/svg/bottombar/elevation-front.svg +6 -0
  564. package/lib/assets/img/svg/bottombar/elevation-left.svg +6 -0
  565. package/lib/assets/img/svg/bottombar/elevation-right.svg +7 -0
  566. package/lib/assets/img/svg/bottombar/elevation.svg +6 -0
  567. package/lib/assets/img/svg/bottombar/expand.svg +3 -0
  568. package/lib/assets/img/svg/bottombar/help.svg +72 -0
  569. package/lib/assets/img/svg/bottombar/incm_toggle.svg +39 -0
  570. package/lib/assets/img/svg/bottombar/pan_1.svg +57 -0
  571. package/lib/assets/img/svg/bottombar/pan_2.svg +27 -0
  572. package/lib/assets/img/svg/bottombar/pan_3.svg +27 -0
  573. package/lib/assets/img/svg/bottombar/pan_4.svg +27 -0
  574. package/lib/assets/img/svg/bottombar/pan_5.svg +27 -0
  575. package/lib/assets/img/svg/bottombar/settings.svg +23 -0
  576. package/lib/assets/img/svg/bottombar/spin-down.svg +76 -0
  577. package/lib/assets/img/svg/bottombar/spin-left.svg +75 -0
  578. package/lib/assets/img/svg/bottombar/spin-right.svg +75 -0
  579. package/lib/assets/img/svg/bottombar/spin-up.svg +76 -0
  580. package/lib/assets/img/svg/bottombar/spin_1.svg +48 -0
  581. package/lib/assets/img/svg/bottombar/spin_2.svg +31 -0
  582. package/lib/assets/img/svg/bottombar/spin_3.svg +31 -0
  583. package/lib/assets/img/svg/bottombar/spin_4.svg +31 -0
  584. package/lib/assets/img/svg/bottombar/spin_5.svg +31 -0
  585. package/lib/assets/img/svg/bottombar/zoomin.svg +29 -0
  586. package/lib/assets/img/svg/bottombar/zoomout.svg +26 -0
  587. package/lib/assets/img/svg/check.svg +10 -0
  588. package/lib/assets/img/svg/close.svg +11 -0
  589. package/lib/assets/img/svg/color/Black.svg +3 -0
  590. package/lib/assets/img/svg/color/Blue.svg +3 -0
  591. package/lib/assets/img/svg/color/Brown.svg +9 -0
  592. package/lib/assets/img/svg/color/Cream.svg +3 -0
  593. package/lib/assets/img/svg/color/Dark.svg +9 -0
  594. package/lib/assets/img/svg/color/Gray.svg +3 -0
  595. package/lib/assets/img/svg/color/Green.svg +3 -0
  596. package/lib/assets/img/svg/color/Light.svg +9 -0
  597. package/lib/assets/img/svg/color/Medium.svg +9 -0
  598. package/lib/assets/img/svg/color/Unfinished.svg +9 -0
  599. package/lib/assets/img/svg/color/White.svg +3 -0
  600. package/lib/assets/img/svg/color/White.svg.bak +3 -0
  601. package/lib/assets/img/svg/color/stone2.jpg +0 -0
  602. package/lib/assets/img/svg/color/wood2.jpg +0 -0
  603. package/lib/assets/img/svg/copy.svg +11 -0
  604. package/lib/assets/img/svg/delete.svg +3 -0
  605. package/lib/assets/img/svg/detail.svg +77 -0
  606. package/lib/assets/img/svg/disclaimer/background.svg +758 -0
  607. package/lib/assets/img/svg/disclaimer/logo-dots.svg +11 -0
  608. package/lib/assets/img/svg/door/Closet.svg +11 -0
  609. package/lib/assets/img/svg/door/Exterior.svg +5 -0
  610. package/lib/assets/img/svg/door/Framed_dorway.svg +5 -0
  611. package/lib/assets/img/svg/door/Frameless_dorway.svg +5 -0
  612. package/lib/assets/img/svg/door/Interior.svg +7 -0
  613. package/lib/assets/img/svg/door/Sliding.svg +5 -0
  614. package/lib/assets/img/svg/doors_closet.svg +47 -0
  615. package/lib/assets/img/svg/doors_exterior.svg +25 -0
  616. package/lib/assets/img/svg/doors_interior.svg +29 -0
  617. package/lib/assets/img/svg/doors_patio.svg +26 -0
  618. package/lib/assets/img/svg/duplicate.svg +11 -0
  619. package/lib/assets/img/svg/duplicate_object_left.svg +32 -0
  620. package/lib/assets/img/svg/duplicate_object_right.svg +32 -0
  621. package/lib/assets/img/svg/filtersActive.svg +19 -0
  622. package/lib/assets/img/svg/firstsetting/L.svg +3 -0
  623. package/lib/assets/img/svg/firstsetting/L2.svg +3 -0
  624. package/lib/assets/img/svg/firstsetting/Open.svg +3 -0
  625. package/lib/assets/img/svg/firstsetting/Square.svg +3 -0
  626. package/lib/assets/img/svg/firstsetting/bar-active.svg +9 -0
  627. package/lib/assets/img/svg/firstsetting/bar-normal.svg +3 -0
  628. package/lib/assets/img/svg/firstsetting/bullet-current.svg +3 -0
  629. package/lib/assets/img/svg/firstsetting/bullet-done.svg +3 -0
  630. package/lib/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
  631. package/lib/assets/img/svg/firstsetting/check-active.svg +3 -0
  632. package/lib/assets/img/svg/firstsetting/check-normal.svg +3 -0
  633. package/lib/assets/img/svg/firstsetting/pencil.svg +11 -0
  634. package/lib/assets/img/svg/green_checkmark.svg +27 -0
  635. package/lib/assets/img/svg/headerbar/assist.svg +3 -0
  636. package/lib/assets/img/svg/headerbar/cart.svg +3 -0
  637. package/lib/assets/img/svg/headerbar/check.svg +10 -0
  638. package/lib/assets/img/svg/headerbar/consult_designer.svg +45 -0
  639. package/lib/assets/img/svg/headerbar/edit_name.svg +26 -0
  640. package/lib/assets/img/svg/headerbar/file-dollar.svg +13 -0
  641. package/lib/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
  642. package/lib/assets/img/svg/headerbar/plus.svg +11 -0
  643. package/lib/assets/img/svg/headerbar/review_quote.svg +44 -0
  644. package/lib/assets/img/svg/headerbar/ruler-measure.svg +11 -0
  645. package/lib/assets/img/svg/headerbar/save.svg +3 -0
  646. package/lib/assets/img/svg/headerbar/setting.svg +75 -0
  647. package/lib/assets/img/svg/help/check.svg +10 -0
  648. package/lib/assets/img/svg/help/search.svg +76 -0
  649. package/lib/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
  650. package/lib/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
  651. package/lib/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
  652. package/lib/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
  653. package/lib/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
  654. package/lib/assets/img/svg/intro/3-retrieve-project.svg +18 -0
  655. package/lib/assets/img/svg/invert.svg +127 -0
  656. package/lib/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
  657. package/lib/assets/img/svg/lefttoolbar/appliance.svg +13 -0
  658. package/lib/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
  659. package/lib/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
  660. package/lib/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
  661. package/lib/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
  662. package/lib/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
  663. package/lib/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
  664. package/lib/assets/img/svg/lefttoolbar/door-style.svg +20 -0
  665. package/lib/assets/img/svg/lefttoolbar/door.svg +12 -0
  666. package/lib/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
  667. package/lib/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
  668. package/lib/assets/img/svg/lefttoolbar/finishing.svg +13 -0
  669. package/lib/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
  670. package/lib/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
  671. package/lib/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
  672. package/lib/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
  673. package/lib/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
  674. package/lib/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
  675. package/lib/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
  676. package/lib/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
  677. package/lib/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
  678. package/lib/assets/img/svg/lefttoolbar/search.svg +76 -0
  679. package/lib/assets/img/svg/lefttoolbar/view_more.svg +86 -0
  680. package/lib/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
  681. package/lib/assets/img/svg/lefttoolbar/window.svg +12 -0
  682. package/lib/assets/img/svg/menubar/login.svg +84 -0
  683. package/lib/assets/img/svg/menubar/my_projects.svg +85 -0
  684. package/lib/assets/img/svg/menubar/new_project.svg +110 -0
  685. package/lib/assets/img/svg/menubar/save_project.svg +84 -0
  686. package/lib/assets/img/svg/options.svg +3 -0
  687. package/lib/assets/img/svg/positioning.svg +3 -0
  688. package/lib/assets/img/svg/rotate.png +0 -0
  689. package/lib/assets/img/svg/rotate.svg +17 -0
  690. package/lib/assets/img/svg/rotate_object_clockwise.svg +26 -0
  691. package/lib/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
  692. package/lib/assets/img/svg/toggleFilters.svg +19 -0
  693. package/lib/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
  694. package/lib/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
  695. package/lib/assets/img/svg/toolbar/add_button.svg +36 -0
  696. package/lib/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
  697. package/lib/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
  698. package/lib/assets/img/svg/toolbar/add_items_doors.svg +25 -0
  699. package/lib/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
  700. package/lib/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
  701. package/lib/assets/img/svg/toolbar/add_items_windows.svg +28 -0
  702. package/lib/assets/img/svg/toolbar/apply_button.svg +38 -0
  703. package/lib/assets/img/svg/toolbar/arrow-plus.svg +11 -0
  704. package/lib/assets/img/svg/toolbar/backsplash.svg +8 -0
  705. package/lib/assets/img/svg/toolbar/cancel_button.svg +37 -0
  706. package/lib/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
  707. package/lib/assets/img/svg/toolbar/countertop.svg +7 -0
  708. package/lib/assets/img/svg/toolbar/dcm.png +0 -0
  709. package/lib/assets/img/svg/toolbar/dcm_off.svg +12 -0
  710. package/lib/assets/img/svg/toolbar/dcm_on.svg +474 -0
  711. package/lib/assets/img/svg/toolbar/delete_button.svg +37 -0
  712. package/lib/assets/img/svg/toolbar/download.svg +77 -0
  713. package/lib/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
  714. package/lib/assets/img/svg/toolbar/edit_button.svg +75 -0
  715. package/lib/assets/img/svg/toolbar/email_quote_button.svg +44 -0
  716. package/lib/assets/img/svg/toolbar/fbm.png +0 -0
  717. package/lib/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
  718. package/lib/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
  719. package/lib/assets/img/svg/toolbar/floorstyle.svg +9 -0
  720. package/lib/assets/img/svg/toolbar/fmb.png +0 -0
  721. package/lib/assets/img/svg/toolbar/fmb_off.svg +12 -0
  722. package/lib/assets/img/svg/toolbar/fmb_on.svg +489 -0
  723. package/lib/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
  724. package/lib/assets/img/svg/toolbar/get_started_button.svg +41 -0
  725. package/lib/assets/img/svg/toolbar/handles.svg +5 -0
  726. package/lib/assets/img/svg/toolbar/lighting.svg +7 -0
  727. package/lib/assets/img/svg/toolbar/lrm.png +0 -0
  728. package/lib/assets/img/svg/toolbar/lrm_off.svg +12 -0
  729. package/lib/assets/img/svg/toolbar/lrm_on.svg +470 -0
  730. package/lib/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
  731. package/lib/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
  732. package/lib/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
  733. package/lib/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
  734. package/lib/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
  735. package/lib/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
  736. package/lib/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
  737. package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
  738. package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
  739. package/lib/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
  740. package/lib/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
  741. package/lib/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
  742. package/lib/assets/img/svg/toolbar/redo_button.svg +75 -0
  743. package/lib/assets/img/svg/toolbar/redo_button1.svg +75 -0
  744. package/lib/assets/img/svg/toolbar/review_quote_active.svg +14 -0
  745. package/lib/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
  746. package/lib/assets/img/svg/toolbar/save_project_button.svg +44 -0
  747. package/lib/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
  748. package/lib/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
  749. package/lib/assets/img/svg/toolbar/shopping-cart.svg +13 -0
  750. package/lib/assets/img/svg/toolbar/style_change_button.svg +47 -0
  751. package/lib/assets/img/svg/toolbar/take_picture.svg +75 -0
  752. package/lib/assets/img/svg/toolbar/undo_button.svg +76 -0
  753. package/lib/assets/img/svg/toolbar/undo_button1.svg +76 -0
  754. package/lib/assets/img/svg/toolbar/use_button.svg +37 -0
  755. package/lib/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
  756. package/lib/assets/img/svg/topbar/edit_active.svg +10 -0
  757. package/lib/assets/img/svg/topbar/edit_inactive.svg +10 -0
  758. package/lib/assets/img/svg/topbar/redo_active.svg +42 -0
  759. package/lib/assets/img/svg/topbar/redo_inactive.svg +23 -0
  760. package/lib/assets/img/svg/topbar/select_all_active.svg +50 -0
  761. package/lib/assets/img/svg/topbar/select_all_inactive.svg +32 -0
  762. package/lib/assets/img/svg/topbar/take_picture_active.svg +51 -0
  763. package/lib/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
  764. package/lib/assets/img/svg/topbar/undo_active.svg +42 -0
  765. package/lib/assets/img/svg/topbar/undo_inactive.svg +23 -0
  766. package/lib/assets/img/svg/warning_info_2d.svg +81 -0
  767. package/lib/assets/img/svg/window/Clear.svg +3 -0
  768. package/lib/assets/img/svg/window/Cross.svg +5 -0
  769. package/lib/assets/img/svg/window/Double_hung.svg +4 -0
  770. package/lib/assets/img/svg/window/Vertical.svg +4 -0
  771. package/lib/assets/img/svg/windows_clear.svg +23 -0
  772. package/lib/assets/img/svg/windows_cross.svg +28 -0
  773. package/lib/assets/img/svg/windows_double_hung.svg +24 -0
  774. package/lib/assets/img/svg/windows_vertical.svg +24 -0
  775. package/lib/assets/img/svg/wizardstep/Custom.svg +3 -0
  776. package/lib/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
  777. package/lib/assets/img/svg/wizardstep/L.svg +3 -0
  778. package/lib/assets/img/svg/wizardstep/L2.svg +3 -0
  779. package/lib/assets/img/svg/wizardstep/Open.svg +3 -0
  780. package/lib/assets/img/svg/wizardstep/Square.svg +3 -0
  781. package/lib/assets/img/svg/wizardstep/bar-active.svg +9 -0
  782. package/lib/assets/img/svg/wizardstep/bar-normal.svg +3 -0
  783. package/lib/assets/img/svg/wizardstep/bullet-current.svg +3 -0
  784. package/lib/assets/img/svg/wizardstep/bullet-done.svg +3 -0
  785. package/lib/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
  786. package/lib/assets/img/svg/wizardstep/check-active.svg +3 -0
  787. package/lib/assets/img/svg/wizardstep/check-normal.svg +3 -0
  788. package/lib/assets/img/svg/wizardstep/detail_view.svg +87 -0
  789. package/lib/assets/img/svg/wizardstep/pencil.svg +11 -0
  790. package/lib/assets/img/svg/wizardstep/tile_view.svg +95 -0
  791. package/lib/assets/img/texture/glass.jpg +0 -0
  792. package/lib/assets/img/texture/steel.jpg +0 -0
  793. package/lib/assets/img/texture/white1px.jpg +0 -0
  794. package/lib/assets/img/texture/wood.jpg +0 -0
  795. package/lib/assets/model/DCM.bin +0 -0
  796. package/lib/assets/model/DCM.fbx +0 -0
  797. package/lib/assets/model/DCM.gltf +1 -0
  798. package/lib/assets/model/FBM.bin +0 -0
  799. package/lib/assets/model/FBM.fbx +0 -0
  800. package/lib/assets/model/FBM.gltf +1 -0
  801. package/lib/assets/model/LRM.bin +0 -0
  802. package/lib/assets/model/LRM.fbx +0 -0
  803. package/lib/assets/model/LRM.gltf +1 -0
  804. package/lib/assets/rtastore_logo.png +0 -0
  805. package/lib/catalog/areas/area/planner-element.js +3 -2
  806. package/lib/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
  807. package/lib/catalog/areas/area/textures/grass.jpg +0 -0
  808. package/lib/catalog/areas/area/textures/parquet.jpg +0 -0
  809. package/lib/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
  810. package/lib/catalog/areas/area/textures/tile1.jpg +0 -0
  811. package/lib/catalog/back.png +0 -0
  812. package/lib/catalog/catalog.js +9 -16
  813. package/lib/catalog/doors.png +0 -0
  814. package/lib/catalog/doorways.png +0 -0
  815. package/lib/catalog/envMap/nx.hdr +0 -0
  816. package/lib/catalog/envMap/ny.hdr +0 -0
  817. package/lib/catalog/envMap/nz.hdr +0 -0
  818. package/lib/catalog/envMap/px.hdr +0 -0
  819. package/lib/catalog/envMap/py.hdr +0 -0
  820. package/lib/catalog/envMap/pz.hdr +0 -0
  821. package/lib/catalog/export.js +1 -0
  822. package/lib/catalog/factories/area-factory-3d.js +1 -1
  823. package/lib/catalog/factories/area-factory.js +6 -7
  824. package/lib/catalog/factories/export.js +1 -1
  825. package/lib/catalog/factories/wall-factory-3d.js +4 -4
  826. package/lib/catalog/factories/wall-factory.js +4 -3
  827. package/lib/catalog/holes/door-closet/planner-element.js +4 -3
  828. package/lib/catalog/holes/door-double/door_double.png +0 -0
  829. package/lib/catalog/holes/door-double/planner-element.js +4 -3
  830. package/lib/catalog/holes/door-exterior/planner-element.js +4 -3
  831. package/lib/catalog/holes/door-interior/planner-element.js +4 -3
  832. package/lib/catalog/holes/door-panic/panicDoor.png +0 -0
  833. package/lib/catalog/holes/door-panic/planner-element.js +4 -3
  834. package/lib/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
  835. package/lib/catalog/holes/door-panic-double/planner-element.js +4 -3
  836. package/lib/catalog/holes/door-sliding/planner-element.js +4 -3
  837. package/lib/catalog/holes/doorway-framed/planner-element.js +4 -3
  838. package/lib/catalog/holes/doorway-frameless/planner-element.js +4 -3
  839. package/lib/catalog/holes/export.js +2 -2
  840. package/lib/catalog/holes/gate/gate.jpg +0 -0
  841. package/lib/catalog/holes/window-clear/planner-element.js +4 -3
  842. package/lib/catalog/holes/window-clear/texture.png +0 -0
  843. package/lib/catalog/holes/window-cross/planner-element.js +4 -3
  844. package/lib/catalog/holes/window-cross/texture.png +0 -0
  845. package/lib/catalog/holes/window-double-hung/planner-element.js +4 -3
  846. package/lib/catalog/holes/window-double-hung/texture.png +0 -0
  847. package/lib/catalog/holes/window-vertical/planner-element.js +4 -3
  848. package/lib/catalog/holes/window-vertical/texture.png +0 -0
  849. package/lib/catalog/lines/wall/planner-element.js +3 -2
  850. package/lib/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
  851. package/lib/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
  852. package/lib/catalog/lines/wall/textures/bricks.jpg +0 -0
  853. package/lib/catalog/lines/wall/textures/bricks2.jpg +0 -0
  854. package/lib/catalog/lines/wall/textures/bricks3.jpg +0 -0
  855. package/lib/catalog/lines/wall/textures/morden-normal.jpg +0 -0
  856. package/lib/catalog/lines/wall/textures/morden.jpg +0 -0
  857. package/lib/catalog/lines/wall/textures/painted-normal.jpg +0 -0
  858. package/lib/catalog/lines/wall/textures/painted.jpg +0 -0
  859. package/lib/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
  860. package/lib/catalog/lines/wall/textures/plaster.jpg +0 -0
  861. package/lib/catalog/lines/wall/wall.png +0 -0
  862. package/lib/catalog/molding/molding-dcm/planner-element.js +2 -6
  863. package/lib/catalog/molding/molding-dcm/texture.png +0 -0
  864. package/lib/catalog/molding/molding-fbm/planner-element.js +2 -6
  865. package/lib/catalog/molding/molding-fbm/texture.png +0 -0
  866. package/lib/catalog/molding/molding-lrm/planner-element.js +2 -6
  867. package/lib/catalog/molding/molding-lrm/texture.png +0 -0
  868. package/lib/catalog/properties/export.js +1 -1
  869. package/lib/catalog/properties/property-checkbox.js +12 -14
  870. package/lib/catalog/properties/property-color.js +3 -2
  871. package/lib/catalog/properties/property-enum.js +8 -12
  872. package/lib/catalog/properties/property-hidden.js +3 -2
  873. package/lib/catalog/properties/property-lenght-measure.js +11 -11
  874. package/lib/catalog/properties/property-length-measure.js +15 -15
  875. package/lib/catalog/properties/property-length-measure_hole.js +10 -10
  876. package/lib/catalog/properties/property-number.js +3 -2
  877. package/lib/catalog/properties/property-read-only.js +3 -2
  878. package/lib/catalog/properties/property-string.js +3 -2
  879. package/lib/catalog/properties/property-toggle.js +3 -2
  880. package/lib/catalog/properties/shared-property-style.js +2 -1
  881. package/lib/catalog/utils/FuseUtils.js +10 -11
  882. package/lib/catalog/utils/exporter.js +10 -12
  883. package/lib/catalog/utils/geom-utils.js +1 -1
  884. package/lib/catalog/utils/item-loader.js +30 -35
  885. package/lib/catalog/windows.png +0 -0
  886. package/lib/class/FuseUtils.js +10 -11
  887. package/lib/class/area.js +9 -11
  888. package/lib/class/export.js +1 -1
  889. package/lib/class/group.js +13 -20
  890. package/lib/class/guide.js +9 -12
  891. package/lib/class/hole.js +7 -9
  892. package/lib/class/item.js +26 -31
  893. package/lib/class/layer.js +7 -9
  894. package/lib/class/line.js +101 -72
  895. package/lib/class/project.js +14 -13
  896. package/lib/class/vertex.js +10 -12
  897. package/lib/components/content.js +20 -3
  898. package/lib/components/style/button.js +17 -22
  899. package/lib/components/style/cancel-button.js +7 -7
  900. package/lib/components/style/content-container.js +5 -7
  901. package/lib/components/style/content-title.js +10 -12
  902. package/lib/components/style/delete-button.js +8 -8
  903. package/lib/components/style/export.js +1 -1
  904. package/lib/components/style/form-block.js +9 -12
  905. package/lib/components/style/form-color-input.js +7 -7
  906. package/lib/components/style/form-label.js +9 -12
  907. package/lib/components/style/form-number-input.js +15 -19
  908. package/lib/components/style/form-number-input_2.js +15 -19
  909. package/lib/components/style/form-select.js +10 -10
  910. package/lib/components/style/form-slider.js +28 -12
  911. package/lib/components/style/form-submit-button.js +8 -8
  912. package/lib/components/style/form-text-input.js +19 -24
  913. package/lib/components/viewer2d/area.js +8 -7
  914. package/lib/components/viewer2d/export.js +1 -1
  915. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +3 -3
  916. package/lib/components/viewer2d/grids/grid-streak.js +3 -3
  917. package/lib/components/viewer2d/grids/grid-vertical-streak.js +3 -3
  918. package/lib/components/viewer2d/grids/grids.js +6 -10
  919. package/lib/components/viewer2d/group.js +4 -3
  920. package/lib/components/viewer2d/item.js +14 -19
  921. package/lib/components/viewer2d/layer.js +3 -2
  922. package/lib/components/viewer2d/line.js +10 -3
  923. package/lib/components/viewer2d/ruler.js +9 -9
  924. package/lib/components/viewer2d/rulerDist.js +7 -6
  925. package/lib/components/viewer2d/rulerX.js +15 -19
  926. package/lib/components/viewer2d/rulerY.js +15 -19
  927. package/lib/components/viewer2d/scene.js +23 -33
  928. package/lib/components/viewer2d/snap.js +4 -3
  929. package/lib/components/viewer2d/state.js +7 -11
  930. package/lib/components/viewer2d/utils.js +29 -2
  931. package/lib/components/viewer2d/vertex.js +4 -3
  932. package/lib/components/viewer2d/viewer2d.js +65 -53
  933. package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +14 -20
  934. package/lib/components/viewer3d/dcm.js +2 -1
  935. package/lib/components/viewer3d/fbm.js +2 -1
  936. package/lib/components/viewer3d/front3D.js +6 -10
  937. package/lib/components/viewer3d/grid-creator.js +4 -3
  938. package/lib/components/viewer3d/grids/grid-horizontal-streak.js +3 -2
  939. package/lib/components/viewer3d/grids/grid-streak.js +3 -2
  940. package/lib/components/viewer3d/grids/grid-vertical-streak.js +3 -2
  941. package/lib/components/viewer3d/lrm.js +2 -1
  942. package/lib/components/viewer3d/pointer-lock-navigation.js +1 -1
  943. package/lib/components/viewer3d/ruler-utils/itemRect.js +10 -9
  944. package/lib/components/viewer3d/ruler-utils/layer3D.js +35 -34
  945. package/lib/components/viewer3d/ruler-utils/ruler3D.js +5 -7
  946. package/lib/components/viewer3d/ruler-utils/scene3D.js +3 -5
  947. package/lib/components/viewer3d/ruler-utils/state3D.js +3 -2
  948. package/lib/components/viewer3d/scene-creator.js +62 -52
  949. package/lib/components/viewer3d/three-memory-cleaner.js +1 -1
  950. package/lib/components/viewer3d/viewer3d-first-person.js +13 -17
  951. package/lib/components/viewer3d/viewer3d.js +301 -206
  952. package/lib/devLiteRenderer.js +46 -0
  953. package/lib/index.js +17 -89
  954. package/lib/models.js +55 -61
  955. package/lib/plugins/console-debugger.js +5 -7
  956. package/lib/plugins/export.js +1 -9
  957. package/lib/plugins/keyboard.js +2 -1
  958. package/lib/reducers/areas-reducer.js +2 -1
  959. package/lib/reducers/export.js +1 -1
  960. package/lib/reducers/groups-reducer.js +2 -1
  961. package/lib/reducers/holes-reducer.js +2 -1
  962. package/lib/reducers/items-reducer.js +2 -1
  963. package/lib/reducers/lines-reducer.js +2 -1
  964. package/lib/reducers/project-reducer.js +2 -1
  965. package/lib/reducers/scene-reducer.js +2 -1
  966. package/lib/reducers/user-reducer.js +2 -1
  967. package/lib/reducers/vertices-reducer.js +2 -1
  968. package/lib/reducers/viewer2d-reducer.js +5 -5
  969. package/lib/reducers/viewer3d-reducer.js +5 -5
  970. package/lib/styles/export.js +1 -1
  971. package/lib/styles/tabs.css +40 -0
  972. package/lib/translator/en.js +2 -1
  973. package/lib/translator/it.js +2 -1
  974. package/lib/translator/ru.js +2 -1
  975. package/lib/translator/translator.js +7 -10
  976. package/lib/utils/convert-units-lite.js +35 -0
  977. package/lib/utils/export.js +2 -2
  978. package/lib/utils/geometry.js +83 -54
  979. package/lib/utils/graph-inner-cycles.js +1 -1
  980. package/lib/utils/graph.js +7 -10
  981. package/lib/utils/helper.js +13 -14
  982. package/lib/utils/history.js +1 -1
  983. package/lib/utils/id-broker.js +7 -10
  984. package/lib/utils/molding.js +66 -71
  985. package/lib/utils/name-generator.js +7 -9
  986. package/lib/utils/objects-utils.js +5 -3
  987. package/lib/utils/process-black-list.js +3 -5
  988. package/lib/utils/react-if.js +3 -2
  989. package/lib/utils/snap-scene.js +3 -7
  990. package/lib/utils/snap.js +22 -26
  991. package/lib/utils/threeCSG.es6.js +16 -15
  992. package/lib/version.js +1 -2
  993. package/package.json +50 -60
  994. package/es/components/disclaimer/disclaimer.js +0 -117
  995. package/es/components/export.js +0 -9
  996. package/es/plugins/autosave.js +0 -33
  997. package/lib/components/disclaimer/disclaimer.js +0 -125
  998. package/lib/components/export.js +0 -33
  999. package/lib/plugins/autosave.js +0 -39
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import mockProps from "./mocks/mockProps.json";
3
+ import mockCategoryData from "./mocks/categoryData.json";
4
+ import mockDataBundle from "./mocks/dataBundle.json";
5
+ import ReactDOM from 'react-dom';
6
+ import LiteKitchenConfigurator from "./LiteKitchenConfigurator";
7
+ import LiteRenderer from "./LiteRenderer";
8
+
9
+ // --- renderer props ---
10
+ var options = {
11
+ unit: 'in',
12
+ enable3D: true
13
+ };
14
+ var onSave = function onSave(_ref) {
15
+ var payload = _ref.payload;
16
+ console.log('SAVE triggered:', payload.scene);
17
+ };
18
+ var onEvent = function onEvent(evt) {
19
+ console.log('EVENT:', evt.type, evt.payload);
20
+ };
21
+ var onExternalEvent = function onExternalEvent(evt) {
22
+ console.log('EXTERNAL EVENT:', evt.type, evt.payload);
23
+ };
24
+ var onError = function onError(err) {
25
+ console.error('ERROR:', err);
26
+ };
27
+ document.getElementById('app').style.display = 'block';
28
+ ReactDOM.render(/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
29
+ className: "flex gap-4"
30
+ }, /*#__PURE__*/React.createElement(LiteRenderer, {
31
+ width: 1264,
32
+ height: 1164,
33
+ projectElement: mockProps.projectElement,
34
+ categoryData: mockCategoryData,
35
+ dataBundle: mockDataBundle,
36
+ configData: mockProps.configData,
37
+ options: options,
38
+ logoImg: "/assets/logo.png",
39
+ companyUrl: "https://example.com",
40
+ toolbarButtons: [],
41
+ onSave: onSave,
42
+ onEvent: onEvent,
43
+ onError: onError
44
+ }))), document.getElementById('app'));
package/es/index.js CHANGED
@@ -1,15 +1,14 @@
1
- import Catalog from "./catalog/catalog";
2
- import Translator from "./translator/translator";
3
- import * as Models from "./models";
4
- import reducer from "./reducers/reducer";
5
- import KitchenConfiguratorApp from "./KitchenConfiguratorApp";
6
- import Plugins from "./plugins/export";
7
- import * as KitchenConfiguratorConstants from "./constants";
8
- import * as KitchenConfiguratorSharedStyle from "./shared-style";
9
- import KitchenConfiguratorComponents from "./components/export";
10
- import KitchenConfiguratorActions from "./actions/export";
11
- import KitchenConfiguratorReducers from "./reducers/export";
12
- import KitchenConfiguratorClasses from "./class/export";
13
- import ElementsFactories from "./catalog/factories/export";
14
- import KitchenConfiguratorUtils from "./utils/export";
15
- export { Catalog, Translator, Models, reducer, KitchenConfiguratorApp, Plugins, KitchenConfiguratorConstants, KitchenConfiguratorSharedStyle, KitchenConfiguratorComponents, KitchenConfiguratorActions, KitchenConfiguratorReducers, KitchenConfiguratorClasses, ElementsFactories, KitchenConfiguratorUtils };
1
+ import ReactDOM from 'react-dom';
2
+ import React from 'react';
3
+ import LiteRenderer from "./LiteRenderer";
4
+ export function renderKitchenSimulator(container) {
5
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6
+ var root = ReactDOM.render(/*#__PURE__*/React.createElement(LiteRenderer, props), container);
7
+ return {
8
+ root: root,
9
+ unmount: function unmount() {
10
+ ReactDOM.unmountComponentAtNode(container);
11
+ }
12
+ };
13
+ }
14
+ export default renderKitchenSimulator;
package/es/models.js CHANGED
@@ -1,24 +1,18 @@
1
- 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); }
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
2
7
  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; }
3
8
  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; }
4
- 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; }
5
- 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); } }
6
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- 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); }
9
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
10
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
12
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
13
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
- import { Record, List, Map, fromJS } from 'immutable';
11
+ import { fromJS, List, Map, Record } from 'immutable';
18
12
  import { MODE_IDLE, UNIT_INCH } from "./constants";
19
13
  import { SNAP_MASK } from "./utils/snap";
20
14
  import { isEmpty } from "./utils/helper";
21
- import convert from 'convert-units';
15
+ import { convert } from "./utils/convert-units-lite";
22
16
  var safeLoadMapList = function safeLoadMapList(mapList, Model, defaultMap) {
23
17
  return mapList ? new Map(mapList).map(function (m) {
24
18
  return new Model(m);
@@ -1,9 +1,6 @@
1
- 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); }
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
2
  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; }
3
3
  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; }
4
- 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; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
7
4
  import actions from "../actions/export";
8
5
  export default function consoleDebugger() {
9
6
  return function (store, stateExtractor) {
@@ -1,9 +1,7 @@
1
- import Autosave from "./autosave";
2
1
  import Keyboard from "./keyboard";
3
2
  import ConsoleDebugger from "./console-debugger";
4
- export { Autosave, Keyboard, ConsoleDebugger };
3
+ export { Keyboard, ConsoleDebugger };
5
4
  export default {
6
- Autosave: Autosave,
7
5
  Keyboard: Keyboard,
8
6
  ConsoleDebugger: ConsoleDebugger
9
7
  };
@@ -1,5 +1,5 @@
1
- import { UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, MODE_2D_PAN, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, CHANGE_WALL_LENGTH_MEASURE, CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
2
- import convert from 'convert-units';
1
+ import { CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WALL_LENGTH_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, MODE_2D_PAN, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, UPDATE_2D_CAMERA, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
2
+ import { convert } from "../utils/convert-units-lite";
3
3
  export default function (state, action) {
4
4
  var _state = state,
5
5
  scene = _state.scene;
@@ -1,7 +1,7 @@
1
- import { MODE_3D_VIEW, MODE_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
1
+ import { MODE_3D_FIRST_PERSON, MODE_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
2
2
  import { Project } from "../class/export";
3
3
  import { history } from "../utils/export";
4
- import convert from 'convert-units';
4
+ import { convert } from "../utils/convert-units-lite";
5
5
  export default function (state, action) {
6
6
  state = state.merge({
7
7
  sceneHistory: history.historyPush(state.sceneHistory, state.scene)
@@ -1,9 +1,5 @@
1
- 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); }
2
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
- 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); } }
4
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
7
3
  import EN from "./en";
8
4
  import IT from "./it";
9
5
  import RU from "./ru";
@@ -0,0 +1,29 @@
1
+ var lengthFactors = {
2
+ m: 1,
3
+ cm: 100,
4
+ mm: 1000,
5
+ "in": 39.3701,
6
+ ft: 3.28084,
7
+ m2: 1,
8
+ cm2: 10000,
9
+ // (100^2)
10
+ mm2: 1000000,
11
+ // (1000^2)
12
+ in2: 1550.0031,
13
+ // (39.3701^2)
14
+ ft2: 10.7639 // (3.28084^2)
15
+ };
16
+ export function convert(value) {
17
+ return {
18
+ from: function from(fromUnit) {
19
+ return {
20
+ to: function to(toUnit) {
21
+ if (!(fromUnit in lengthFactors) || !(toUnit in lengthFactors)) {
22
+ throw new Error("Unsupported unit conversion: ".concat(fromUnit, " \u2192 ").concat(toUnit));
23
+ }
24
+ return value / lengthFactors[fromUnit] * lengthFactors[toUnit];
25
+ }
26
+ };
27
+ }
28
+ };
29
+ }
@@ -1,20 +1,11 @@
1
- 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); }
2
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
3
- 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."); }
4
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
5
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
4
  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; }
7
5
  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; }
8
- 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; }
9
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
10
- 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); }
11
6
  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; } } }; }
12
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
13
- 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."); }
14
7
  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; } }
15
8
  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; }
16
- 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; } }
17
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
18
9
  /** @description Determines the distance between two points
19
10
  * @param {number} x0 Vertex 0 x
20
11
  * @param {number} y0 Vertex 0 y
@@ -22,9 +13,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
13
  * @param {number} y1 Vertex 1 y
23
14
  * @return {number}
24
15
  */
25
- import { toFixedFloat, fAbs } from "./math.js";
26
- import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, WALL_CABINET_LAYOUTPOS, UNIT_ANGLE, MIN_ANGLE_DISALLOW_DRAW_WALL } from "../constants";
27
- import convert from 'convert-units';
16
+ import { fAbs, toFixedFloat } from "./math.js";
17
+ import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, UNIT_ANGLE, WALL_CABINET_LAYOUTPOS } from "../constants";
18
+ import { convert } from "./convert-units-lite";
28
19
  import * as Three from 'three';
29
20
  import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils.js";
30
21
  import { isEmpty } from "./helper.js";
@@ -393,17 +384,23 @@ export function snapAngleByUnit(lineAngle, vertices, drawingLine, x, y, dragVert
393
384
  // angle snapping as a value of UNIT_ANGLE
394
385
  var rest = absAngle % UNIT_ANGLE;
395
386
  var missAngle = UNIT_ANGLE - rest;
387
+ var isSingleLine = !drawingLine.vertices.some(function (vetID) {
388
+ return vertices[vetID].lines.some(function (lineID) {
389
+ return lineID !== drawingLine.id;
390
+ });
391
+ });
396
392
  // the origin point of rotation(snapping)
397
- var originVerId = drawingLine.vertices.findIndex(function (vertice) {
393
+ var originVerIndex = drawingLine.vertices.findIndex(function (vertice) {
398
394
  return vertice !== dragVertexId;
399
395
  });
400
- originVerId = originVerId < 0 ? drawingLine.vertices[0] : drawingLine.vertices[originVerId];
396
+ var originVerId = originVerIndex < 0 ? drawingLine.vertices[0] : drawingLine.vertices[originVerIndex];
401
397
  var ox = vertices[originVerId].x;
402
398
  var oy = vertices[originVerId].y;
403
399
  // check whether the line is snapped to before point.
404
400
  if (rest <= UNIT_ANGLE / 2) {
405
401
  // determine the direction of rotation.
406
402
  rest = lineAngle > 0 ? rest : -rest;
403
+ rest = isSingleLine ? -rest : rest;
407
404
  // rotate the current point to last point around the first point of drawing line.
408
405
  tx = rotatePointAroundPoint(x, y, ox, oy, rest).x;
409
406
  ty = rotatePointAroundPoint(x, y, ox, oy, rest).y;
@@ -412,6 +409,7 @@ export function snapAngleByUnit(lineAngle, vertices, drawingLine, x, y, dragVert
412
409
  else if (rest > UNIT_ANGLE / 2) {
413
410
  // determine the direction of rotation.
414
411
  missAngle = lineAngle > 0 ? -missAngle : missAngle;
412
+ missAngle = isSingleLine ? -missAngle : missAngle;
415
413
  // rotate the current point to last point around the first point of drawing line.
416
414
  tx = rotatePointAroundPoint(x, y, ox, oy, missAngle).x;
417
415
  ty = rotatePointAroundPoint(x, y, ox, oy, missAngle).y;
@@ -941,7 +939,15 @@ export function getAllArea(layer) {
941
939
 
942
940
  /** Get all lines of the scene */
943
941
  export function getAllLines(layer) {
944
- var allAreaLines = getAllAreaLines(layer);
942
+ var allArea = getAllArea(layer);
943
+ var allAreaLines = [];
944
+ var allVertices = layer.get('vertices').toJS();
945
+ layer.lines.forEach(function (tline) {
946
+ var line = tline.toJS();
947
+ if (isPointInArea(allArea, allVertices[line.vertices[0]]) || isPointInArea(allArea, allVertices[line.vertices[1]])) {
948
+ allAreaLines.push(line.vertices.reverse());
949
+ }
950
+ });
945
951
  var allLines = [];
946
952
  //let allNonAreaLines = [];
947
953
  var thick = LINE_THICKNESS / 2;
@@ -1092,21 +1098,8 @@ export function getCalcRectFromLine(x0, y0, x1, y1, thick, layer) {
1092
1098
  rot += Math.PI;
1093
1099
  }
1094
1100
  } else {
1095
- var pt0 = point(x0 + ox, y0 + oy);
1096
- var pt1 = point(x1 + ox, y1 + oy);
1097
- var ptC = point((pt0.x + pt1.x) / 2, (pt0.y + pt1.y) / 2);
1098
- var allArea = getAllArea(layer);
1099
- if (isPointInArea(allArea, ptC)) {
1100
- // try make rect under line
1101
- var _pt0 = point(x0 - ox, y0 - oy);
1102
- var _pt1 = point(x1 - ox, y1 - oy);
1103
- var _ptC = point((_pt0.x + _pt1.x) / 2, (_pt0.y + _pt1.y) / 2);
1104
- if (!isPointInArea(allArea, _ptC)) {
1105
- // only under rect is not included in area, make rect under line
1106
- ox = -ox;
1107
- oy = -oy;
1108
- }
1109
- }
1101
+ ox = -ox;
1102
+ oy = -oy;
1110
1103
  }
1111
1104
  return {
1112
1105
  rectEnd: [point(x0 + ox / 2, y0 + oy / 2), point(x1 + ox / 2, y1 + oy / 2)],
@@ -1154,16 +1147,18 @@ export function validateSnaps(allSnaps, allRects) {
1154
1147
  }
1155
1148
  export function validateLineSnaps(allSnaps, allItemSnap, allLineSnap, allItemRects, allLineRects, allRects) {
1156
1149
  var validSnaps = [];
1150
+ var addFlag = true;
1157
1151
  allSnaps.forEach(function (snap) {
1158
1152
  if (validSnap(snap, allRects)) {
1159
1153
  validSnaps.push(snap);
1160
- } else {
1154
+ } else if (addFlag) {
1161
1155
  allItemSnap.forEach(function (snap) {
1162
1156
  validSnaps.push(snap);
1163
1157
  });
1164
1158
  allLineSnap.forEach(function (snap) {
1165
1159
  validSnaps.push(snap);
1166
1160
  });
1161
+ addFlag = false;
1167
1162
  }
1168
1163
  });
1169
1164
  return validSnaps;
@@ -1467,10 +1462,8 @@ export function calcSnap2(allItemRect, allItemSnap, allLineRects, allLineSnap, a
1467
1462
  val.is_corner = allItemRect.cur && allItemRect.cur.is_corner;
1468
1463
  var curitem = getCalcRectFromItem(val);
1469
1464
  var allCurSnap = [];
1470
- //if (!val.is_corner) {
1471
1465
  allCurSnap = getAllCurSnap(allLineRects, x, y, allItemRect.cur);
1472
1466
  allCurSnap = validateSnaps(allCurSnap, allRect);
1473
- //}
1474
1467
  var getSnap = false;
1475
1468
  var snapdist = [];
1476
1469
  //console.log("allItemSnap", allItemSnap.filter(e => e.isSnappedLine))
@@ -1901,7 +1894,7 @@ export function getAllHoleRect(scene, val) {
1901
1894
  y: vertice1.y
1902
1895
  };
1903
1896
  var rotation = Math.atan2(point1.y - point0.y, point1.x - point0.x);
1904
- var rectInfo = getCalcRectFromLine(point0.x, point0.y, point1.x, point1.y, LINE_THICKNESS, layer);
1897
+ var rectInfo = getCalcRectFromLine(point1.x, point1.y, point0.x, point0.y, LINE_THICKNESS, layer);
1905
1898
  var vN = point(rectInfo.rect[0].x - rectInfo.rect[3].x, rectInfo.rect[0].y - rectInfo.rect[3].y);
1906
1899
  var lenN = Math.sqrt(vN.x * vN.x + vN.y * vN.y);
1907
1900
  vN.x /= lenN;
@@ -2042,7 +2035,7 @@ export function isRightWall(v0, v1) {
2042
2035
  * OVERLAP_LINK: two lines are linked at the common point, so they can be merged to one line
2043
2036
  * OVERLAP_INCLUDED: destLine includes srcLine
2044
2037
  * OVERLAP_SOME: two lines are overlapped with some common range, then returns the trimmed segments of srcLine
2045
- *
2038
+ *
2046
2039
  * //////// test - start /////////////
2047
2040
  const p1 = { x1: 1413.1313131313132, y1: 1044.949494949495 };
2048
2041
  const p2 = { x1: 1476.2626262626263, y1: 1108.0808080808079 };
@@ -2409,12 +2402,45 @@ export function relationshipOfTwoOverlappedLines1(srcLine, destLine) {
2409
2402
 
2410
2403
  /**
2411
2404
  *
2412
- * @param {Array} points //points of polygon
2413
- * @returns {Array} [centroid.x, centroid.y]
2405
+ * @param {Array} points points of polygon [[x0, y0], [x1, y1], ...]
2406
+ * @returns {Array} { x, y } position of centroid
2414
2407
  */
2415
2408
  export function getCentroidOfPolygon(points) {
2416
- var center = points.reduce(function (x, y) {
2409
+ var centroid = points.reduce(function (x, y) {
2417
2410
  return [x[0] + y[0] / points.length, x[1] + y[1] / points.length];
2418
2411
  }, [0, 0]);
2419
- return center;
2412
+ return {
2413
+ x: centroid[0],
2414
+ y: centroid[1]
2415
+ };
2416
+ }
2417
+
2418
+ /**
2419
+ * Return the polygon points of room
2420
+ * @param {Object} layer
2421
+ * @returns {Array} polygon points [x0, y0, x1, y1, ... ]
2422
+ */
2423
+ export function getPoylgonPoints(layer) {
2424
+ var _layer$areas;
2425
+ var areainfo = [];
2426
+ (_layer$areas = layer.areas) === null || _layer$areas === void 0 || _layer$areas.forEach(function (area) {
2427
+ var _area$vertices;
2428
+ var sz = (_area$vertices = area.vertices) === null || _area$vertices === void 0 ? void 0 : _area$vertices.size;
2429
+ for (var i = 0; i < sz; i++) {
2430
+ areainfo.push(area.vertices.get(i));
2431
+ }
2432
+ });
2433
+ var rect = [];
2434
+ areainfo.forEach(function (area) {
2435
+ var _layer$vertices;
2436
+ var vert = (_layer$vertices = layer.vertices) === null || _layer$vertices === void 0 ? void 0 : _layer$vertices.get(area);
2437
+ rect.push(vert === null || vert === void 0 ? void 0 : vert.x, vert === null || vert === void 0 ? void 0 : vert.y);
2438
+ });
2439
+ return rect;
2440
+ }
2441
+ export function validRect(itemRect, rects) {
2442
+ var updatedItemRect = getCalcRectFromItem(itemRect);
2443
+ return rects.every(function (rect) {
2444
+ return !intersectRect(rect.rect, updatedItemRect.rect);
2445
+ });
2420
2446
  }
package/es/utils/graph.js CHANGED
@@ -1,9 +1,5 @@
1
- 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); }
2
- 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); } }
3
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
- 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); }
6
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
1
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
7
3
  //JS porting of this code http://www.geeksforgeeks.org/biconnected-components/
8
4
 
9
5
  function create_array(length) {
@@ -1,14 +1,12 @@
1
- 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); }
1
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
3
  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; }
3
4
  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; }
4
- 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; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
7
5
  import { HDRCubeTextureLoader } from 'three/examples/jsm/loaders/HDRCubeTextureLoader.js';
8
6
  import { ANIMATE_OBJECT_OPEN_DOOR_ROTATION_UNIT, ANIMATE_STEP_MAX, DECIMAL_PLACES_2, HDR_URLS, MODE_ELEVATION_VIEW } from "../constants";
9
7
  import * as Three from 'three';
10
8
  import { returnReplaceableDeepSearchType } from "./../components/viewer2d/utils";
11
- import convert from 'convert-units';
9
+ import { convert } from "./convert-units-lite";
12
10
  import { formatNumber } from "./math";
13
11
  var AWS = require('aws-sdk');
14
12
  var s3 = new AWS.S3({
@@ -1,10 +1,6 @@
1
- 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); }
2
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
- 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); } }
4
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
7
- var shortid = require('shortid');
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import { nanoid } from 'nanoid';
8
4
  export var IDBroker = /*#__PURE__*/function () {
9
5
  function IDBroker() {
10
6
  _classCallCheck(this, IDBroker);
@@ -12,7 +8,7 @@ export var IDBroker = /*#__PURE__*/function () {
12
8
  return _createClass(IDBroker, null, [{
13
9
  key: "acquireID",
14
10
  value: function acquireID() {
15
- return shortid.generate();
11
+ return nanoid();
16
12
  }
17
13
  }]);
18
14
  }();
@@ -1,19 +1,13 @@
1
- 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); }
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
3
  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; }
3
4
  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; }
4
- 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; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
7
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
8
- 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."); }
9
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
10
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
11
5
  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; } } }; }
12
6
  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; } }
13
7
  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; }
14
8
  import { BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, EPSILON, MIDDLE_MOLDING_LOCATION, MOLDING_LOCATIONS, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_SAME, OVERLAP_SOME, TALL_CABINET_LAYOUTPOS, TOP_MOLDING_LOCATION, WALL_CABINET_LAYOUTPOS } from "../constants";
15
9
  import * as Three from 'three';
16
- import convert from 'convert-units';
10
+ import { convert } from "./convert-units-lite";
17
11
  import IDBroker from "./id-broker";
18
12
  import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils";
19
13
  import { GeometryUtils } from "./export";
@@ -69,16 +63,16 @@ export function isEnableItemForMolding(layer, selItem) {
69
63
  else return result && hasMoldingLayout(molding, selItem.layoutpos);
70
64
  }
71
65
 
72
- /**
73
- * Check two line segments are overlap. The direction of the two line segments must be opposite.
74
- * s1 c2 s2 c1
75
- * |--------|------|-----------|
76
- * Decision Formular: L(s1,c1) + L(s2, c2) = L(s1, s2) + L(c1, c2)
77
- * @param {*} selRectPos1
78
- * @param {*} selRectPos2
79
- * @param {*} curRectPos1
80
- * @param {*} curRectPos2
81
- * @returns L(s1,c1) + L(s2, c2) - L(s1, s2) - L(c1, c2)
66
+ /**
67
+ * Check two line segments are overlap. The direction of the two line segments must be opposite.
68
+ * s1 c2 s2 c1
69
+ * |--------|------|-----------|
70
+ * Decision Formular: L(s1,c1) + L(s2, c2) = L(s1, s2) + L(c1, c2)
71
+ * @param {*} selRectPos1
72
+ * @param {*} selRectPos2
73
+ * @param {*} curRectPos1
74
+ * @param {*} curRectPos2
75
+ * @returns L(s1,c1) + L(s2, c2) - L(s1, s2) - L(c1, c2)
82
76
  */
83
77
  function getDelta(selRectPos1, selRectPos2, curRectPos1, curRectPos2) {
84
78
  return (
@@ -168,11 +162,11 @@ function tryMergeItemWithLocation(curItem, itemGroup, location) {
168
162
  });
169
163
  }
170
164
 
171
- /**
172
- * Make the molding group array with [items].
173
- * @param {*} layer
174
- * @param {*} items - Mergable snapped item group, if [items] is null then get all MG array of layer
175
- * @returns MG array
165
+ /**
166
+ * Make the molding group array with [items].
167
+ * @param {*} layer
168
+ * @param {*} items - Mergable snapped item group, if [items] is null then get all MG array of layer
169
+ * @returns MG array
176
170
  */
177
171
  export function getAllMoldingGroups(layer) {
178
172
  var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
@@ -347,12 +341,12 @@ export function mergeOverlappedLines(line1, line2) {
347
341
  }
348
342
  }
349
343
 
350
- /**
351
- * Get the contour line array of moldingGroup items
352
- * @param {*} moldingGroup
353
- * @param {*} layer
354
- * @param {*} catalog
355
- * @returns contour line array of moldingGroup items
344
+ /**
345
+ * Get the contour line array of moldingGroup items
346
+ * @param {*} moldingGroup
347
+ * @param {*} layer
348
+ * @param {*} catalog
349
+ * @returns contour line array of moldingGroup items
356
350
  */
357
351
  export function getLinesFromItems2(moldingGroup, layer, catalog) {
358
352
  // wall lines
@@ -507,13 +501,13 @@ export function getLinesFromItems2(moldingGroup, layer, catalog) {
507
501
  return newMGlines;
508
502
  }
509
503
 
510
- /**
511
- * Get the line that colinear linked with [line], and merge them to a new line
512
- * @param {*} line
513
- * @param {*} MGlines
514
- * @returns
515
- * - returns merged new line
516
- * - returns filtered new line group (remove linked line from [MGlines])
504
+ /**
505
+ * Get the line that colinear linked with [line], and merge them to a new line
506
+ * @param {*} line
507
+ * @param {*} MGlines
508
+ * @returns
509
+ * - returns merged new line
510
+ * - returns filtered new line group (remove linked line from [MGlines])
517
511
  */
518
512
  function getMergedLine(line, MGlines, cnt) {
519
513
  try {
@@ -566,11 +560,11 @@ function getMergedLine(line, MGlines, cnt) {
566
560
  }
567
561
  }
568
562
 
569
- /**
570
- * Get the contour line segments from [lineSegs]
571
- * @param {*} lineSegs
572
- * @param {*} otherLines
573
- * @returns
563
+ /**
564
+ * Get the contour line segments from [lineSegs]
565
+ * @param {*} lineSegs
566
+ * @param {*} otherLines
567
+ * @returns
574
568
  */
575
569
  function getTrimmedContourLineSegs(lineSegs, otherLines, cnt) {
576
570
  try {
@@ -1,9 +1,5 @@
1
- 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); }
2
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
3
- 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); } }
4
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- 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); }
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
7
3
  var NameGenerator = /*#__PURE__*/function () {
8
4
  function NameGenerator() {
9
5
  _classCallCheck(this, NameGenerator);
@@ -1,4 +1,4 @@
1
- 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); }
1
+ import _typeof from "@babel/runtime/helpers/esm/typeof";
2
2
  import * as Three from 'three';
3
3
  String.prototype.isLeftPlaceholder = function () {
4
4
  return this.match(/_L$|_L_\d$/) != null;