kitchen-simulator 5.10.1-react.18 → 5.10.2-react.18

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 (579) hide show
  1. package/es/index.js +3 -627
  2. package/es/index.js.LICENSE.txt +45 -0
  3. package/es/index.js.map +1 -0
  4. package/package.json +9 -5
  5. package/es/@history.js +0 -2
  6. package/es/AppContext.js +0 -6
  7. package/es/LiteKitchenConfigurator.js +0 -474
  8. package/es/LiteRenderer.js +0 -363
  9. package/es/WorkSpace.js +0 -851
  10. package/es/actions/area-actions.js +0 -14
  11. package/es/actions/export.js +0 -23
  12. package/es/actions/groups-actions.js +0 -89
  13. package/es/actions/holes-actions.js +0 -119
  14. package/es/actions/items-actions.js +0 -316
  15. package/es/actions/lines-actions.js +0 -83
  16. package/es/actions/project-actions.js +0 -298
  17. package/es/actions/scene-actions.js +0 -33
  18. package/es/actions/vertices-actions.js +0 -27
  19. package/es/actions/viewer2d-actions.js +0 -58
  20. package/es/actions/viewer3d-actions.js +0 -23
  21. package/es/assets/brown_photostudio_02_1k.hdr +0 -0
  22. package/es/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
  23. package/es/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
  24. package/es/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
  25. package/es/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
  26. package/es/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
  27. package/es/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
  28. package/es/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
  29. package/es/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
  30. package/es/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
  31. package/es/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
  32. package/es/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
  33. package/es/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
  34. package/es/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
  35. package/es/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
  36. package/es/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
  37. package/es/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
  38. package/es/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
  39. package/es/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
  40. package/es/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
  41. package/es/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
  42. package/es/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
  43. package/es/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
  44. package/es/assets/fonts/style.css +0 -177
  45. package/es/assets/gltf/door_closet.bin +0 -0
  46. package/es/assets/gltf/door_closet.fbx +0 -0
  47. package/es/assets/gltf/door_closet.gltf +0 -1
  48. package/es/assets/gltf/door_exterior.bin +0 -0
  49. package/es/assets/gltf/door_exterior.fbx +0 -0
  50. package/es/assets/gltf/door_exterior.gltf +0 -1
  51. package/es/assets/gltf/door_interior.bin +0 -0
  52. package/es/assets/gltf/door_interior.fbx +0 -0
  53. package/es/assets/gltf/door_interior.gltf +0 -1
  54. package/es/assets/gltf/door_sliding.bin +0 -0
  55. package/es/assets/gltf/door_sliding.fbx +0 -0
  56. package/es/assets/gltf/door_sliding.gltf +0 -1
  57. package/es/assets/gltf/doorway_framed.bin +0 -0
  58. package/es/assets/gltf/doorway_framed.fbx +0 -0
  59. package/es/assets/gltf/doorway_framed.gltf +0 -1
  60. package/es/assets/gltf/window_clear.bin +0 -0
  61. package/es/assets/gltf/window_clear.fbx +0 -0
  62. package/es/assets/gltf/window_clear.gltf +0 -1
  63. package/es/assets/gltf/window_cross.bin +0 -0
  64. package/es/assets/gltf/window_cross.fbx +0 -0
  65. package/es/assets/gltf/window_cross.gltf +0 -1
  66. package/es/assets/gltf/window_double_hung.bin +0 -0
  67. package/es/assets/gltf/window_double_hung.fbx +0 -0
  68. package/es/assets/gltf/window_double_hung.gltf +0 -1
  69. package/es/assets/gltf/window_vertical.bin +0 -0
  70. package/es/assets/gltf/window_vertical.fbx +0 -0
  71. package/es/assets/gltf/window_vertical.gltf +0 -1
  72. package/es/assets/img/TKC_thumbnail.png +0 -0
  73. package/es/assets/img/Toggle.png +0 -0
  74. package/es/assets/img/loading/loading.gif +0 -0
  75. package/es/assets/img/loading/loading_1.svg +0 -11
  76. package/es/assets/img/loading_large.gif +0 -0
  77. package/es/assets/img/png/door/closet.png +0 -0
  78. package/es/assets/img/png/door/doorwaysframed.png +0 -0
  79. package/es/assets/img/png/door/doorwaysframeles.png +0 -0
  80. package/es/assets/img/png/door/doorwaysframeless.png +0 -0
  81. package/es/assets/img/png/door/exterior.png +0 -0
  82. package/es/assets/img/png/door/interior.png +0 -0
  83. package/es/assets/img/png/door/sliding.png +0 -0
  84. package/es/assets/img/png/helper/outcome.png +0 -0
  85. package/es/assets/img/png/helper/video_preview_3d.png +0 -0
  86. package/es/assets/img/png/helper/video_preview_start.png +0 -0
  87. package/es/assets/img/project_img.png +0 -0
  88. package/es/assets/img/rta/rta_logo_box_blue.jpg +0 -0
  89. package/es/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
  90. package/es/assets/img/rta/rta_logo_box_blue_ico.svg +0 -55
  91. package/es/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
  92. package/es/assets/img/rta/rta_logo_box_lightblue.png +0 -0
  93. package/es/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
  94. package/es/assets/img/rta/rta_logo_box_maroon.png +0 -0
  95. package/es/assets/img/rta/rta_logo_box_white.png +0 -0
  96. package/es/assets/img/rta_menu.png +0 -0
  97. package/es/assets/img/step2.jpg +0 -0
  98. package/es/assets/img/step3.jpg +0 -0
  99. package/es/assets/img/step4.jpg +0 -0
  100. package/es/assets/img/step5.jpg +0 -0
  101. package/es/assets/img/step6.jpg +0 -0
  102. package/es/assets/img/step7.jpg +0 -0
  103. package/es/assets/img/step8.jpg +0 -0
  104. package/es/assets/img/svg/2d_delete_object.svg +0 -33
  105. package/es/assets/img/svg/2d_delete_object1.svg +0 -33
  106. package/es/assets/img/svg/2d_lock_object.svg +0 -33
  107. package/es/assets/img/svg/3d_item_move.svg +0 -106
  108. package/es/assets/img/svg/3d_item_rotation.svg +0 -76
  109. package/es/assets/img/svg/3d_item_warning_edit.svg +0 -77
  110. package/es/assets/img/svg/3d_item_warning_info.svg +0 -81
  111. package/es/assets/img/svg/accessories.svg +0 -4
  112. package/es/assets/img/svg/angle_icon.svg +0 -39
  113. package/es/assets/img/svg/blank_div.svg +0 -14
  114. package/es/assets/img/svg/bottombar/2d3d_button.svg +0 -3
  115. package/es/assets/img/svg/bottombar/2d3d_button_active.svg +0 -3
  116. package/es/assets/img/svg/bottombar/2d3d_toggle.svg +0 -4
  117. package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +0 -4
  118. package/es/assets/img/svg/bottombar/arrow-down.svg +0 -3
  119. package/es/assets/img/svg/bottombar/arrow-left.svg +0 -3
  120. package/es/assets/img/svg/bottombar/arrow-minus.svg +0 -3
  121. package/es/assets/img/svg/bottombar/arrow-plus.svg +0 -11
  122. package/es/assets/img/svg/bottombar/arrow-right.svg +0 -3
  123. package/es/assets/img/svg/bottombar/arrow-up.svg +0 -3
  124. package/es/assets/img/svg/bottombar/collapse.svg +0 -3
  125. package/es/assets/img/svg/bottombar/elevation-back.svg +0 -6
  126. package/es/assets/img/svg/bottombar/elevation-front.svg +0 -6
  127. package/es/assets/img/svg/bottombar/elevation-left.svg +0 -6
  128. package/es/assets/img/svg/bottombar/elevation-right.svg +0 -7
  129. package/es/assets/img/svg/bottombar/elevation.svg +0 -13
  130. package/es/assets/img/svg/bottombar/expand.svg +0 -3
  131. package/es/assets/img/svg/bottombar/help.svg +0 -72
  132. package/es/assets/img/svg/bottombar/incm_toggle.svg +0 -39
  133. package/es/assets/img/svg/bottombar/pan_1.svg +0 -57
  134. package/es/assets/img/svg/bottombar/pan_2.svg +0 -27
  135. package/es/assets/img/svg/bottombar/pan_3.svg +0 -27
  136. package/es/assets/img/svg/bottombar/pan_4.svg +0 -27
  137. package/es/assets/img/svg/bottombar/pan_5.svg +0 -27
  138. package/es/assets/img/svg/bottombar/settings.svg +0 -23
  139. package/es/assets/img/svg/bottombar/spin-down.svg +0 -76
  140. package/es/assets/img/svg/bottombar/spin-left.svg +0 -75
  141. package/es/assets/img/svg/bottombar/spin-right.svg +0 -75
  142. package/es/assets/img/svg/bottombar/spin-up.svg +0 -76
  143. package/es/assets/img/svg/bottombar/spin_1.svg +0 -48
  144. package/es/assets/img/svg/bottombar/spin_2.svg +0 -31
  145. package/es/assets/img/svg/bottombar/spin_3.svg +0 -31
  146. package/es/assets/img/svg/bottombar/spin_4.svg +0 -31
  147. package/es/assets/img/svg/bottombar/spin_5.svg +0 -31
  148. package/es/assets/img/svg/bottombar/zoomin.svg +0 -29
  149. package/es/assets/img/svg/bottombar/zoomout.svg +0 -26
  150. package/es/assets/img/svg/check.svg +0 -10
  151. package/es/assets/img/svg/close.svg +0 -11
  152. package/es/assets/img/svg/color/Black.svg +0 -3
  153. package/es/assets/img/svg/color/Blue.svg +0 -3
  154. package/es/assets/img/svg/color/Brown.svg +0 -9
  155. package/es/assets/img/svg/color/Cream.svg +0 -3
  156. package/es/assets/img/svg/color/Dark.svg +0 -9
  157. package/es/assets/img/svg/color/Gray.svg +0 -3
  158. package/es/assets/img/svg/color/Green.svg +0 -3
  159. package/es/assets/img/svg/color/Light.svg +0 -9
  160. package/es/assets/img/svg/color/Medium.svg +0 -9
  161. package/es/assets/img/svg/color/Unfinished.svg +0 -9
  162. package/es/assets/img/svg/color/White.svg +0 -3
  163. package/es/assets/img/svg/color/White.svg.bak +0 -3
  164. package/es/assets/img/svg/color/stone2.jpg +0 -0
  165. package/es/assets/img/svg/color/wood2.jpg +0 -0
  166. package/es/assets/img/svg/copy.svg +0 -11
  167. package/es/assets/img/svg/delete.svg +0 -3
  168. package/es/assets/img/svg/detail.svg +0 -77
  169. package/es/assets/img/svg/disclaimer/background.svg +0 -758
  170. package/es/assets/img/svg/disclaimer/logo-dots.svg +0 -11
  171. package/es/assets/img/svg/door/Closet.svg +0 -11
  172. package/es/assets/img/svg/door/Exterior.svg +0 -5
  173. package/es/assets/img/svg/door/Framed_dorway.svg +0 -5
  174. package/es/assets/img/svg/door/Frameless_dorway.svg +0 -5
  175. package/es/assets/img/svg/door/Interior.svg +0 -7
  176. package/es/assets/img/svg/door/Sliding.svg +0 -5
  177. package/es/assets/img/svg/doors_closet.svg +0 -47
  178. package/es/assets/img/svg/doors_exterior.svg +0 -25
  179. package/es/assets/img/svg/doors_interior.svg +0 -29
  180. package/es/assets/img/svg/doors_patio.svg +0 -26
  181. package/es/assets/img/svg/duplicate.svg +0 -11
  182. package/es/assets/img/svg/duplicate_object_left.svg +0 -32
  183. package/es/assets/img/svg/duplicate_object_right.svg +0 -32
  184. package/es/assets/img/svg/filtersActive.svg +0 -19
  185. package/es/assets/img/svg/firstsetting/L.svg +0 -3
  186. package/es/assets/img/svg/firstsetting/L2.svg +0 -3
  187. package/es/assets/img/svg/firstsetting/Open.svg +0 -3
  188. package/es/assets/img/svg/firstsetting/Square.svg +0 -3
  189. package/es/assets/img/svg/firstsetting/bar-active.svg +0 -9
  190. package/es/assets/img/svg/firstsetting/bar-normal.svg +0 -3
  191. package/es/assets/img/svg/firstsetting/bullet-current.svg +0 -3
  192. package/es/assets/img/svg/firstsetting/bullet-done.svg +0 -3
  193. package/es/assets/img/svg/firstsetting/bullet-not-done.svg +0 -3
  194. package/es/assets/img/svg/firstsetting/check-active.svg +0 -3
  195. package/es/assets/img/svg/firstsetting/check-normal.svg +0 -3
  196. package/es/assets/img/svg/firstsetting/pencil.svg +0 -11
  197. package/es/assets/img/svg/green_checkmark.svg +0 -27
  198. package/es/assets/img/svg/headerbar/assist.svg +0 -3
  199. package/es/assets/img/svg/headerbar/cart.svg +0 -3
  200. package/es/assets/img/svg/headerbar/check.svg +0 -10
  201. package/es/assets/img/svg/headerbar/consult_designer.svg +0 -45
  202. package/es/assets/img/svg/headerbar/edit_name.svg +0 -26
  203. package/es/assets/img/svg/headerbar/file-dollar.svg +0 -13
  204. package/es/assets/img/svg/headerbar/hamburger_menu.svg +0 -32
  205. package/es/assets/img/svg/headerbar/plus.svg +0 -11
  206. package/es/assets/img/svg/headerbar/review_quote.svg +0 -44
  207. package/es/assets/img/svg/headerbar/ruler-measure.svg +0 -11
  208. package/es/assets/img/svg/headerbar/save.svg +0 -3
  209. package/es/assets/img/svg/headerbar/setting.svg +0 -75
  210. package/es/assets/img/svg/help/check.svg +0 -10
  211. package/es/assets/img/svg/help/search.svg +0 -76
  212. package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +0 -27
  213. package/es/assets/img/svg/intro/1-start-with-floorplan.svg +0 -26
  214. package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +0 -28
  215. package/es/assets/img/svg/intro/2-start-from-scratch.svg +0 -27
  216. package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +0 -19
  217. package/es/assets/img/svg/intro/3-retrieve-project.svg +0 -18
  218. package/es/assets/img/svg/invert.svg +0 -127
  219. package/es/assets/img/svg/lefttoolbar/appliance-active.svg +0 -13
  220. package/es/assets/img/svg/lefttoolbar/appliance.svg +0 -13
  221. package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +0 -10
  222. package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +0 -3
  223. package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +0 -3
  224. package/es/assets/img/svg/lefttoolbar/cabinet.svg +0 -10
  225. package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +0 -89
  226. package/es/assets/img/svg/lefttoolbar/door-style-active.svg +0 -20
  227. package/es/assets/img/svg/lefttoolbar/door-style.svg +0 -20
  228. package/es/assets/img/svg/lefttoolbar/door.svg +0 -12
  229. package/es/assets/img/svg/lefttoolbar/error_icon.svg +0 -81
  230. package/es/assets/img/svg/lefttoolbar/finishing-active.svg +0 -13
  231. package/es/assets/img/svg/lefttoolbar/finishing.svg +0 -13
  232. package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +0 -86
  233. package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +0 -12
  234. package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +0 -3
  235. package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +0 -18
  236. package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +0 -12
  237. package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +0 -3
  238. package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +0 -3
  239. package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +0 -3
  240. package/es/assets/img/svg/lefttoolbar/room-shape.svg +0 -18
  241. package/es/assets/img/svg/lefttoolbar/search.svg +0 -76
  242. package/es/assets/img/svg/lefttoolbar/view_more.svg +0 -86
  243. package/es/assets/img/svg/lefttoolbar/warning_icon.svg +0 -81
  244. package/es/assets/img/svg/lefttoolbar/window.svg +0 -12
  245. package/es/assets/img/svg/logo.svg +0 -11
  246. package/es/assets/img/svg/logo_with_text.svg +0 -25
  247. package/es/assets/img/svg/menubar/login.svg +0 -84
  248. package/es/assets/img/svg/menubar/my_projects.svg +0 -85
  249. package/es/assets/img/svg/menubar/new_project.svg +0 -110
  250. package/es/assets/img/svg/menubar/save_project.svg +0 -84
  251. package/es/assets/img/svg/options.svg +0 -3
  252. package/es/assets/img/svg/positioning.svg +0 -3
  253. package/es/assets/img/svg/rotate.png +0 -0
  254. package/es/assets/img/svg/rotate.svg +0 -17
  255. package/es/assets/img/svg/rotate_object_clockwise.svg +0 -26
  256. package/es/assets/img/svg/rotate_object_counterclockwise.svg +0 -26
  257. package/es/assets/img/svg/toggleFilters.svg +0 -19
  258. package/es/assets/img/svg/toolbar/add_appliances_active.svg +0 -64
  259. package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +0 -52
  260. package/es/assets/img/svg/toolbar/add_button.svg +0 -36
  261. package/es/assets/img/svg/toolbar/add_cabinets_active.svg +0 -59
  262. package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +0 -49
  263. package/es/assets/img/svg/toolbar/add_items_doors.svg +0 -25
  264. package/es/assets/img/svg/toolbar/add_items_doorways.svg +0 -24
  265. package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +0 -32
  266. package/es/assets/img/svg/toolbar/add_items_windows.svg +0 -28
  267. package/es/assets/img/svg/toolbar/apply_button.svg +0 -38
  268. package/es/assets/img/svg/toolbar/arrow-plus.svg +0 -11
  269. package/es/assets/img/svg/toolbar/backsplash.svg +0 -8
  270. package/es/assets/img/svg/toolbar/cancel_button.svg +0 -37
  271. package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +0 -47
  272. package/es/assets/img/svg/toolbar/countertop.svg +0 -7
  273. package/es/assets/img/svg/toolbar/dcm.png +0 -0
  274. package/es/assets/img/svg/toolbar/dcm_off.svg +0 -12
  275. package/es/assets/img/svg/toolbar/dcm_on.svg +0 -474
  276. package/es/assets/img/svg/toolbar/delete_button.svg +0 -37
  277. package/es/assets/img/svg/toolbar/download.svg +0 -77
  278. package/es/assets/img/svg/toolbar/draw_custom_floor.svg +0 -31
  279. package/es/assets/img/svg/toolbar/edit_button.svg +0 -75
  280. package/es/assets/img/svg/toolbar/email_quote_button.svg +0 -44
  281. package/es/assets/img/svg/toolbar/fbm.png +0 -0
  282. package/es/assets/img/svg/toolbar/finishing_touches_active.svg +0 -54
  283. package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +0 -42
  284. package/es/assets/img/svg/toolbar/floorstyle.svg +0 -9
  285. package/es/assets/img/svg/toolbar/fmb.png +0 -0
  286. package/es/assets/img/svg/toolbar/fmb_off.svg +0 -12
  287. package/es/assets/img/svg/toolbar/fmb_on.svg +0 -489
  288. package/es/assets/img/svg/toolbar/furnishings_icon.svg +0 -6
  289. package/es/assets/img/svg/toolbar/get_started_button.svg +0 -41
  290. package/es/assets/img/svg/toolbar/handles.svg +0 -5
  291. package/es/assets/img/svg/toolbar/lighting.svg +0 -7
  292. package/es/assets/img/svg/toolbar/lrm.png +0 -0
  293. package/es/assets/img/svg/toolbar/lrm_off.svg +0 -12
  294. package/es/assets/img/svg/toolbar/lrm_on.svg +0 -470
  295. package/es/assets/img/svg/toolbar/make_floorplan_active.svg +0 -66
  296. package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +0 -52
  297. package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +0 -20
  298. package/es/assets/img/svg/toolbar/predefined_room_layout.svg +0 -20
  299. package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +0 -20
  300. package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +0 -20
  301. package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +0 -20
  302. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +0 -20
  303. package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +0 -20
  304. package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +0 -20
  305. package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +0 -20
  306. package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +0 -20
  307. package/es/assets/img/svg/toolbar/redo_button.svg +0 -75
  308. package/es/assets/img/svg/toolbar/redo_button1.svg +0 -75
  309. package/es/assets/img/svg/toolbar/review_quote_active.svg +0 -14
  310. package/es/assets/img/svg/toolbar/review_quote_inactive.svg +0 -44
  311. package/es/assets/img/svg/toolbar/save_project_button.svg +0 -44
  312. package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +0 -67
  313. package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +0 -57
  314. package/es/assets/img/svg/toolbar/shopping-cart.svg +0 -13
  315. package/es/assets/img/svg/toolbar/style_change_button.svg +0 -47
  316. package/es/assets/img/svg/toolbar/take_picture.svg +0 -75
  317. package/es/assets/img/svg/toolbar/undo_button.svg +0 -76
  318. package/es/assets/img/svg/toolbar/undo_button1.svg +0 -76
  319. package/es/assets/img/svg/toolbar/use_button.svg +0 -37
  320. package/es/assets/img/svg/toolbar/wall_color_icon.svg +0 -6
  321. package/es/assets/img/svg/topbar/edit_active.svg +0 -10
  322. package/es/assets/img/svg/topbar/edit_inactive.svg +0 -10
  323. package/es/assets/img/svg/topbar/redo_active.svg +0 -42
  324. package/es/assets/img/svg/topbar/redo_inactive.svg +0 -23
  325. package/es/assets/img/svg/topbar/select_all_active.svg +0 -50
  326. package/es/assets/img/svg/topbar/select_all_inactive.svg +0 -32
  327. package/es/assets/img/svg/topbar/take_picture_active.svg +0 -51
  328. package/es/assets/img/svg/topbar/take_picture_inactive.svg +0 -26
  329. package/es/assets/img/svg/topbar/undo_active.svg +0 -42
  330. package/es/assets/img/svg/topbar/undo_inactive.svg +0 -23
  331. package/es/assets/img/svg/warning_info_2d.svg +0 -81
  332. package/es/assets/img/svg/window/Clear.svg +0 -3
  333. package/es/assets/img/svg/window/Cross.svg +0 -5
  334. package/es/assets/img/svg/window/Double_hung.svg +0 -4
  335. package/es/assets/img/svg/window/Vertical.svg +0 -4
  336. package/es/assets/img/svg/windows_clear.svg +0 -23
  337. package/es/assets/img/svg/windows_cross.svg +0 -28
  338. package/es/assets/img/svg/windows_double_hung.svg +0 -24
  339. package/es/assets/img/svg/windows_vertical.svg +0 -24
  340. package/es/assets/img/svg/wizardstep/Custom.svg +0 -3
  341. package/es/assets/img/svg/wizardstep/Dashed_line.svg +0 -3
  342. package/es/assets/img/svg/wizardstep/L.svg +0 -3
  343. package/es/assets/img/svg/wizardstep/L2.svg +0 -3
  344. package/es/assets/img/svg/wizardstep/Open.svg +0 -3
  345. package/es/assets/img/svg/wizardstep/Square.svg +0 -3
  346. package/es/assets/img/svg/wizardstep/bar-active.svg +0 -9
  347. package/es/assets/img/svg/wizardstep/bar-normal.svg +0 -3
  348. package/es/assets/img/svg/wizardstep/bullet-current.svg +0 -3
  349. package/es/assets/img/svg/wizardstep/bullet-done.svg +0 -3
  350. package/es/assets/img/svg/wizardstep/bullet-not-done.svg +0 -3
  351. package/es/assets/img/svg/wizardstep/check-active.svg +0 -3
  352. package/es/assets/img/svg/wizardstep/check-normal.svg +0 -3
  353. package/es/assets/img/svg/wizardstep/detail_view.svg +0 -87
  354. package/es/assets/img/svg/wizardstep/pencil.svg +0 -11
  355. package/es/assets/img/svg/wizardstep/tile_view.svg +0 -95
  356. package/es/assets/img/texture/glass.jpg +0 -0
  357. package/es/assets/img/texture/steel.jpg +0 -0
  358. package/es/assets/img/texture/white1px.jpg +0 -0
  359. package/es/assets/img/texture/wood.jpg +0 -0
  360. package/es/assets/model/DCM.bin +0 -0
  361. package/es/assets/model/DCM.fbx +0 -0
  362. package/es/assets/model/DCM.gltf +0 -1
  363. package/es/assets/model/FBM.bin +0 -0
  364. package/es/assets/model/FBM.fbx +0 -0
  365. package/es/assets/model/FBM.gltf +0 -1
  366. package/es/assets/model/LRM.bin +0 -0
  367. package/es/assets/model/LRM.fbx +0 -0
  368. package/es/assets/model/LRM.gltf +0 -1
  369. package/es/assets/rtastore_logo.png +0 -0
  370. package/es/catalog/areas/area/planner-element.js +0 -45
  371. package/es/catalog/back.png +0 -0
  372. package/es/catalog/catalog.js +0 -265
  373. package/es/catalog/doors.png +0 -0
  374. package/es/catalog/doorways.png +0 -0
  375. package/es/catalog/envMap/nx.hdr +0 -0
  376. package/es/catalog/envMap/ny.hdr +0 -0
  377. package/es/catalog/envMap/nz.hdr +0 -0
  378. package/es/catalog/envMap/px.hdr +0 -0
  379. package/es/catalog/envMap/py.hdr +0 -0
  380. package/es/catalog/envMap/pz.hdr +0 -0
  381. package/es/catalog/export.js +0 -0
  382. package/es/catalog/factories/area-factory-3d.js +0 -182
  383. package/es/catalog/factories/area-factory.js +0 -78
  384. package/es/catalog/factories/export.js +0 -7
  385. package/es/catalog/factories/wall-factory-3d.js +0 -202
  386. package/es/catalog/factories/wall-factory.js +0 -267
  387. package/es/catalog/holes/door-closet/planner-element.js +0 -222
  388. package/es/catalog/holes/door-double/door_double.png +0 -0
  389. package/es/catalog/holes/door-double/planner-element.js +0 -315
  390. package/es/catalog/holes/door-exterior/planner-element.js +0 -215
  391. package/es/catalog/holes/door-interior/planner-element.js +0 -227
  392. package/es/catalog/holes/door-panic/panicDoor.png +0 -0
  393. package/es/catalog/holes/door-panic/planner-element.js +0 -503
  394. package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
  395. package/es/catalog/holes/door-panic-double/planner-element.js +0 -463
  396. package/es/catalog/holes/door-sliding/planner-element.js +0 -225
  397. package/es/catalog/holes/doorway-framed/planner-element.js +0 -145
  398. package/es/catalog/holes/doorway-frameless/planner-element.js +0 -104
  399. package/es/catalog/holes/export.js +0 -13
  400. package/es/catalog/holes/gate/gate.jpg +0 -0
  401. package/es/catalog/holes/window-clear/planner-element.js +0 -166
  402. package/es/catalog/holes/window-clear/texture.png +0 -0
  403. package/es/catalog/holes/window-cross/planner-element.js +0 -165
  404. package/es/catalog/holes/window-cross/texture.png +0 -0
  405. package/es/catalog/holes/window-double-hung/planner-element.js +0 -303
  406. package/es/catalog/holes/window-double-hung/texture.png +0 -0
  407. package/es/catalog/holes/window-vertical/planner-element.js +0 -276
  408. package/es/catalog/holes/window-vertical/texture.png +0 -0
  409. package/es/catalog/lines/wall/planner-element.js +0 -79
  410. package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
  411. package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
  412. package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
  413. package/es/catalog/molding/molding-dcm/planner-element.js +0 -26
  414. package/es/catalog/molding/molding-dcm/texture.png +0 -0
  415. package/es/catalog/molding/molding-fbm/planner-element.js +0 -26
  416. package/es/catalog/molding/molding-fbm/texture.png +0 -0
  417. package/es/catalog/molding/molding-lrm/planner-element.js +0 -26
  418. package/es/catalog/molding/molding-lrm/texture.png +0 -0
  419. package/es/catalog/properties/export.js +0 -21
  420. package/es/catalog/properties/property-checkbox.js +0 -68
  421. package/es/catalog/properties/property-color.js +0 -39
  422. package/es/catalog/properties/property-enum.js +0 -50
  423. package/es/catalog/properties/property-hidden.js +0 -19
  424. package/es/catalog/properties/property-lenght-measure.js +0 -96
  425. package/es/catalog/properties/property-length-measure.js +0 -80
  426. package/es/catalog/properties/property-length-measure_hole.js +0 -96
  427. package/es/catalog/properties/property-number.js +0 -48
  428. package/es/catalog/properties/property-read-only.js +0 -26
  429. package/es/catalog/properties/property-string.js +0 -48
  430. package/es/catalog/properties/property-toggle.js +0 -39
  431. package/es/catalog/properties/shared-property-style.js +0 -14
  432. package/es/catalog/utils/FuseUtils.js +0 -79
  433. package/es/catalog/utils/exporter.js +0 -161
  434. package/es/catalog/utils/geom-utils.js +0 -189
  435. package/es/catalog/utils/item-loader.js +0 -1602
  436. package/es/catalog/utils/load-obj.js +0 -91
  437. package/es/catalog/utils/mtl-loader.js +0 -357
  438. package/es/catalog/utils/obj-loader.js +0 -476
  439. package/es/catalog/windows.png +0 -0
  440. package/es/class/FuseUtils.js +0 -79
  441. package/es/class/area.js +0 -141
  442. package/es/class/export.js +0 -24
  443. package/es/class/group.js +0 -431
  444. package/es/class/guide.js +0 -58
  445. package/es/class/hole.js +0 -924
  446. package/es/class/item.js +0 -1884
  447. package/es/class/layer.js +0 -663
  448. package/es/class/line.js +0 -1229
  449. package/es/class/project.js +0 -937
  450. package/es/class/vertex.js +0 -198
  451. package/es/components/content.js +0 -135
  452. package/es/components/export.js +0 -9
  453. package/es/components/style/button.js +0 -106
  454. package/es/components/style/cancel-button.js +0 -21
  455. package/es/components/style/content-container.js +0 -30
  456. package/es/components/style/content-title.js +0 -25
  457. package/es/components/style/delete-button.js +0 -24
  458. package/es/components/style/export.js +0 -31
  459. package/es/components/style/form-block.js +0 -20
  460. package/es/components/style/form-color-input.js +0 -26
  461. package/es/components/style/form-label.js +0 -22
  462. package/es/components/style/form-number-input.js +0 -192
  463. package/es/components/style/form-number-input_2.js +0 -238
  464. package/es/components/style/form-select.js +0 -19
  465. package/es/components/style/form-slider.js +0 -60
  466. package/es/components/style/form-submit-button.js +0 -25
  467. package/es/components/style/form-text-input.js +0 -69
  468. package/es/components/viewer2d/area.js +0 -81
  469. package/es/components/viewer2d/export.js +0 -31
  470. package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -36
  471. package/es/components/viewer2d/grids/grid-streak.js +0 -36
  472. package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -36
  473. package/es/components/viewer2d/grids/grids.js +0 -30
  474. package/es/components/viewer2d/group.js +0 -48
  475. package/es/components/viewer2d/item.js +0 -242
  476. package/es/components/viewer2d/layer.js +0 -164
  477. package/es/components/viewer2d/line.js +0 -997
  478. package/es/components/viewer2d/ruler.js +0 -84
  479. package/es/components/viewer2d/rulerDist.js +0 -102
  480. package/es/components/viewer2d/rulerX.js +0 -142
  481. package/es/components/viewer2d/rulerY.js +0 -144
  482. package/es/components/viewer2d/scene.js +0 -108
  483. package/es/components/viewer2d/snap.js +0 -74
  484. package/es/components/viewer2d/state.js +0 -73
  485. package/es/components/viewer2d/utils.js +0 -193
  486. package/es/components/viewer2d/vertex.js +0 -66
  487. package/es/components/viewer2d/viewer2d.js +0 -1405
  488. package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2585
  489. package/es/components/viewer3d/dcm.js +0 -401
  490. package/es/components/viewer3d/fbm.js +0 -414
  491. package/es/components/viewer3d/front3D.js +0 -62
  492. package/es/components/viewer3d/grid-creator.js +0 -25
  493. package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -36
  494. package/es/components/viewer3d/grids/grid-streak.js +0 -27
  495. package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -36
  496. package/es/components/viewer3d/libs/first-person-controls.js +0 -67
  497. package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1281
  498. package/es/components/viewer3d/libs/mtl-loader.js +0 -357
  499. package/es/components/viewer3d/libs/obj-loader.js +0 -462
  500. package/es/components/viewer3d/libs/orbit-controls.js +0 -697
  501. package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -44
  502. package/es/components/viewer3d/lrm.js +0 -305
  503. package/es/components/viewer3d/model.js +0 -708
  504. package/es/components/viewer3d/pointer-lock-navigation.js +0 -115
  505. package/es/components/viewer3d/ruler-utils/itemRect.js +0 -61
  506. package/es/components/viewer3d/ruler-utils/layer3D.js +0 -495
  507. package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -224
  508. package/es/components/viewer3d/ruler-utils/scene3D.js +0 -59
  509. package/es/components/viewer3d/ruler-utils/state3D.js +0 -18
  510. package/es/components/viewer3d/scene-creator.js +0 -3818
  511. package/es/components/viewer3d/three-memory-cleaner.js +0 -51
  512. package/es/components/viewer3d/viewer3d-first-person.js +0 -311
  513. package/es/components/viewer3d/viewer3d.js +0 -2654
  514. package/es/constants.js +0 -769
  515. package/es/index.html.ejs +0 -264
  516. package/es/models.js +0 -512
  517. package/es/plugins/SVGLoader.js +0 -1414
  518. package/es/plugins/console-debugger.js +0 -34
  519. package/es/plugins/export.js +0 -7
  520. package/es/plugins/keyboard.js +0 -110
  521. package/es/reducers/areas-reducer.js +0 -12
  522. package/es/reducers/export.js +0 -25
  523. package/es/reducers/groups-reducer.js +0 -38
  524. package/es/reducers/holes-reducer.js +0 -62
  525. package/es/reducers/items-reducer.js +0 -143
  526. package/es/reducers/lines-reducer.js +0 -45
  527. package/es/reducers/project-reducer.js +0 -136
  528. package/es/reducers/reducer.js +0 -19
  529. package/es/reducers/scene-reducer.js +0 -28
  530. package/es/reducers/user-reducer.js +0 -41
  531. package/es/reducers/vertices-reducer.js +0 -19
  532. package/es/reducers/viewer2d-reducer.js +0 -77
  533. package/es/reducers/viewer3d-reducer.js +0 -58
  534. package/es/shared-style.js +0 -66
  535. package/es/translator/en.js +0 -104
  536. package/es/translator/it.js +0 -79
  537. package/es/translator/ru.js +0 -79
  538. package/es/translator/translator.js +0 -80
  539. package/es/utils/browser.js +0 -33
  540. package/es/utils/convert-units-lite.js +0 -29
  541. package/es/utils/email-validator.js +0 -4
  542. package/es/utils/export.js +0 -25
  543. package/es/utils/geometry.js +0 -2609
  544. package/es/utils/get-edges-of-subgraphs.js +0 -26
  545. package/es/utils/graph-cycles.js +0 -238
  546. package/es/utils/graph-inner-cycles.js +0 -46
  547. package/es/utils/graph.js +0 -145
  548. package/es/utils/helper.js +0 -436
  549. package/es/utils/history.js +0 -29
  550. package/es/utils/id-broker.js +0 -15
  551. package/es/utils/isolate-event-handler.js +0 -1622
  552. package/es/utils/logger.js +0 -8
  553. package/es/utils/math.js +0 -50
  554. package/es/utils/molding.js +0 -1347
  555. package/es/utils/name-generator.js +0 -17
  556. package/es/utils/objects-utils.js +0 -50
  557. package/es/utils/phone-validator.js +0 -4
  558. package/es/utils/process-black-list.js +0 -15
  559. package/es/utils/react-if.js +0 -18
  560. package/es/utils/ruler.js +0 -58
  561. package/es/utils/snap-scene.js +0 -94
  562. package/es/utils/snap.js +0 -231
  563. package/es/utils/summarizeCart.js +0 -24
  564. package/es/utils/threeCSG.es6.js +0 -494
  565. package/es/version.js +0 -1
  566. /package/es/{catalog/lines/wall/textures/plaster-normal.jpg → 1fc74a85baa030dbc913.jpg} +0 -0
  567. /package/es/{catalog/lines/wall/wall.png → 30a49a74d9bd10068b65.png} +0 -0
  568. /package/es/{catalog/lines/wall/textures/bricks-normal2.jpg → 340a84d3930143a53545.jpg} +0 -0
  569. /package/es/{catalog/lines/wall/textures/morden-normal.jpg → 5c8d36b3e7223934f447.jpg} +0 -0
  570. /package/es/{catalog/lines/wall/textures/bricks-normal.jpg → 81e7a7e6edf162e88b44.jpg} +0 -0
  571. /package/es/{catalog/lines/wall/textures/morden.jpg → 8fe0f1210d8ba435a790.jpg} +0 -0
  572. /package/es/{catalog/lines/wall/textures/bricks.jpg → a07d30a04bda8ee03491.jpg} +0 -0
  573. /package/es/{catalog/lines/wall/textures/painted.jpg → bee3f62687a97bcc3d9f.jpg} +0 -0
  574. /package/es/{catalog/areas/area/textures/strand-porcelain.jpg → c232d250fd899392b1b7.jpg} +0 -0
  575. /package/es/{catalog/areas/area/textures/tile1.jpg → c7ae6f4de09134ebe588.jpg} +0 -0
  576. /package/es/{catalog/lines/wall/textures/plaster.jpg → dad5ee758630256ee702.jpg} +0 -0
  577. /package/es/{catalog/areas/area/textures/grass.jpg → e470a2ce76062955fa98.jpg} +0 -0
  578. /package/es/{catalog/areas/area/textures/parquet.jpg → e5ae13166775e7d071e4.jpg} +0 -0
  579. /package/es/{catalog/areas/area/textures/ceramic-tile.jpg → e8e5de0892f5375460bd.jpg} +0 -0
@@ -1,494 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- /*jshint esversion: 6 */
4
- import * as THREE from 'three';
5
- var EPSILON = 1e-5,
6
- COPLANAR = 0,
7
- FRONT = 1,
8
- BACK = 2,
9
- SPANNING = 3;
10
- var ThreeBSP = /*#__PURE__*/function () {
11
- function ThreeBSP(geometry) {
12
- _classCallCheck(this, ThreeBSP);
13
- // Convert THREE.Geometry to ThreeBSP
14
- var i,
15
- _length_i,
16
- face,
17
- vertex,
18
- faceVertexUvs,
19
- uvs,
20
- polygon,
21
- polygons = [],
22
- tree;
23
- this.Polygon = Polygon;
24
- this.Vertex = Vertex;
25
- this.Node = Node;
26
- if (geometry instanceof THREE.BufferGeometry) {
27
- this.matrix = new THREE.Matrix4();
28
- } else if (geometry instanceof THREE.Mesh) {
29
- // #todo: add hierarchy support
30
- geometry.updateMatrix();
31
- this.matrix = geometry.matrix.clone();
32
- geometry = geometry.geometry;
33
- } else if (geometry instanceof Node) {
34
- this.tree = geometry;
35
- this.matrix = new THREE.Matrix4();
36
- return this;
37
- } else {
38
- throw 'ThreeBSP: Given geometry is unsupported';
39
- }
40
- // Retrieve attributes and indices
41
- var positionAttribute = geometry.attributes.position;
42
- var normalAttribute = geometry.attributes.normal;
43
- var uvAttribute = geometry.attributes.uv;
44
- var indexAttribute = geometry.index;
45
- for (var _i = 0; _i < indexAttribute.count; _i += 3) {
46
- polygon = new Polygon();
47
- for (var j = 0; j < 3; j++) {
48
- var index = indexAttribute.getX(_i + j);
49
- var _vertex = new THREE.Vector3().fromBufferAttribute(positionAttribute, index);
50
- var normal = new THREE.Vector3().fromBufferAttribute(normalAttribute, index);
51
- var _uvs = uvAttribute ? new THREE.Vector2().fromBufferAttribute(uvAttribute, index) : null;
52
- var vertexData = new Vertex(_vertex.x, _vertex.y, _vertex.z, normal, _uvs);
53
- vertexData.applyMatrix4(this.matrix);
54
- polygon.vertices.push(vertexData);
55
- }
56
- polygon.calculateProperties();
57
- polygons.push(polygon);
58
- }
59
- this.tree = new Node(polygons);
60
- }
61
- return _createClass(ThreeBSP, [{
62
- key: "subtract",
63
- value: function subtract(other_tree) {
64
- var a = this.tree.clone(),
65
- b = other_tree.tree.clone();
66
- a.invert();
67
- a.clipTo(b);
68
- b.clipTo(a);
69
- b.invert();
70
- b.clipTo(a);
71
- b.invert();
72
- a.build(b.allPolygons());
73
- a.invert();
74
- a = new ThreeBSP(a);
75
- a.matrix = this.matrix;
76
- return a;
77
- }
78
- }, {
79
- key: "union",
80
- value: function union(other_tree) {
81
- var a = this.tree.clone(),
82
- b = other_tree.tree.clone();
83
- a.clipTo(b);
84
- b.clipTo(a);
85
- b.invert();
86
- b.clipTo(a);
87
- b.invert();
88
- a.build(b.allPolygons());
89
- a = new ThreeBSP(a);
90
- a.matrix = this.matrix;
91
- return a;
92
- }
93
- }, {
94
- key: "intersect",
95
- value: function intersect(other_tree) {
96
- var a = this.tree.clone(),
97
- b = other_tree.tree.clone();
98
- a.invert();
99
- b.clipTo(a);
100
- b.invert();
101
- a.clipTo(b);
102
- b.clipTo(a);
103
- a.build(b.allPolygons());
104
- a.invert();
105
- a = new ThreeBSP(a);
106
- a.matrix = this.matrix;
107
- return a;
108
- }
109
- }, {
110
- key: "toGeometry",
111
- value: function toGeometry() {
112
- var matrix = new THREE.Matrix4().copy(this.matrix).invert();
113
- var geometry = new THREE.BufferGeometry();
114
- var polygons = this.tree.allPolygons();
115
- var verticeDict = new Map();
116
- var positions = [];
117
- var normals = [];
118
- var uvs = [];
119
- var indices = [];
120
- polygons.forEach(function (polygon) {
121
- var polygonVertices = polygon.vertices;
122
- var _loop = function _loop() {
123
- var verts = [polygonVertices[0], polygonVertices[j - 1], polygonVertices[j]];
124
- var verticeIndices = [];
125
- verts.forEach(function (vertex) {
126
- var vector = new THREE.Vector3(vertex.x, vertex.y, vertex.z).applyMatrix4(matrix);
127
- var verticeIndex = positions.length / 3;
128
- verticeIndices.push(verticeIndex);
129
- positions.push(vector.x, vector.y, vector.z);
130
- normals.push(vertex.normal.x, vertex.normal.y, vertex.normal.z);
131
- uvs.push(vertex.uv.x, vertex.uv.y);
132
- });
133
- indices.push(verticeIndices[0], verticeIndices[1], verticeIndices[2]);
134
- };
135
- for (var j = 2; j < polygonVertices.length; j++) {
136
- _loop();
137
- }
138
- });
139
- geometry.setAttribute('position', new THREE.Float32BufferAttribute(positions, 3));
140
- geometry.setAttribute('normal', new THREE.Float32BufferAttribute(normals, 3));
141
- geometry.setAttribute('uv', new THREE.Float32BufferAttribute(uvs, 2));
142
- geometry.setIndex(indices);
143
- return geometry;
144
- }
145
- }, {
146
- key: "toMesh",
147
- value: function toMesh(material) {
148
- var geometry = this.toGeometry(),
149
- mesh = new THREE.Mesh(geometry, material);
150
- mesh.position.setFromMatrixPosition(this.matrix);
151
- mesh.rotation.setFromRotationMatrix(this.matrix);
152
- return mesh;
153
- }
154
- }]);
155
- }();
156
- export { ThreeBSP as default };
157
- var Polygon = /*#__PURE__*/function () {
158
- function Polygon(vertices, normal, w) {
159
- _classCallCheck(this, Polygon);
160
- if (!(vertices instanceof Array)) {
161
- vertices = [];
162
- }
163
- this.vertices = vertices;
164
- if (vertices.length > 0) {
165
- this.calculateProperties();
166
- } else {
167
- this.normal = this.w = undefined;
168
- }
169
- }
170
- return _createClass(Polygon, [{
171
- key: "calculateProperties",
172
- value: function calculateProperties() {
173
- var a = this.vertices[0],
174
- b = this.vertices[1],
175
- c = this.vertices[2];
176
- this.normal = b.clone().subtract(a).cross(c.clone().subtract(a)).normalize();
177
- this.w = this.normal.clone().dot(a);
178
- return this;
179
- }
180
- }, {
181
- key: "clone",
182
- value: function clone() {
183
- var i,
184
- vertice_count,
185
- polygon = new Polygon();
186
- for (i = 0, vertice_count = this.vertices.length; i < vertice_count; i++) {
187
- polygon.vertices.push(this.vertices[i].clone());
188
- }
189
- polygon.calculateProperties();
190
- return polygon;
191
- }
192
- }, {
193
- key: "flip",
194
- value: function flip() {
195
- var i,
196
- vertices = [];
197
- this.normal.multiplyScalar(-1);
198
- this.w *= -1;
199
- for (i = this.vertices.length - 1; i >= 0; i--) {
200
- vertices.push(this.vertices[i]);
201
- }
202
- this.vertices = vertices;
203
- return this;
204
- }
205
- }, {
206
- key: "classifyVertex",
207
- value: function classifyVertex(vertex) {
208
- var side_value = this.normal.dot(vertex) - this.w;
209
- if (side_value < -EPSILON) {
210
- return BACK;
211
- } else if (side_value > EPSILON) {
212
- return FRONT;
213
- } else {
214
- return COPLANAR;
215
- }
216
- }
217
- }, {
218
- key: "classifySide",
219
- value: function classifySide(polygon) {
220
- var i,
221
- vertex,
222
- classification,
223
- num_positive = 0,
224
- num_negative = 0,
225
- vertice_count = polygon.vertices.length;
226
- for (i = 0; i < vertice_count; i++) {
227
- vertex = polygon.vertices[i];
228
- classification = this.classifyVertex(vertex);
229
- if (classification === FRONT) {
230
- num_positive++;
231
- } else if (classification === BACK) {
232
- num_negative++;
233
- }
234
- }
235
- if (num_positive > 0 && num_negative === 0) {
236
- return FRONT;
237
- } else if (num_positive === 0 && num_negative > 0) {
238
- return BACK;
239
- } else if (num_positive === 0 && num_negative === 0) {
240
- return COPLANAR;
241
- } else {
242
- return SPANNING;
243
- }
244
- }
245
- }, {
246
- key: "splitPolygon",
247
- value: function splitPolygon(polygon, coplanar_front, coplanar_back, front, back) {
248
- var classification = this.classifySide(polygon);
249
- if (classification === COPLANAR) {
250
- (this.normal.dot(polygon.normal) > 0 ? coplanar_front : coplanar_back).push(polygon);
251
- } else if (classification === FRONT) {
252
- front.push(polygon);
253
- } else if (classification === BACK) {
254
- back.push(polygon);
255
- } else {
256
- var vertice_count,
257
- i,
258
- j,
259
- ti,
260
- tj,
261
- vi,
262
- vj,
263
- t,
264
- v,
265
- f = [],
266
- b = [];
267
- for (i = 0, vertice_count = polygon.vertices.length; i < vertice_count; i++) {
268
- j = (i + 1) % vertice_count;
269
- vi = polygon.vertices[i];
270
- vj = polygon.vertices[j];
271
- ti = this.classifyVertex(vi);
272
- tj = this.classifyVertex(vj);
273
- if (ti != BACK) f.push(vi);
274
- if (ti != FRONT) b.push(vi);
275
- if ((ti | tj) === SPANNING) {
276
- t = (this.w - this.normal.dot(vi)) / this.normal.dot(vj.clone().subtract(vi));
277
- v = vi.interpolate(vj, t);
278
- f.push(v);
279
- b.push(v);
280
- }
281
- }
282
- if (f.length >= 3) front.push(new Polygon(f).calculateProperties());
283
- if (b.length >= 3) back.push(new Polygon(b).calculateProperties());
284
- }
285
- }
286
- }]);
287
- }();
288
- var Vertex = /*#__PURE__*/function () {
289
- function Vertex(x, y, z, normal, uv) {
290
- _classCallCheck(this, Vertex);
291
- this.x = x;
292
- this.y = y;
293
- this.z = z;
294
- this.normal = normal || new THREE.Vector3();
295
- this.uv = uv || new THREE.Vector2();
296
- }
297
- return _createClass(Vertex, [{
298
- key: "clone",
299
- value: function clone() {
300
- return new Vertex(this.x, this.y, this.z, this.normal.clone(), this.uv.clone());
301
- }
302
- }, {
303
- key: "add",
304
- value: function add(vertex) {
305
- this.x += vertex.x;
306
- this.y += vertex.y;
307
- this.z += vertex.z;
308
- return this;
309
- }
310
- }, {
311
- key: "subtract",
312
- value: function subtract(vertex) {
313
- this.x -= vertex.x;
314
- this.y -= vertex.y;
315
- this.z -= vertex.z;
316
- return this;
317
- }
318
- }, {
319
- key: "multiplyScalar",
320
- value: function multiplyScalar(scalar) {
321
- this.x *= scalar;
322
- this.y *= scalar;
323
- this.z *= scalar;
324
- return this;
325
- }
326
- }, {
327
- key: "cross",
328
- value: function cross(vertex) {
329
- var x = this.x,
330
- y = this.y,
331
- z = this.z;
332
- this.x = y * vertex.z - z * vertex.y;
333
- this.y = z * vertex.x - x * vertex.z;
334
- this.z = x * vertex.y - y * vertex.x;
335
- return this;
336
- }
337
- }, {
338
- key: "normalize",
339
- value: function normalize() {
340
- var length = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);
341
- this.x /= length;
342
- this.y /= length;
343
- this.z /= length;
344
- return this;
345
- }
346
- }, {
347
- key: "dot",
348
- value: function dot(vertex) {
349
- return this.x * vertex.x + this.y * vertex.y + this.z * vertex.z;
350
- }
351
- }, {
352
- key: "lerp",
353
- value: function lerp(a, t) {
354
- this.add(a.clone().subtract(this).multiplyScalar(t));
355
- this.normal.add(a.normal.clone().sub(this.normal).multiplyScalar(t));
356
- this.uv.add(a.uv.clone().sub(this.uv).multiplyScalar(t));
357
- return this;
358
- }
359
- }, {
360
- key: "interpolate",
361
- value: function interpolate(other, t) {
362
- return this.clone().lerp(other, t);
363
- }
364
- }, {
365
- key: "applyMatrix4",
366
- value: function applyMatrix4(m) {
367
- // input: THREE.Matrix4 affine matrix
368
-
369
- var x = this.x,
370
- y = this.y,
371
- z = this.z;
372
- var e = m.elements;
373
- this.x = e[0] * x + e[4] * y + e[8] * z + e[12];
374
- this.y = e[1] * x + e[5] * y + e[9] * z + e[13];
375
- this.z = e[2] * x + e[6] * y + e[10] * z + e[14];
376
- return this;
377
- }
378
- }]);
379
- }();
380
- var Node = /*#__PURE__*/function () {
381
- function Node(polygons) {
382
- _classCallCheck(this, Node);
383
- var i,
384
- polygon_count,
385
- front = [],
386
- back = [];
387
- this.polygons = [];
388
- this.front = this.back = undefined;
389
- if (!(polygons instanceof Array) || polygons.length === 0) return;
390
- this.divider = polygons[0].clone();
391
- for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {
392
- this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);
393
- }
394
- if (front.length > 0) {
395
- this.front = new Node(front);
396
- }
397
- if (back.length > 0) {
398
- this.back = new Node(back);
399
- }
400
- }
401
- return _createClass(Node, [{
402
- key: "isConvex",
403
- value: function isConvex(polygons) {
404
- var i, j;
405
- for (i = 0; i < polygons.length; i++) {
406
- for (j = 0; j < polygons.length; j++) {
407
- if (i !== j && polygons[i].classifySide(polygons[j]) !== BACK) {
408
- return false;
409
- }
410
- }
411
- }
412
- return true;
413
- }
414
- }, {
415
- key: "build",
416
- value: function build(polygons) {
417
- var i,
418
- polygon_count,
419
- front = [],
420
- back = [];
421
- if (!this.divider) {
422
- this.divider = polygons[0].clone();
423
- }
424
- for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {
425
- this.divider.splitPolygon(polygons[i], this.polygons, this.polygons, front, back);
426
- }
427
- if (front.length > 0) {
428
- if (!this.front) this.front = new Node();
429
- this.front.build(front);
430
- }
431
- if (back.length > 0) {
432
- if (!this.back) this.back = new Node();
433
- this.back.build(back);
434
- }
435
- }
436
- }, {
437
- key: "allPolygons",
438
- value: function allPolygons() {
439
- var polygons = this.polygons.slice();
440
- if (this.front) polygons = polygons.concat(this.front.allPolygons());
441
- if (this.back) polygons = polygons.concat(this.back.allPolygons());
442
- return polygons;
443
- }
444
- }, {
445
- key: "clone",
446
- value: function clone() {
447
- var node = new Node();
448
- node.divider = this.divider.clone();
449
- node.polygons = this.polygons.map(function (polygon) {
450
- return polygon.clone();
451
- });
452
- node.front = this.front && this.front.clone();
453
- node.back = this.back && this.back.clone();
454
- return node;
455
- }
456
- }, {
457
- key: "invert",
458
- value: function invert() {
459
- var i, polygon_count, temp;
460
- for (i = 0, polygon_count = this.polygons.length; i < polygon_count; i++) {
461
- this.polygons[i].flip();
462
- }
463
- this.divider.flip();
464
- if (this.front) this.front.invert();
465
- if (this.back) this.back.invert();
466
- temp = this.front;
467
- this.front = this.back;
468
- this.back = temp;
469
- return this;
470
- }
471
- }, {
472
- key: "clipPolygons",
473
- value: function clipPolygons(polygons) {
474
- var i, polygon_count, front, back;
475
- if (!this.divider) return polygons.slice();
476
- front = [];
477
- back = [];
478
- for (i = 0, polygon_count = polygons.length; i < polygon_count; i++) {
479
- this.divider.splitPolygon(polygons[i], front, back, front, back);
480
- }
481
- if (this.front) front = this.front.clipPolygons(front);
482
- if (this.back) back = this.back.clipPolygons(back);else back = [];
483
- return front.concat(back);
484
- }
485
- }, {
486
- key: "clipTo",
487
- value: function clipTo(node) {
488
- this.polygons = node.clipPolygons(this.polygons);
489
- if (this.front) this.front.clipTo(node);
490
- if (this.back) this.back.clipTo(node);
491
- }
492
- }]);
493
- }();
494
- window.ThreeBSP = ThreeBSP;
package/es/version.js DELETED
@@ -1 +0,0 @@
1
- export var VERSION = '1.0.0';