kitchen-simulator 1.1.1-test.8 → 1.1.1-test.82
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.
- package/README.md +24 -1
- package/es/{KitchenConfigurator.js → LiteKitchenConfigurator.js} +45 -66
- package/es/{KitchenConfiguratorApp.js → LiteRenderer.js} +65 -83
- package/es/actions/export.js +4 -2
- package/es/analytics/ga4.js +1 -4
- package/es/assets/Window.hdr +2100 -0
- package/es/assets/brown_photostudio_02_1k.hdr +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
- package/es/assets/fonts/style.css +177 -0
- package/es/assets/gltf/door_closet.bin +0 -0
- package/es/assets/gltf/door_closet.fbx +0 -0
- package/es/assets/gltf/door_closet.gltf +1 -0
- package/es/assets/gltf/door_exterior.bin +0 -0
- package/es/assets/gltf/door_exterior.fbx +0 -0
- package/es/assets/gltf/door_exterior.gltf +1 -0
- package/es/assets/gltf/door_interior.bin +0 -0
- package/es/assets/gltf/door_interior.fbx +0 -0
- package/es/assets/gltf/door_interior.gltf +1 -0
- package/es/assets/gltf/door_sliding.bin +0 -0
- package/es/assets/gltf/door_sliding.fbx +0 -0
- package/es/assets/gltf/door_sliding.gltf +1 -0
- package/es/assets/gltf/doorway_framed.bin +0 -0
- package/es/assets/gltf/doorway_framed.fbx +0 -0
- package/es/assets/gltf/doorway_framed.gltf +1 -0
- package/es/assets/gltf/window_clear.bin +0 -0
- package/es/assets/gltf/window_clear.fbx +0 -0
- package/es/assets/gltf/window_clear.gltf +1 -0
- package/es/assets/gltf/window_cross.bin +0 -0
- package/es/assets/gltf/window_cross.fbx +0 -0
- package/es/assets/gltf/window_cross.gltf +1 -0
- package/es/assets/gltf/window_double_hung.bin +0 -0
- package/es/assets/gltf/window_double_hung.fbx +0 -0
- package/es/assets/gltf/window_double_hung.gltf +1 -0
- package/es/assets/gltf/window_vertical.bin +0 -0
- package/es/assets/gltf/window_vertical.fbx +0 -0
- package/es/assets/gltf/window_vertical.gltf +1 -0
- package/es/assets/img/1.jpg +0 -0
- package/es/assets/img/TKC_thumbnail.png +0 -0
- package/es/assets/img/Toggle.png +0 -0
- package/es/assets/img/loading/loading.gif +0 -0
- package/es/assets/img/loading/loading_1.svg +11 -0
- package/es/assets/img/loading_large.gif +0 -0
- package/es/assets/img/png/door/closet.png +0 -0
- package/es/assets/img/png/door/doorwaysframed.png +0 -0
- package/es/assets/img/png/door/doorwaysframeles.png +0 -0
- package/es/assets/img/png/door/doorwaysframeless.png +0 -0
- package/es/assets/img/png/door/exterior.png +0 -0
- package/es/assets/img/png/door/interior.png +0 -0
- package/es/assets/img/png/door/sliding.png +0 -0
- package/es/assets/img/png/helper/outcome.png +0 -0
- package/es/assets/img/png/helper/video_preview_3d.png +0 -0
- package/es/assets/img/png/helper/video_preview_start.png +0 -0
- package/es/assets/img/project_img.png +0 -0
- package/es/assets/img/rta/rta_logo_box_blue.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
- package/es/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_lightblue.png +0 -0
- package/es/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
- package/es/assets/img/rta/rta_logo_box_maroon.png +0 -0
- package/es/assets/img/rta/rta_logo_box_white.png +0 -0
- package/es/assets/img/rta_menu.png +0 -0
- package/es/assets/img/step2.jpg +0 -0
- package/es/assets/img/step3.jpg +0 -0
- package/es/assets/img/step4.jpg +0 -0
- package/es/assets/img/step5.jpg +0 -0
- package/es/assets/img/step6.jpg +0 -0
- package/es/assets/img/step7.jpg +0 -0
- package/es/assets/img/step8.jpg +0 -0
- package/es/assets/img/svg/2d_delete_object.svg +33 -0
- package/es/assets/img/svg/2d_delete_object1.svg +33 -0
- package/es/assets/img/svg/2d_lock_object.svg +33 -0
- package/es/assets/img/svg/3d_item_move.svg +106 -0
- package/es/assets/img/svg/3d_item_rotation.svg +76 -0
- package/es/assets/img/svg/3d_item_warning_edit.svg +77 -0
- package/es/assets/img/svg/3d_item_warning_info.svg +81 -0
- package/es/assets/img/svg/accessories.svg +4 -0
- package/es/assets/img/svg/angle_icon.svg +39 -0
- package/es/assets/img/svg/blank_div.svg +14 -0
- package/es/assets/img/svg/bottombar/2d3d_button.svg +3 -0
- package/es/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
- package/es/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
- package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
- package/es/assets/img/svg/bottombar/arrow-down.svg +3 -0
- package/es/assets/img/svg/bottombar/arrow-left.svg +3 -0
- package/es/assets/img/svg/bottombar/arrow-minus.svg +3 -0
- package/es/assets/img/svg/bottombar/arrow-plus.svg +11 -0
- package/es/assets/img/svg/bottombar/arrow-right.svg +3 -0
- package/es/assets/img/svg/bottombar/arrow-up.svg +3 -0
- package/es/assets/img/svg/bottombar/collapse.svg +3 -0
- package/es/assets/img/svg/bottombar/elevation-back.svg +6 -0
- package/es/assets/img/svg/bottombar/elevation-front.svg +6 -0
- package/es/assets/img/svg/bottombar/elevation-left.svg +6 -0
- package/es/assets/img/svg/bottombar/elevation-right.svg +7 -0
- package/es/assets/img/svg/bottombar/elevation.svg +6 -0
- package/es/assets/img/svg/bottombar/expand.svg +3 -0
- package/es/assets/img/svg/bottombar/help.svg +72 -0
- package/es/assets/img/svg/bottombar/incm_toggle.svg +39 -0
- package/es/assets/img/svg/bottombar/pan_1.svg +57 -0
- package/es/assets/img/svg/bottombar/pan_2.svg +27 -0
- package/es/assets/img/svg/bottombar/pan_3.svg +27 -0
- package/es/assets/img/svg/bottombar/pan_4.svg +27 -0
- package/es/assets/img/svg/bottombar/pan_5.svg +27 -0
- package/es/assets/img/svg/bottombar/settings.svg +23 -0
- package/es/assets/img/svg/bottombar/spin-down.svg +76 -0
- package/es/assets/img/svg/bottombar/spin-left.svg +75 -0
- package/es/assets/img/svg/bottombar/spin-right.svg +75 -0
- package/es/assets/img/svg/bottombar/spin-up.svg +76 -0
- package/es/assets/img/svg/bottombar/spin_1.svg +48 -0
- package/es/assets/img/svg/bottombar/spin_2.svg +31 -0
- package/es/assets/img/svg/bottombar/spin_3.svg +31 -0
- package/es/assets/img/svg/bottombar/spin_4.svg +31 -0
- package/es/assets/img/svg/bottombar/spin_5.svg +31 -0
- package/es/assets/img/svg/bottombar/zoomin.svg +29 -0
- package/es/assets/img/svg/bottombar/zoomout.svg +26 -0
- package/es/assets/img/svg/check.svg +10 -0
- package/es/assets/img/svg/close.svg +11 -0
- package/es/assets/img/svg/color/Black.svg +3 -0
- package/es/assets/img/svg/color/Blue.svg +3 -0
- package/es/assets/img/svg/color/Brown.svg +9 -0
- package/es/assets/img/svg/color/Cream.svg +3 -0
- package/es/assets/img/svg/color/Dark.svg +9 -0
- package/es/assets/img/svg/color/Gray.svg +3 -0
- package/es/assets/img/svg/color/Green.svg +3 -0
- package/es/assets/img/svg/color/Light.svg +9 -0
- package/es/assets/img/svg/color/Medium.svg +9 -0
- package/es/assets/img/svg/color/Unfinished.svg +9 -0
- package/es/assets/img/svg/color/White.svg +3 -0
- package/es/assets/img/svg/color/White.svg.bak +3 -0
- package/es/assets/img/svg/color/stone2.jpg +0 -0
- package/es/assets/img/svg/color/wood2.jpg +0 -0
- package/es/assets/img/svg/copy.svg +11 -0
- package/es/assets/img/svg/delete.svg +3 -0
- package/es/assets/img/svg/detail.svg +77 -0
- package/es/assets/img/svg/disclaimer/background.svg +758 -0
- package/es/assets/img/svg/disclaimer/logo-dots.svg +11 -0
- package/es/assets/img/svg/door/Closet.svg +11 -0
- package/es/assets/img/svg/door/Exterior.svg +5 -0
- package/es/assets/img/svg/door/Framed_dorway.svg +5 -0
- package/es/assets/img/svg/door/Frameless_dorway.svg +5 -0
- package/es/assets/img/svg/door/Interior.svg +7 -0
- package/es/assets/img/svg/door/Sliding.svg +5 -0
- package/es/assets/img/svg/doors_closet.svg +47 -0
- package/es/assets/img/svg/doors_exterior.svg +25 -0
- package/es/assets/img/svg/doors_interior.svg +29 -0
- package/es/assets/img/svg/doors_patio.svg +26 -0
- package/es/assets/img/svg/duplicate.svg +11 -0
- package/es/assets/img/svg/duplicate_object_left.svg +32 -0
- package/es/assets/img/svg/duplicate_object_right.svg +32 -0
- package/es/assets/img/svg/filtersActive.svg +19 -0
- package/es/assets/img/svg/firstsetting/L.svg +3 -0
- package/es/assets/img/svg/firstsetting/L2.svg +3 -0
- package/es/assets/img/svg/firstsetting/Open.svg +3 -0
- package/es/assets/img/svg/firstsetting/Square.svg +3 -0
- package/es/assets/img/svg/firstsetting/bar-active.svg +9 -0
- package/es/assets/img/svg/firstsetting/bar-normal.svg +3 -0
- package/es/assets/img/svg/firstsetting/bullet-current.svg +3 -0
- package/es/assets/img/svg/firstsetting/bullet-done.svg +3 -0
- package/es/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
- package/es/assets/img/svg/firstsetting/check-active.svg +3 -0
- package/es/assets/img/svg/firstsetting/check-normal.svg +3 -0
- package/es/assets/img/svg/firstsetting/pencil.svg +11 -0
- package/es/assets/img/svg/green_checkmark.svg +27 -0
- package/es/assets/img/svg/headerbar/assist.svg +3 -0
- package/es/assets/img/svg/headerbar/cart.svg +3 -0
- package/es/assets/img/svg/headerbar/check.svg +10 -0
- package/es/assets/img/svg/headerbar/consult_designer.svg +45 -0
- package/es/assets/img/svg/headerbar/edit_name.svg +26 -0
- package/es/assets/img/svg/headerbar/file-dollar.svg +13 -0
- package/es/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
- package/es/assets/img/svg/headerbar/plus.svg +11 -0
- package/es/assets/img/svg/headerbar/review_quote.svg +44 -0
- package/es/assets/img/svg/headerbar/ruler-measure.svg +11 -0
- package/es/assets/img/svg/headerbar/save.svg +3 -0
- package/es/assets/img/svg/headerbar/setting.svg +75 -0
- package/es/assets/img/svg/help/check.svg +10 -0
- package/es/assets/img/svg/help/search.svg +76 -0
- package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
- package/es/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
- package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
- package/es/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
- package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
- package/es/assets/img/svg/intro/3-retrieve-project.svg +18 -0
- package/es/assets/img/svg/invert.svg +127 -0
- package/es/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
- package/es/assets/img/svg/lefttoolbar/appliance.svg +13 -0
- package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
- package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
- package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
- package/es/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
- package/es/assets/img/svg/lefttoolbar/door-style.svg +20 -0
- package/es/assets/img/svg/lefttoolbar/door.svg +12 -0
- package/es/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
- package/es/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
- package/es/assets/img/svg/lefttoolbar/finishing.svg +13 -0
- package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
- package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
- package/es/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
- package/es/assets/img/svg/lefttoolbar/search.svg +76 -0
- package/es/assets/img/svg/lefttoolbar/view_more.svg +86 -0
- package/es/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
- package/es/assets/img/svg/lefttoolbar/window.svg +12 -0
- package/es/assets/img/svg/menubar/login.svg +84 -0
- package/es/assets/img/svg/menubar/my_projects.svg +85 -0
- package/es/assets/img/svg/menubar/new_project.svg +110 -0
- package/es/assets/img/svg/menubar/save_project.svg +84 -0
- package/es/assets/img/svg/options.svg +3 -0
- package/es/assets/img/svg/positioning.svg +3 -0
- package/es/assets/img/svg/rotate.png +0 -0
- package/es/assets/img/svg/rotate.svg +17 -0
- package/es/assets/img/svg/rotate_object_clockwise.svg +26 -0
- package/es/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
- package/es/assets/img/svg/toggleFilters.svg +19 -0
- package/es/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
- package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
- package/es/assets/img/svg/toolbar/add_button.svg +36 -0
- package/es/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
- package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
- package/es/assets/img/svg/toolbar/add_items_doors.svg +25 -0
- package/es/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
- package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
- package/es/assets/img/svg/toolbar/add_items_windows.svg +28 -0
- package/es/assets/img/svg/toolbar/apply_button.svg +38 -0
- package/es/assets/img/svg/toolbar/arrow-plus.svg +11 -0
- package/es/assets/img/svg/toolbar/backsplash.svg +8 -0
- package/es/assets/img/svg/toolbar/cancel_button.svg +37 -0
- package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
- package/es/assets/img/svg/toolbar/countertop.svg +7 -0
- package/es/assets/img/svg/toolbar/dcm.png +0 -0
- package/es/assets/img/svg/toolbar/dcm_off.svg +12 -0
- package/es/assets/img/svg/toolbar/dcm_on.svg +474 -0
- package/es/assets/img/svg/toolbar/delete_button.svg +37 -0
- package/es/assets/img/svg/toolbar/download.svg +77 -0
- package/es/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
- package/es/assets/img/svg/toolbar/edit_button.svg +75 -0
- package/es/assets/img/svg/toolbar/email_quote_button.svg +44 -0
- package/es/assets/img/svg/toolbar/fbm.png +0 -0
- package/es/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
- package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
- package/es/assets/img/svg/toolbar/floorstyle.svg +9 -0
- package/es/assets/img/svg/toolbar/fmb.png +0 -0
- package/es/assets/img/svg/toolbar/fmb_off.svg +12 -0
- package/es/assets/img/svg/toolbar/fmb_on.svg +489 -0
- package/es/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
- package/es/assets/img/svg/toolbar/get_started_button.svg +41 -0
- package/es/assets/img/svg/toolbar/handles.svg +5 -0
- package/es/assets/img/svg/toolbar/lighting.svg +7 -0
- package/es/assets/img/svg/toolbar/lrm.png +0 -0
- package/es/assets/img/svg/toolbar/lrm_off.svg +12 -0
- package/es/assets/img/svg/toolbar/lrm_on.svg +470 -0
- package/es/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
- package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
- package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
- package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
- package/es/assets/img/svg/toolbar/redo_button.svg +75 -0
- package/es/assets/img/svg/toolbar/redo_button1.svg +75 -0
- package/es/assets/img/svg/toolbar/review_quote_active.svg +14 -0
- package/es/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
- package/es/assets/img/svg/toolbar/save_project_button.svg +44 -0
- package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
- package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
- package/es/assets/img/svg/toolbar/shopping-cart.svg +13 -0
- package/es/assets/img/svg/toolbar/style_change_button.svg +47 -0
- package/es/assets/img/svg/toolbar/take_picture.svg +75 -0
- package/es/assets/img/svg/toolbar/undo_button.svg +76 -0
- package/es/assets/img/svg/toolbar/undo_button1.svg +76 -0
- package/es/assets/img/svg/toolbar/use_button.svg +37 -0
- package/es/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
- package/es/assets/img/svg/topbar/edit_active.svg +10 -0
- package/es/assets/img/svg/topbar/edit_inactive.svg +10 -0
- package/es/assets/img/svg/topbar/redo_active.svg +42 -0
- package/es/assets/img/svg/topbar/redo_inactive.svg +23 -0
- package/es/assets/img/svg/topbar/select_all_active.svg +50 -0
- package/es/assets/img/svg/topbar/select_all_inactive.svg +32 -0
- package/es/assets/img/svg/topbar/take_picture_active.svg +51 -0
- package/es/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
- package/es/assets/img/svg/topbar/undo_active.svg +42 -0
- package/es/assets/img/svg/topbar/undo_inactive.svg +23 -0
- package/es/assets/img/svg/warning_info_2d.svg +81 -0
- package/es/assets/img/svg/window/Clear.svg +3 -0
- package/es/assets/img/svg/window/Cross.svg +5 -0
- package/es/assets/img/svg/window/Double_hung.svg +4 -0
- package/es/assets/img/svg/window/Vertical.svg +4 -0
- package/es/assets/img/svg/windows_clear.svg +23 -0
- package/es/assets/img/svg/windows_cross.svg +28 -0
- package/es/assets/img/svg/windows_double_hung.svg +24 -0
- package/es/assets/img/svg/windows_vertical.svg +24 -0
- package/es/assets/img/svg/wizardstep/Custom.svg +3 -0
- package/es/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
- package/es/assets/img/svg/wizardstep/L.svg +3 -0
- package/es/assets/img/svg/wizardstep/L2.svg +3 -0
- package/es/assets/img/svg/wizardstep/Open.svg +3 -0
- package/es/assets/img/svg/wizardstep/Square.svg +3 -0
- package/es/assets/img/svg/wizardstep/bar-active.svg +9 -0
- package/es/assets/img/svg/wizardstep/bar-normal.svg +3 -0
- package/es/assets/img/svg/wizardstep/bullet-current.svg +3 -0
- package/es/assets/img/svg/wizardstep/bullet-done.svg +3 -0
- package/es/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
- package/es/assets/img/svg/wizardstep/check-active.svg +3 -0
- package/es/assets/img/svg/wizardstep/check-normal.svg +3 -0
- package/es/assets/img/svg/wizardstep/detail_view.svg +87 -0
- package/es/assets/img/svg/wizardstep/pencil.svg +11 -0
- package/es/assets/img/svg/wizardstep/tile_view.svg +95 -0
- package/es/assets/img/texture/glass.jpg +0 -0
- package/es/assets/img/texture/steel.jpg +0 -0
- package/es/assets/img/texture/white1px.jpg +0 -0
- package/es/assets/img/texture/wood.jpg +0 -0
- package/es/assets/model/DCM.bin +0 -0
- package/es/assets/model/DCM.fbx +0 -0
- package/es/assets/model/DCM.gltf +1 -0
- package/es/assets/model/FBM.bin +0 -0
- package/es/assets/model/FBM.fbx +0 -0
- package/es/assets/model/FBM.gltf +1 -0
- package/es/assets/model/LRM.bin +0 -0
- package/es/assets/model/LRM.fbx +0 -0
- package/es/assets/model/LRM.gltf +1 -0
- package/es/assets/rtastore_logo.png +0 -0
- package/es/catalog/areas/area/planner-element.js +2 -2
- package/es/catalog/back.png +0 -0
- package/es/catalog/catalog.js +3 -12
- package/es/catalog/doors.png +0 -0
- package/es/catalog/doorways.png +0 -0
- package/es/catalog/export.js +0 -0
- package/es/catalog/factories/area-factory.js +1 -4
- package/es/catalog/factories/wall-factory-3d.js +1 -1
- package/es/catalog/factories/wall-factory.js +1 -2
- package/es/catalog/lines/wall/planner-element.js +2 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
- package/es/catalog/properties/property-checkbox.js +2 -5
- package/es/catalog/properties/property-enum.js +2 -7
- package/es/catalog/properties/property-lenght-measure.js +4 -5
- package/es/catalog/properties/property-length-measure.js +6 -7
- package/es/catalog/properties/property-length-measure_hole.js +4 -5
- package/es/catalog/utils/FuseUtils.js +3 -6
- package/es/catalog/utils/exporter.js +2 -5
- package/es/catalog/utils/item-loader.js +5 -13
- package/es/catalog/windows.png +0 -0
- package/es/class/FuseUtils.js +3 -6
- package/es/class/area.js +3 -7
- package/es/class/group.js +3 -12
- package/es/class/guide.js +2 -6
- package/es/class/hole.js +2 -6
- package/es/class/item.js +13 -19
- package/es/class/layer.js +2 -6
- package/es/class/line.js +90 -64
- package/es/class/project.js +7 -9
- package/es/class/vertex.js +4 -8
- package/es/components/content.js +16 -0
- package/es/components/export.js +12 -2
- package/es/components/style/button.js +7 -14
- package/es/components/style/cancel-button.js +2 -3
- package/es/components/style/content-container.js +1 -4
- package/es/components/style/content-title.js +3 -7
- package/es/components/style/delete-button.js +2 -3
- package/es/components/style/form-block.js +3 -7
- package/es/components/style/form-color-input.js +2 -3
- package/es/components/style/form-label.js +3 -7
- package/es/components/style/form-number-input.js +6 -12
- package/es/components/style/form-number-input_2.js +6 -12
- package/es/components/style/form-select.js +3 -4
- package/es/components/style/form-slider.js +24 -9
- package/es/components/style/form-submit-button.js +2 -3
- package/es/components/style/form-text-input.js +8 -15
- package/es/components/viewer2d/area.js +4 -4
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -1
- package/es/components/viewer2d/grids/grid-streak.js +0 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -1
- package/es/components/viewer2d/grids/grids.js +1 -6
- package/es/components/viewer2d/item.js +4 -11
- package/es/components/viewer2d/line.js +8 -1
- package/es/components/viewer2d/ruler.js +2 -3
- package/es/components/viewer2d/rulerDist.js +1 -1
- package/es/components/viewer2d/rulerX.js +6 -12
- package/es/components/viewer2d/rulerY.js +6 -12
- package/es/components/viewer2d/scene.js +13 -25
- package/es/components/viewer2d/state.js +1 -6
- package/es/components/viewer2d/utils.js +27 -2
- package/es/components/viewer2d/viewer2d.js +40 -32
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +6 -13
- package/es/components/viewer3d/front3D.js +1 -6
- package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +2 -2
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -4
- package/es/components/viewer3d/ruler-utils/scene3D.js +1 -3
- package/es/components/viewer3d/scene-creator.js +27 -18
- package/es/components/viewer3d/viewer3d-first-person.js +5 -11
- package/es/components/viewer3d/viewer3d.js +286 -194
- package/es/devLiteRenderer.js +44 -0
- package/es/index.js +14 -15
- package/es/models.js +8 -14
- package/es/plugins/console-debugger.js +1 -4
- package/es/plugins/export.js +1 -3
- package/es/reducers/viewer2d-reducer.js +2 -2
- package/es/reducers/viewer3d-reducer.js +2 -2
- package/es/translator/translator.js +2 -6
- package/es/utils/convert-units-lite.js +29 -0
- package/es/utils/geometry.js +68 -42
- package/es/utils/graph.js +2 -6
- package/es/utils/helper.js +3 -5
- package/es/utils/id-broker.js +4 -8
- package/es/utils/molding.js +36 -42
- package/es/utils/name-generator.js +2 -6
- package/es/utils/objects-utils.js +1 -1
- package/es/utils/process-black-list.js +1 -4
- package/es/utils/snap-scene.js +1 -6
- package/es/utils/snap.js +6 -12
- package/es/utils/threeCSG.es6.js +2 -6
- package/es/version.js +1 -2
- package/lib/@history.js +3 -2
- package/lib/AppContext.js +3 -2
- package/lib/{KitchenConfigurator.js → LiteKitchenConfigurator.js} +71 -90
- package/lib/{KitchenConfiguratorApp.js → LiteRenderer.js} +98 -113
- package/lib/actions/export.js +6 -3
- package/lib/analytics/ga4.js +3 -6
- package/lib/analytics/posthog.js +1 -1
- package/lib/assets/Window.hdr +2100 -0
- package/lib/assets/brown_photostudio_02_1k.hdr +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
- package/lib/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
- package/lib/assets/fonts/style.css +177 -0
- package/lib/assets/gltf/door_closet.bin +0 -0
- package/lib/assets/gltf/door_closet.fbx +0 -0
- package/lib/assets/gltf/door_closet.gltf +1 -0
- package/lib/assets/gltf/door_exterior.bin +0 -0
- package/lib/assets/gltf/door_exterior.fbx +0 -0
- package/lib/assets/gltf/door_exterior.gltf +1 -0
- package/lib/assets/gltf/door_interior.bin +0 -0
- package/lib/assets/gltf/door_interior.fbx +0 -0
- package/lib/assets/gltf/door_interior.gltf +1 -0
- package/lib/assets/gltf/door_sliding.bin +0 -0
- package/lib/assets/gltf/door_sliding.fbx +0 -0
- package/lib/assets/gltf/door_sliding.gltf +1 -0
- package/lib/assets/gltf/doorway_framed.bin +0 -0
- package/lib/assets/gltf/doorway_framed.fbx +0 -0
- package/lib/assets/gltf/doorway_framed.gltf +1 -0
- package/lib/assets/gltf/window_clear.bin +0 -0
- package/lib/assets/gltf/window_clear.fbx +0 -0
- package/lib/assets/gltf/window_clear.gltf +1 -0
- package/lib/assets/gltf/window_cross.bin +0 -0
- package/lib/assets/gltf/window_cross.fbx +0 -0
- package/lib/assets/gltf/window_cross.gltf +1 -0
- package/lib/assets/gltf/window_double_hung.bin +0 -0
- package/lib/assets/gltf/window_double_hung.fbx +0 -0
- package/lib/assets/gltf/window_double_hung.gltf +1 -0
- package/lib/assets/gltf/window_vertical.bin +0 -0
- package/lib/assets/gltf/window_vertical.fbx +0 -0
- package/lib/assets/gltf/window_vertical.gltf +1 -0
- package/lib/assets/img/1.jpg +0 -0
- package/lib/assets/img/TKC_thumbnail.png +0 -0
- package/lib/assets/img/Toggle.png +0 -0
- package/lib/assets/img/loading/loading.gif +0 -0
- package/lib/assets/img/loading/loading_1.svg +11 -0
- package/lib/assets/img/loading_large.gif +0 -0
- package/lib/assets/img/png/door/closet.png +0 -0
- package/lib/assets/img/png/door/doorwaysframed.png +0 -0
- package/lib/assets/img/png/door/doorwaysframeles.png +0 -0
- package/lib/assets/img/png/door/doorwaysframeless.png +0 -0
- package/lib/assets/img/png/door/exterior.png +0 -0
- package/lib/assets/img/png/door/interior.png +0 -0
- package/lib/assets/img/png/door/sliding.png +0 -0
- package/lib/assets/img/png/helper/outcome.png +0 -0
- package/lib/assets/img/png/helper/video_preview_3d.png +0 -0
- package/lib/assets/img/png/helper/video_preview_start.png +0 -0
- package/lib/assets/img/project_img.png +0 -0
- package/lib/assets/img/rta/rta_logo_box_blue.jpg +0 -0
- package/lib/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
- package/lib/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
- package/lib/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
- package/lib/assets/img/rta/rta_logo_box_lightblue.png +0 -0
- package/lib/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
- package/lib/assets/img/rta/rta_logo_box_maroon.png +0 -0
- package/lib/assets/img/rta/rta_logo_box_white.png +0 -0
- package/lib/assets/img/rta_menu.png +0 -0
- package/lib/assets/img/step2.jpg +0 -0
- package/lib/assets/img/step3.jpg +0 -0
- package/lib/assets/img/step4.jpg +0 -0
- package/lib/assets/img/step5.jpg +0 -0
- package/lib/assets/img/step6.jpg +0 -0
- package/lib/assets/img/step7.jpg +0 -0
- package/lib/assets/img/step8.jpg +0 -0
- package/lib/assets/img/svg/2d_delete_object.svg +33 -0
- package/lib/assets/img/svg/2d_delete_object1.svg +33 -0
- package/lib/assets/img/svg/2d_lock_object.svg +33 -0
- package/lib/assets/img/svg/3d_item_move.svg +106 -0
- package/lib/assets/img/svg/3d_item_rotation.svg +76 -0
- package/lib/assets/img/svg/3d_item_warning_edit.svg +77 -0
- package/lib/assets/img/svg/3d_item_warning_info.svg +81 -0
- package/lib/assets/img/svg/accessories.svg +4 -0
- package/lib/assets/img/svg/angle_icon.svg +39 -0
- package/lib/assets/img/svg/blank_div.svg +14 -0
- package/lib/assets/img/svg/bottombar/2d3d_button.svg +3 -0
- package/lib/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
- package/lib/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
- package/lib/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
- package/lib/assets/img/svg/bottombar/arrow-down.svg +3 -0
- package/lib/assets/img/svg/bottombar/arrow-left.svg +3 -0
- package/lib/assets/img/svg/bottombar/arrow-minus.svg +3 -0
- package/lib/assets/img/svg/bottombar/arrow-plus.svg +11 -0
- package/lib/assets/img/svg/bottombar/arrow-right.svg +3 -0
- package/lib/assets/img/svg/bottombar/arrow-up.svg +3 -0
- package/lib/assets/img/svg/bottombar/collapse.svg +3 -0
- package/lib/assets/img/svg/bottombar/elevation-back.svg +6 -0
- package/lib/assets/img/svg/bottombar/elevation-front.svg +6 -0
- package/lib/assets/img/svg/bottombar/elevation-left.svg +6 -0
- package/lib/assets/img/svg/bottombar/elevation-right.svg +7 -0
- package/lib/assets/img/svg/bottombar/elevation.svg +6 -0
- package/lib/assets/img/svg/bottombar/expand.svg +3 -0
- package/lib/assets/img/svg/bottombar/help.svg +72 -0
- package/lib/assets/img/svg/bottombar/incm_toggle.svg +39 -0
- package/lib/assets/img/svg/bottombar/pan_1.svg +57 -0
- package/lib/assets/img/svg/bottombar/pan_2.svg +27 -0
- package/lib/assets/img/svg/bottombar/pan_3.svg +27 -0
- package/lib/assets/img/svg/bottombar/pan_4.svg +27 -0
- package/lib/assets/img/svg/bottombar/pan_5.svg +27 -0
- package/lib/assets/img/svg/bottombar/settings.svg +23 -0
- package/lib/assets/img/svg/bottombar/spin-down.svg +76 -0
- package/lib/assets/img/svg/bottombar/spin-left.svg +75 -0
- package/lib/assets/img/svg/bottombar/spin-right.svg +75 -0
- package/lib/assets/img/svg/bottombar/spin-up.svg +76 -0
- package/lib/assets/img/svg/bottombar/spin_1.svg +48 -0
- package/lib/assets/img/svg/bottombar/spin_2.svg +31 -0
- package/lib/assets/img/svg/bottombar/spin_3.svg +31 -0
- package/lib/assets/img/svg/bottombar/spin_4.svg +31 -0
- package/lib/assets/img/svg/bottombar/spin_5.svg +31 -0
- package/lib/assets/img/svg/bottombar/zoomin.svg +29 -0
- package/lib/assets/img/svg/bottombar/zoomout.svg +26 -0
- package/lib/assets/img/svg/check.svg +10 -0
- package/lib/assets/img/svg/close.svg +11 -0
- package/lib/assets/img/svg/color/Black.svg +3 -0
- package/lib/assets/img/svg/color/Blue.svg +3 -0
- package/lib/assets/img/svg/color/Brown.svg +9 -0
- package/lib/assets/img/svg/color/Cream.svg +3 -0
- package/lib/assets/img/svg/color/Dark.svg +9 -0
- package/lib/assets/img/svg/color/Gray.svg +3 -0
- package/lib/assets/img/svg/color/Green.svg +3 -0
- package/lib/assets/img/svg/color/Light.svg +9 -0
- package/lib/assets/img/svg/color/Medium.svg +9 -0
- package/lib/assets/img/svg/color/Unfinished.svg +9 -0
- package/lib/assets/img/svg/color/White.svg +3 -0
- package/lib/assets/img/svg/color/White.svg.bak +3 -0
- package/lib/assets/img/svg/color/stone2.jpg +0 -0
- package/lib/assets/img/svg/color/wood2.jpg +0 -0
- package/lib/assets/img/svg/copy.svg +11 -0
- package/lib/assets/img/svg/delete.svg +3 -0
- package/lib/assets/img/svg/detail.svg +77 -0
- package/lib/assets/img/svg/disclaimer/background.svg +758 -0
- package/lib/assets/img/svg/disclaimer/logo-dots.svg +11 -0
- package/lib/assets/img/svg/door/Closet.svg +11 -0
- package/lib/assets/img/svg/door/Exterior.svg +5 -0
- package/lib/assets/img/svg/door/Framed_dorway.svg +5 -0
- package/lib/assets/img/svg/door/Frameless_dorway.svg +5 -0
- package/lib/assets/img/svg/door/Interior.svg +7 -0
- package/lib/assets/img/svg/door/Sliding.svg +5 -0
- package/lib/assets/img/svg/doors_closet.svg +47 -0
- package/lib/assets/img/svg/doors_exterior.svg +25 -0
- package/lib/assets/img/svg/doors_interior.svg +29 -0
- package/lib/assets/img/svg/doors_patio.svg +26 -0
- package/lib/assets/img/svg/duplicate.svg +11 -0
- package/lib/assets/img/svg/duplicate_object_left.svg +32 -0
- package/lib/assets/img/svg/duplicate_object_right.svg +32 -0
- package/lib/assets/img/svg/filtersActive.svg +19 -0
- package/lib/assets/img/svg/firstsetting/L.svg +3 -0
- package/lib/assets/img/svg/firstsetting/L2.svg +3 -0
- package/lib/assets/img/svg/firstsetting/Open.svg +3 -0
- package/lib/assets/img/svg/firstsetting/Square.svg +3 -0
- package/lib/assets/img/svg/firstsetting/bar-active.svg +9 -0
- package/lib/assets/img/svg/firstsetting/bar-normal.svg +3 -0
- package/lib/assets/img/svg/firstsetting/bullet-current.svg +3 -0
- package/lib/assets/img/svg/firstsetting/bullet-done.svg +3 -0
- package/lib/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
- package/lib/assets/img/svg/firstsetting/check-active.svg +3 -0
- package/lib/assets/img/svg/firstsetting/check-normal.svg +3 -0
- package/lib/assets/img/svg/firstsetting/pencil.svg +11 -0
- package/lib/assets/img/svg/green_checkmark.svg +27 -0
- package/lib/assets/img/svg/headerbar/assist.svg +3 -0
- package/lib/assets/img/svg/headerbar/cart.svg +3 -0
- package/lib/assets/img/svg/headerbar/check.svg +10 -0
- package/lib/assets/img/svg/headerbar/consult_designer.svg +45 -0
- package/lib/assets/img/svg/headerbar/edit_name.svg +26 -0
- package/lib/assets/img/svg/headerbar/file-dollar.svg +13 -0
- package/lib/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
- package/lib/assets/img/svg/headerbar/plus.svg +11 -0
- package/lib/assets/img/svg/headerbar/review_quote.svg +44 -0
- package/lib/assets/img/svg/headerbar/ruler-measure.svg +11 -0
- package/lib/assets/img/svg/headerbar/save.svg +3 -0
- package/lib/assets/img/svg/headerbar/setting.svg +75 -0
- package/lib/assets/img/svg/help/check.svg +10 -0
- package/lib/assets/img/svg/help/search.svg +76 -0
- package/lib/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
- package/lib/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
- package/lib/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
- package/lib/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
- package/lib/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
- package/lib/assets/img/svg/intro/3-retrieve-project.svg +18 -0
- package/lib/assets/img/svg/invert.svg +127 -0
- package/lib/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
- package/lib/assets/img/svg/lefttoolbar/appliance.svg +13 -0
- package/lib/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
- package/lib/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
- package/lib/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
- package/lib/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
- package/lib/assets/img/svg/lefttoolbar/door-style.svg +20 -0
- package/lib/assets/img/svg/lefttoolbar/door.svg +12 -0
- package/lib/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
- package/lib/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
- package/lib/assets/img/svg/lefttoolbar/finishing.svg +13 -0
- package/lib/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
- package/lib/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
- package/lib/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
- package/lib/assets/img/svg/lefttoolbar/search.svg +76 -0
- package/lib/assets/img/svg/lefttoolbar/view_more.svg +86 -0
- package/lib/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
- package/lib/assets/img/svg/lefttoolbar/window.svg +12 -0
- package/lib/assets/img/svg/menubar/login.svg +84 -0
- package/lib/assets/img/svg/menubar/my_projects.svg +85 -0
- package/lib/assets/img/svg/menubar/new_project.svg +110 -0
- package/lib/assets/img/svg/menubar/save_project.svg +84 -0
- package/lib/assets/img/svg/options.svg +3 -0
- package/lib/assets/img/svg/positioning.svg +3 -0
- package/lib/assets/img/svg/rotate.png +0 -0
- package/lib/assets/img/svg/rotate.svg +17 -0
- package/lib/assets/img/svg/rotate_object_clockwise.svg +26 -0
- package/lib/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
- package/lib/assets/img/svg/toggleFilters.svg +19 -0
- package/lib/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
- package/lib/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
- package/lib/assets/img/svg/toolbar/add_button.svg +36 -0
- package/lib/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
- package/lib/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
- package/lib/assets/img/svg/toolbar/add_items_doors.svg +25 -0
- package/lib/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
- package/lib/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
- package/lib/assets/img/svg/toolbar/add_items_windows.svg +28 -0
- package/lib/assets/img/svg/toolbar/apply_button.svg +38 -0
- package/lib/assets/img/svg/toolbar/arrow-plus.svg +11 -0
- package/lib/assets/img/svg/toolbar/backsplash.svg +8 -0
- package/lib/assets/img/svg/toolbar/cancel_button.svg +37 -0
- package/lib/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
- package/lib/assets/img/svg/toolbar/countertop.svg +7 -0
- package/lib/assets/img/svg/toolbar/dcm.png +0 -0
- package/lib/assets/img/svg/toolbar/dcm_off.svg +12 -0
- package/lib/assets/img/svg/toolbar/dcm_on.svg +474 -0
- package/lib/assets/img/svg/toolbar/delete_button.svg +37 -0
- package/lib/assets/img/svg/toolbar/download.svg +77 -0
- package/lib/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
- package/lib/assets/img/svg/toolbar/edit_button.svg +75 -0
- package/lib/assets/img/svg/toolbar/email_quote_button.svg +44 -0
- package/lib/assets/img/svg/toolbar/fbm.png +0 -0
- package/lib/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
- package/lib/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
- package/lib/assets/img/svg/toolbar/floorstyle.svg +9 -0
- package/lib/assets/img/svg/toolbar/fmb.png +0 -0
- package/lib/assets/img/svg/toolbar/fmb_off.svg +12 -0
- package/lib/assets/img/svg/toolbar/fmb_on.svg +489 -0
- package/lib/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
- package/lib/assets/img/svg/toolbar/get_started_button.svg +41 -0
- package/lib/assets/img/svg/toolbar/handles.svg +5 -0
- package/lib/assets/img/svg/toolbar/lighting.svg +7 -0
- package/lib/assets/img/svg/toolbar/lrm.png +0 -0
- package/lib/assets/img/svg/toolbar/lrm_off.svg +12 -0
- package/lib/assets/img/svg/toolbar/lrm_on.svg +470 -0
- package/lib/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
- package/lib/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
- package/lib/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
- package/lib/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
- package/lib/assets/img/svg/toolbar/redo_button.svg +75 -0
- package/lib/assets/img/svg/toolbar/redo_button1.svg +75 -0
- package/lib/assets/img/svg/toolbar/review_quote_active.svg +14 -0
- package/lib/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
- package/lib/assets/img/svg/toolbar/save_project_button.svg +44 -0
- package/lib/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
- package/lib/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
- package/lib/assets/img/svg/toolbar/shopping-cart.svg +13 -0
- package/lib/assets/img/svg/toolbar/style_change_button.svg +47 -0
- package/lib/assets/img/svg/toolbar/take_picture.svg +75 -0
- package/lib/assets/img/svg/toolbar/undo_button.svg +76 -0
- package/lib/assets/img/svg/toolbar/undo_button1.svg +76 -0
- package/lib/assets/img/svg/toolbar/use_button.svg +37 -0
- package/lib/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
- package/lib/assets/img/svg/topbar/edit_active.svg +10 -0
- package/lib/assets/img/svg/topbar/edit_inactive.svg +10 -0
- package/lib/assets/img/svg/topbar/redo_active.svg +42 -0
- package/lib/assets/img/svg/topbar/redo_inactive.svg +23 -0
- package/lib/assets/img/svg/topbar/select_all_active.svg +50 -0
- package/lib/assets/img/svg/topbar/select_all_inactive.svg +32 -0
- package/lib/assets/img/svg/topbar/take_picture_active.svg +51 -0
- package/lib/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
- package/lib/assets/img/svg/topbar/undo_active.svg +42 -0
- package/lib/assets/img/svg/topbar/undo_inactive.svg +23 -0
- package/lib/assets/img/svg/warning_info_2d.svg +81 -0
- package/lib/assets/img/svg/window/Clear.svg +3 -0
- package/lib/assets/img/svg/window/Cross.svg +5 -0
- package/lib/assets/img/svg/window/Double_hung.svg +4 -0
- package/lib/assets/img/svg/window/Vertical.svg +4 -0
- package/lib/assets/img/svg/windows_clear.svg +23 -0
- package/lib/assets/img/svg/windows_cross.svg +28 -0
- package/lib/assets/img/svg/windows_double_hung.svg +24 -0
- package/lib/assets/img/svg/windows_vertical.svg +24 -0
- package/lib/assets/img/svg/wizardstep/Custom.svg +3 -0
- package/lib/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
- package/lib/assets/img/svg/wizardstep/L.svg +3 -0
- package/lib/assets/img/svg/wizardstep/L2.svg +3 -0
- package/lib/assets/img/svg/wizardstep/Open.svg +3 -0
- package/lib/assets/img/svg/wizardstep/Square.svg +3 -0
- package/lib/assets/img/svg/wizardstep/bar-active.svg +9 -0
- package/lib/assets/img/svg/wizardstep/bar-normal.svg +3 -0
- package/lib/assets/img/svg/wizardstep/bullet-current.svg +3 -0
- package/lib/assets/img/svg/wizardstep/bullet-done.svg +3 -0
- package/lib/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
- package/lib/assets/img/svg/wizardstep/check-active.svg +3 -0
- package/lib/assets/img/svg/wizardstep/check-normal.svg +3 -0
- package/lib/assets/img/svg/wizardstep/detail_view.svg +87 -0
- package/lib/assets/img/svg/wizardstep/pencil.svg +11 -0
- package/lib/assets/img/svg/wizardstep/tile_view.svg +95 -0
- package/lib/assets/img/texture/glass.jpg +0 -0
- package/lib/assets/img/texture/steel.jpg +0 -0
- package/lib/assets/img/texture/white1px.jpg +0 -0
- package/lib/assets/img/texture/wood.jpg +0 -0
- package/lib/assets/model/DCM.bin +0 -0
- package/lib/assets/model/DCM.fbx +0 -0
- package/lib/assets/model/DCM.gltf +1 -0
- package/lib/assets/model/FBM.bin +0 -0
- package/lib/assets/model/FBM.fbx +0 -0
- package/lib/assets/model/FBM.gltf +1 -0
- package/lib/assets/model/LRM.bin +0 -0
- package/lib/assets/model/LRM.fbx +0 -0
- package/lib/assets/model/LRM.gltf +1 -0
- package/lib/assets/rtastore_logo.png +0 -0
- package/lib/catalog/areas/area/planner-element.js +3 -2
- package/lib/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- package/lib/catalog/areas/area/textures/grass.jpg +0 -0
- package/lib/catalog/areas/area/textures/parquet.jpg +0 -0
- package/lib/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- package/lib/catalog/areas/area/textures/tile1.jpg +0 -0
- package/lib/catalog/back.png +0 -0
- package/lib/catalog/catalog.js +9 -16
- package/lib/catalog/doors.png +0 -0
- package/lib/catalog/doorways.png +0 -0
- package/lib/catalog/envMap/nx.hdr +0 -0
- package/lib/catalog/envMap/ny.hdr +0 -0
- package/lib/catalog/envMap/nz.hdr +0 -0
- package/lib/catalog/envMap/px.hdr +0 -0
- package/lib/catalog/envMap/py.hdr +0 -0
- package/lib/catalog/envMap/pz.hdr +0 -0
- package/lib/catalog/export.js +1 -0
- package/lib/catalog/factories/area-factory-3d.js +1 -1
- package/lib/catalog/factories/area-factory.js +6 -7
- package/lib/catalog/factories/export.js +1 -1
- package/lib/catalog/factories/wall-factory-3d.js +4 -4
- package/lib/catalog/factories/wall-factory.js +4 -3
- package/lib/catalog/holes/door-closet/planner-element.js +4 -3
- package/lib/catalog/holes/door-double/door_double.png +0 -0
- package/lib/catalog/holes/door-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-exterior/planner-element.js +4 -3
- package/lib/catalog/holes/door-interior/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic/panicDoor.png +0 -0
- package/lib/catalog/holes/door-panic/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/lib/catalog/holes/door-panic-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-sliding/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-framed/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-frameless/planner-element.js +4 -3
- package/lib/catalog/holes/export.js +2 -2
- package/lib/catalog/holes/gate/gate.jpg +0 -0
- package/lib/catalog/holes/window-clear/planner-element.js +4 -3
- package/lib/catalog/holes/window-clear/texture.png +0 -0
- package/lib/catalog/holes/window-cross/planner-element.js +4 -3
- package/lib/catalog/holes/window-cross/texture.png +0 -0
- package/lib/catalog/holes/window-double-hung/planner-element.js +4 -3
- package/lib/catalog/holes/window-double-hung/texture.png +0 -0
- package/lib/catalog/holes/window-vertical/planner-element.js +4 -3
- package/lib/catalog/holes/window-vertical/texture.png +0 -0
- package/lib/catalog/lines/wall/planner-element.js +3 -2
- package/lib/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- package/lib/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- package/lib/catalog/lines/wall/textures/bricks.jpg +0 -0
- package/lib/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/lib/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/lib/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- package/lib/catalog/lines/wall/textures/morden.jpg +0 -0
- package/lib/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/lib/catalog/lines/wall/textures/painted.jpg +0 -0
- package/lib/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- package/lib/catalog/lines/wall/textures/plaster.jpg +0 -0
- package/lib/catalog/lines/wall/wall.png +0 -0
- package/lib/catalog/molding/molding-dcm/planner-element.js +2 -6
- package/lib/catalog/molding/molding-dcm/texture.png +0 -0
- package/lib/catalog/molding/molding-fbm/planner-element.js +2 -6
- package/lib/catalog/molding/molding-fbm/texture.png +0 -0
- package/lib/catalog/molding/molding-lrm/planner-element.js +2 -6
- package/lib/catalog/molding/molding-lrm/texture.png +0 -0
- package/lib/catalog/properties/export.js +1 -1
- package/lib/catalog/properties/property-checkbox.js +12 -14
- package/lib/catalog/properties/property-color.js +3 -2
- package/lib/catalog/properties/property-enum.js +8 -12
- package/lib/catalog/properties/property-hidden.js +3 -2
- package/lib/catalog/properties/property-lenght-measure.js +11 -11
- package/lib/catalog/properties/property-length-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure_hole.js +10 -10
- package/lib/catalog/properties/property-number.js +3 -2
- package/lib/catalog/properties/property-read-only.js +3 -2
- package/lib/catalog/properties/property-string.js +3 -2
- package/lib/catalog/properties/property-toggle.js +3 -2
- package/lib/catalog/properties/shared-property-style.js +2 -1
- package/lib/catalog/utils/FuseUtils.js +10 -11
- package/lib/catalog/utils/exporter.js +10 -12
- package/lib/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +30 -35
- package/lib/catalog/windows.png +0 -0
- package/lib/class/FuseUtils.js +10 -11
- package/lib/class/area.js +9 -11
- package/lib/class/export.js +1 -1
- package/lib/class/group.js +13 -20
- package/lib/class/guide.js +9 -12
- package/lib/class/hole.js +7 -9
- package/lib/class/item.js +26 -31
- package/lib/class/layer.js +7 -9
- package/lib/class/line.js +101 -72
- package/lib/class/project.js +14 -13
- package/lib/class/vertex.js +10 -12
- package/lib/components/content.js +20 -3
- package/lib/components/export.js +63 -7
- package/lib/components/style/button.js +17 -22
- package/lib/components/style/cancel-button.js +7 -7
- package/lib/components/style/content-container.js +5 -7
- package/lib/components/style/content-title.js +10 -12
- package/lib/components/style/delete-button.js +8 -8
- package/lib/components/style/export.js +1 -1
- package/lib/components/style/form-block.js +9 -12
- package/lib/components/style/form-color-input.js +7 -7
- package/lib/components/style/form-label.js +9 -12
- package/lib/components/style/form-number-input.js +15 -19
- package/lib/components/style/form-number-input_2.js +15 -19
- package/lib/components/style/form-select.js +10 -10
- package/lib/components/style/form-slider.js +28 -12
- package/lib/components/style/form-submit-button.js +8 -8
- package/lib/components/style/form-text-input.js +19 -24
- package/lib/components/viewer2d/area.js +8 -7
- package/lib/components/viewer2d/export.js +1 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +3 -3
- package/lib/components/viewer2d/grids/grids.js +6 -10
- package/lib/components/viewer2d/group.js +4 -3
- package/lib/components/viewer2d/item.js +14 -19
- package/lib/components/viewer2d/layer.js +3 -2
- package/lib/components/viewer2d/line.js +10 -3
- package/lib/components/viewer2d/ruler.js +9 -9
- package/lib/components/viewer2d/rulerDist.js +7 -6
- package/lib/components/viewer2d/rulerX.js +15 -19
- package/lib/components/viewer2d/rulerY.js +15 -19
- package/lib/components/viewer2d/scene.js +23 -33
- package/lib/components/viewer2d/snap.js +4 -3
- package/lib/components/viewer2d/state.js +7 -11
- package/lib/components/viewer2d/utils.js +29 -2
- package/lib/components/viewer2d/vertex.js +4 -3
- package/lib/components/viewer2d/viewer2d.js +65 -53
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +14 -20
- package/lib/components/viewer3d/dcm.js +2 -1
- package/lib/components/viewer3d/fbm.js +2 -1
- package/lib/components/viewer3d/front3D.js +6 -10
- package/lib/components/viewer3d/grid-creator.js +4 -3
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +3 -2
- package/lib/components/viewer3d/lrm.js +2 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +10 -9
- package/lib/components/viewer3d/ruler-utils/layer3D.js +35 -34
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +5 -7
- package/lib/components/viewer3d/ruler-utils/scene3D.js +3 -5
- package/lib/components/viewer3d/ruler-utils/state3D.js +3 -2
- package/lib/components/viewer3d/scene-creator.js +62 -52
- package/lib/components/viewer3d/three-memory-cleaner.js +1 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +13 -17
- package/lib/components/viewer3d/viewer3d.js +301 -206
- package/lib/devLiteRenderer.js +46 -0
- package/lib/index.js +17 -89
- package/lib/models.js +55 -61
- package/lib/plugins/console-debugger.js +5 -7
- package/lib/plugins/export.js +1 -9
- package/lib/plugins/keyboard.js +2 -1
- package/lib/reducers/areas-reducer.js +2 -1
- package/lib/reducers/export.js +1 -1
- package/lib/reducers/groups-reducer.js +2 -1
- package/lib/reducers/holes-reducer.js +2 -1
- package/lib/reducers/items-reducer.js +2 -1
- package/lib/reducers/lines-reducer.js +2 -1
- package/lib/reducers/project-reducer.js +2 -1
- package/lib/reducers/scene-reducer.js +2 -1
- package/lib/reducers/user-reducer.js +2 -1
- package/lib/reducers/vertices-reducer.js +2 -1
- package/lib/reducers/viewer2d-reducer.js +5 -5
- package/lib/reducers/viewer3d-reducer.js +5 -5
- package/lib/styles/export.js +1 -1
- package/lib/styles/tabs.css +40 -0
- package/lib/translator/en.js +2 -1
- package/lib/translator/it.js +2 -1
- package/lib/translator/ru.js +2 -1
- package/lib/translator/translator.js +7 -10
- package/lib/utils/convert-units-lite.js +35 -0
- package/lib/utils/export.js +2 -2
- package/lib/utils/geometry.js +83 -54
- package/lib/utils/graph-inner-cycles.js +1 -1
- package/lib/utils/graph.js +7 -10
- package/lib/utils/helper.js +13 -14
- package/lib/utils/history.js +1 -1
- package/lib/utils/id-broker.js +7 -10
- package/lib/utils/molding.js +66 -71
- package/lib/utils/name-generator.js +7 -9
- package/lib/utils/objects-utils.js +5 -3
- package/lib/utils/process-black-list.js +3 -5
- package/lib/utils/react-if.js +3 -2
- package/lib/utils/snap-scene.js +3 -7
- package/lib/utils/snap.js +22 -26
- package/lib/utils/threeCSG.es6.js +16 -15
- package/lib/version.js +1 -2
- package/package.json +50 -60
- package/es/components/disclaimer/disclaimer.js +0 -117
- package/es/plugins/autosave.js +0 -33
- package/lib/components/disclaimer/disclaimer.js +0 -125
- package/lib/plugins/autosave.js +0 -39
|
@@ -1,44 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import _readOnlyError from "@babel/runtime/helpers/esm/readOnlyError";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
6
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
7
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
8
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
9
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
10
|
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; }
|
|
6
11
|
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; }
|
|
7
|
-
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; }
|
|
8
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
-
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); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
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); }
|
|
13
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
|
-
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); }
|
|
15
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
16
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
18
|
-
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); }
|
|
19
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
14
|
import React from 'react';
|
|
21
15
|
import PropTypes from 'prop-types';
|
|
22
16
|
import ReactDOM from 'react-dom';
|
|
23
17
|
import * as Three from 'three';
|
|
24
|
-
import {
|
|
25
|
-
import { disposeScene } from "./three-memory-cleaner";
|
|
26
|
-
import { disposeObject } from "./three-memory-cleaner";
|
|
18
|
+
import { checkCabinetOverlap, createBacksplash, deleteSpecifiedMeshObjects, fVLine, getDistances, parseData, updateScene, visibleTransformBox } from "./scene-creator";
|
|
19
|
+
import { disposeObject, disposeScene } from "./three-memory-cleaner";
|
|
27
20
|
import diff from 'immutablediff';
|
|
28
21
|
import * as SharedStyle from "../../shared-style";
|
|
29
|
-
import {
|
|
22
|
+
import { BASE_CABINET_LAYOUTPOS, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_HOLE_3D, MODE_DRAWING_ITEM_3D, MODE_ELEVATION_VIEW, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, SECONDARY_PURPLE_COLOR, TALL_CABINET_LAYOUTPOS, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
30
23
|
import { isUndefined } from 'util';
|
|
31
24
|
import { verticesDistance } from "../../utils/geometry";
|
|
32
|
-
import convert from
|
|
25
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
33
26
|
import { GeometryUtils } from "../../utils/export";
|
|
34
27
|
import { handleCamRect, isElevationView, isEmpty } from "../../utils/helper";
|
|
35
28
|
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
36
29
|
import CameraControls from 'camera-controls';
|
|
30
|
+
import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
|
|
31
|
+
import { getAllMeshes, vectorIntersectWithMesh } from "../../utils/objects-utils";
|
|
37
32
|
CameraControls.install({
|
|
38
33
|
THREE: Three
|
|
39
34
|
});
|
|
40
|
-
import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
|
|
41
|
-
import { getAllMeshes, vectorIntersectWithMesh } from "../../utils/objects-utils";
|
|
42
35
|
var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
43
36
|
function Scene3DViewer(props) {
|
|
44
37
|
var _this;
|
|
@@ -278,7 +271,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
278
271
|
lines.push(data);
|
|
279
272
|
});
|
|
280
273
|
var _loop3 = function _loop3() {
|
|
281
|
-
var data = lines[
|
|
274
|
+
var data = lines[_i15];
|
|
282
275
|
var realVec = [];
|
|
283
276
|
data.vertices.forEach(function (vec) {
|
|
284
277
|
realVec.push(vec);
|
|
@@ -289,7 +282,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
289
282
|
return 1; // break
|
|
290
283
|
}
|
|
291
284
|
};
|
|
292
|
-
for (var
|
|
285
|
+
for (var _i15 = 0; _i15 < lines.length; _i15++) {
|
|
293
286
|
if (_loop3()) break;
|
|
294
287
|
}
|
|
295
288
|
var vertices = [];
|
|
@@ -299,11 +292,11 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
299
292
|
});
|
|
300
293
|
vertices.push(vertices[0]);
|
|
301
294
|
var fLen = vertices.length - 1;
|
|
302
|
-
for (var
|
|
303
|
-
var sX = vertices[
|
|
304
|
-
var sY = vertices[
|
|
305
|
-
var eX = vertices[
|
|
306
|
-
var eY = vertices[
|
|
295
|
+
for (var _i16 = 0; _i16 < fLen; _i16++) {
|
|
296
|
+
var sX = vertices[_i16].x;
|
|
297
|
+
var sY = vertices[_i16].y;
|
|
298
|
+
var eX = vertices[_i16 + 1].x;
|
|
299
|
+
var eY = vertices[_i16 + 1].y;
|
|
307
300
|
var len = Math.sqrt((eX - sX) * (eX - sX) + (eY - sY) * (eY - sY));
|
|
308
301
|
for (var cLen = 200; cLen < len; cLen += 200) {
|
|
309
302
|
var cX = sX + (eX - sX) * cLen / len;
|
|
@@ -380,6 +373,9 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
380
373
|
var allRect;
|
|
381
374
|
var allArea;
|
|
382
375
|
|
|
376
|
+
// FLAG FOR initial phase of drawing an item
|
|
377
|
+
var isInitialPhase = true;
|
|
378
|
+
|
|
383
379
|
// end snap function variable///////////////////////
|
|
384
380
|
var backsplashVisible = false;
|
|
385
381
|
var holeItems = GeometryUtils.getHoleItems(layer);
|
|
@@ -1358,7 +1354,6 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1358
1354
|
if (!_this2.props.downloadFlag && !_this2.props.state.mode.includes('ING')) {
|
|
1359
1355
|
_this2.props.setToolbar('');
|
|
1360
1356
|
}
|
|
1361
|
-
getPoint(event, altitude);
|
|
1362
1357
|
if (_this2.props.state.mode == MODE_DRAWING_ITEM_3D) {
|
|
1363
1358
|
if (Point.x > _this2.props.state.scene.width) Point.x = _this2.props.state.width;
|
|
1364
1359
|
if (Point.y > _this2.props.state.scene.height) Point.y = _this2.props.state.height;
|
|
@@ -1368,9 +1363,9 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1368
1363
|
actions.itemsActions.endDrawingItem(_this2.props.state.scene.selectedLayer, sPoint.x, sPoint.y);
|
|
1369
1364
|
} else {
|
|
1370
1365
|
removeSnapBox();
|
|
1371
|
-
var polygon =
|
|
1366
|
+
var polygon = GeometryUtils.getPoylgonPoints(layer);
|
|
1372
1367
|
// if cursor is outside of room
|
|
1373
|
-
if (!GeometryUtils.ContainsPoint(polygon, Point.x, Point.y)) {
|
|
1368
|
+
if (polygon.length > 0 && !GeometryUtils.ContainsPoint(polygon, Point.x, Point.y)) {
|
|
1374
1369
|
actions.itemsActions.endDrawingItem(_this2.props.state.scene.selectedLayer, sPoint.x, sPoint.y);
|
|
1375
1370
|
} else {
|
|
1376
1371
|
actions.itemsActions.updateDraggingItemChanged(targetPoint.x, -targetPoint.z, selectedObject.layerID, selectedObject.itemID);
|
|
@@ -1379,6 +1374,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1379
1374
|
}
|
|
1380
1375
|
}
|
|
1381
1376
|
bMove = false;
|
|
1377
|
+
isInitialPhase = true;
|
|
1382
1378
|
return;
|
|
1383
1379
|
}
|
|
1384
1380
|
if (_this2.props.state.mode == MODE_DRAGGING_ITEM_3D) {
|
|
@@ -1387,6 +1383,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1387
1383
|
if (_this2.props.state.mode == MODE_ROTATING_ITEM_3D) {
|
|
1388
1384
|
_this2.context.itemsActions.endRotatingItem3D(sPoint.x, sPoint.y);
|
|
1389
1385
|
}
|
|
1386
|
+
getPoint(event, altitude);
|
|
1390
1387
|
if (_this2.props.state.mode == MODE_DRAWING_HOLE_3D) {
|
|
1391
1388
|
gridPlanOrigin = gridPlane.position;
|
|
1392
1389
|
gridMatrix.copy(gridPlane.matrixWorld).invert();
|
|
@@ -1605,6 +1602,164 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1605
1602
|
}
|
|
1606
1603
|
}
|
|
1607
1604
|
};
|
|
1605
|
+
this.mouseEnterEvent = function (event) {
|
|
1606
|
+
if (_this2.props.state.mode !== MODE_DRAWING_ITEM_3D) return;
|
|
1607
|
+
// if not initial moment of drawing an item
|
|
1608
|
+
if (!isInitialPhase) return;
|
|
1609
|
+
var bNormalFlow = true;
|
|
1610
|
+
_this2.getSelectedObject();
|
|
1611
|
+
var layer = _this2.props.state.scene.getIn(['layers', selectedObject.layerID]);
|
|
1612
|
+
var mX = Point.x - sPoint.x;
|
|
1613
|
+
var mY = Point.y - sPoint.y;
|
|
1614
|
+
var item3D = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1615
|
+
deleteSpecifiedMeshObjects('TransformBox');
|
|
1616
|
+
deleteSpecifiedMeshObjects('WarningBox' + selectedObject.itemID);
|
|
1617
|
+
var item = layer.getIn(['items', selectedObject.itemID]);
|
|
1618
|
+
if (!item3D || !item) return;
|
|
1619
|
+
if (item.counterTop.uri == '') item.counterTop.uri = layer.counterTop.uri;
|
|
1620
|
+
var sRot = item.rotation;
|
|
1621
|
+
var originPos = item3D.position.clone();
|
|
1622
|
+
var tPos = new Three.Vector2(mX + originPos.x, mY - originPos.z);
|
|
1623
|
+
var sBounding = item3D.children[0].userData;
|
|
1624
|
+
var swidth = sBounding.max.x - sBounding.min.x;
|
|
1625
|
+
var sdepth = sBounding.max.z - sBounding.min.z;
|
|
1626
|
+
var sVertices = _this2.getRectPoints(swidth, sdepth, tPos.clone(), sRot % 360 / 180 * Math.PI);
|
|
1627
|
+
prepareSnap(layer);
|
|
1628
|
+
|
|
1629
|
+
// calc altitude
|
|
1630
|
+
var altitude = 0;
|
|
1631
|
+
if (allItemRect && allItemRect.cur && allItemRect.cur.itemInfo !== undefined) {
|
|
1632
|
+
var properties = allItemRect.cur.itemInfo.properties;
|
|
1633
|
+
altitude = properties.getIn(['altitude', '_length']);
|
|
1634
|
+
var unit = properties.getIn(['altitude', '_unit']) || 'in';
|
|
1635
|
+
altitude = convert(altitude).from(unit).to(_this2.props.state.scene.unit);
|
|
1636
|
+
}
|
|
1637
|
+
// We need to set cam position since when MODE_DRAWING_ITEM_3D mouse down event
|
|
1638
|
+
// is not emited so cam position is not valid
|
|
1639
|
+
gridPlanOrigin = gridPlane.position;
|
|
1640
|
+
gridMatrix.copy(gridPlane.matrixWorld).invert();
|
|
1641
|
+
camPos = camera.position;
|
|
1642
|
+
|
|
1643
|
+
// calc cursor position
|
|
1644
|
+
getPoint(event, altitude);
|
|
1645
|
+
var polygon = GeometryUtils.getPoylgonPoints(layer);
|
|
1646
|
+
|
|
1647
|
+
// if no wall (no area)
|
|
1648
|
+
if (!polygon.length) {
|
|
1649
|
+
// place the item at cursor position
|
|
1650
|
+
actions.itemsActions.updateDraggingItemChanged(Point.x, Point.y, selectedObject.layerID, selectedObject.itemID);
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
// calc snap
|
|
1655
|
+
var _GeometryUtils$calcCr = GeometryUtils.calcCreateSnap(allItemRect, allItemSnap, allLineRects, allLineSnap, allRect, Point.x, Point.y, polygon),
|
|
1656
|
+
cx = _GeometryUtils$calcCr.cx,
|
|
1657
|
+
cy = _GeometryUtils$calcCr.cy,
|
|
1658
|
+
crot = _GeometryUtils$calcCr.crot,
|
|
1659
|
+
rotRad = _GeometryUtils$calcCr.rotRad;
|
|
1660
|
+
var finalPosition = {
|
|
1661
|
+
x: cx,
|
|
1662
|
+
y: cy,
|
|
1663
|
+
rot: crot,
|
|
1664
|
+
rotRad: rotRad
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
// calc current item rect
|
|
1668
|
+
var itemRect = _objectSpread(_objectSpread({}, allItemRect.cur), {}, {
|
|
1669
|
+
pos: {
|
|
1670
|
+
x: Point.x,
|
|
1671
|
+
y: Point.y
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
|
|
1675
|
+
// if cursor position is inside the room
|
|
1676
|
+
if (GeometryUtils.ContainsPoint(polygon, Point.x, Point.y)) {
|
|
1677
|
+
// if cursor position is available to place the item
|
|
1678
|
+
if (GeometryUtils.validRect(itemRect, allRect)) {
|
|
1679
|
+
actions.itemsActions.updateDraggingItemChanged(Point.x, Point.y, selectedObject.layerID, selectedObject.itemID);
|
|
1680
|
+
sPoint.set(Point.x, Point.y);
|
|
1681
|
+
bNormalFlow = false;
|
|
1682
|
+
}
|
|
1683
|
+
} else {
|
|
1684
|
+
// if cursor is outside the room and there is no snap candidate,
|
|
1685
|
+
// then place the item at any free position inside the room.
|
|
1686
|
+
if (!GeometryUtils.ContainsPoint(polygon, cx, cy)) {
|
|
1687
|
+
var points = [];
|
|
1688
|
+
var point = [];
|
|
1689
|
+
|
|
1690
|
+
// rebuild variable to be passed to getCentriodOfPolygon
|
|
1691
|
+
// polygon: [ x0, y0, x1, y1, ... ] ==> points: [[x0, y0], [x1, y1], ...]
|
|
1692
|
+
polygon === null || polygon === void 0 || polygon.forEach(function (value, index) {
|
|
1693
|
+
point.push(value);
|
|
1694
|
+
if (index % 2) {
|
|
1695
|
+
points.push(point);
|
|
1696
|
+
point = [];
|
|
1697
|
+
}
|
|
1698
|
+
});
|
|
1699
|
+
|
|
1700
|
+
// calc center position of the room
|
|
1701
|
+
var centerPos = GeometryUtils.getCentroidOfPolygon(points);
|
|
1702
|
+
var itemRect1 = _objectSpread(_objectSpread({}, allItemRect.cur), {}, {
|
|
1703
|
+
pos: {
|
|
1704
|
+
x: centerPos.x,
|
|
1705
|
+
y: centerPos.y
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
var itemRect2 = _objectSpread(_objectSpread({}, allItemRect.cur), {}, {
|
|
1709
|
+
pos: {
|
|
1710
|
+
x: centerPos.x,
|
|
1711
|
+
y: centerPos.y
|
|
1712
|
+
},
|
|
1713
|
+
rotRad: allItemRect.cur.rotRad + Math.PI / 2
|
|
1714
|
+
});
|
|
1715
|
+
|
|
1716
|
+
// find a free position in the room
|
|
1717
|
+
if (GeometryUtils.validRect(itemRect1, allRect)) {
|
|
1718
|
+
actions.itemsActions.updateDraggingItemChanged(centerPos.x, centerPos.y, selectedObject.layerID, selectedObject.itemID);
|
|
1719
|
+
sPoint.set(centerPos.x, centerPos.y);
|
|
1720
|
+
bNormalFlow = false;
|
|
1721
|
+
} else if (GeometryUtils.validRect(itemRect2, allRect)) {
|
|
1722
|
+
finalPosition = {
|
|
1723
|
+
x: centerPos.x,
|
|
1724
|
+
y: centerPos.y,
|
|
1725
|
+
rotRad: itemRect2.rotRad,
|
|
1726
|
+
rot: itemRect2.rotRad / Math.PI * 180
|
|
1727
|
+
};
|
|
1728
|
+
sPoint.set(centerPos.x, centerPos.y);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
var nPos = new Three.Vector2(cx, cy);
|
|
1733
|
+
if (!_this2.collisionHoleCheck(item3D, nPos, item.rotation, {
|
|
1734
|
+
userData: {
|
|
1735
|
+
itemId: null
|
|
1736
|
+
}
|
|
1737
|
+
}, item, _this2.context.catalog)) {
|
|
1738
|
+
_this2.collisionSlide(item3D, originPos, layer, sVertices, tPos, item);
|
|
1739
|
+
}
|
|
1740
|
+
itemRect = _objectSpread(_objectSpread({}, allItemRect.cur), {}, {
|
|
1741
|
+
pos: {
|
|
1742
|
+
x: finalPosition.x,
|
|
1743
|
+
y: finalPosition.y
|
|
1744
|
+
},
|
|
1745
|
+
rotRad: finalPosition.rotRad
|
|
1746
|
+
});
|
|
1747
|
+
|
|
1748
|
+
// if the room is fullfilled with items or can't calc snap correctly
|
|
1749
|
+
if (!GeometryUtils.validRect(itemRect, allRect)) {
|
|
1750
|
+
// then place the item at cursor position
|
|
1751
|
+
actions.itemsActions.updateDraggingItemChanged(Point.x, Point.y, selectedObject.layerID, selectedObject.itemID);
|
|
1752
|
+
sPoint.set(Point.x, Point.y);
|
|
1753
|
+
bNormalFlow = false;
|
|
1754
|
+
}
|
|
1755
|
+
if (bNormalFlow) {
|
|
1756
|
+
actions.itemsActions.updateDraggingItemChanged(finalPosition.x, finalPosition.y, selectedObject.layerID, selectedObject.itemID);
|
|
1757
|
+
actions.itemsActions.updateRotatingItemChanged(finalPosition.rot, selectedObject.layerID, selectedObject.itemID);
|
|
1758
|
+
sPoint.set(finalPosition.x, finalPosition.y);
|
|
1759
|
+
}
|
|
1760
|
+
isInitialPhase = false;
|
|
1761
|
+
_this2.handleAfterMovingItem();
|
|
1762
|
+
};
|
|
1608
1763
|
this.mouseMoveEvent = function (event) {
|
|
1609
1764
|
event.preventDefault();
|
|
1610
1765
|
backsplashVisible = false;
|
|
@@ -1645,49 +1800,22 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1645
1800
|
camPos = camera.position;
|
|
1646
1801
|
getPoint(event, altitude);
|
|
1647
1802
|
if (Point.x > _this2.props.state.scene.width || Point.x < 0 || Point.y > _this2.props.state.scene.height || Point.y < 0) return;
|
|
1648
|
-
|
|
1649
|
-
selectedObject = {
|
|
1650
|
-
layerID: _layerID
|
|
1651
|
-
};
|
|
1652
|
-
var _layer = _this2.props.state.scene.getIn(['layers', selectedObject.layerID]);
|
|
1653
|
-
var polygon = lineRect(_layer);
|
|
1654
|
-
var isCursorInArea = GeometryUtils.ContainsPoint(polygon, Point.x, Point.y);
|
|
1803
|
+
_this2.getSelectedObject();
|
|
1655
1804
|
var _drawingSupport = _this2.props.state.drawingSupport;
|
|
1656
1805
|
if (!_drawingSupport.has('currentID')) {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
// if cursor is outside the room area,
|
|
1661
|
-
// place the item at center of room area.
|
|
1662
|
-
if (!isCursorInArea && polygon.length > 0) {
|
|
1663
|
-
// rebuild polygon variable to be suitable for getCentroid() function
|
|
1664
|
-
var points = [];
|
|
1665
|
-
var point = [];
|
|
1666
|
-
polygon === null || polygon === void 0 || polygon.forEach(function (value, index) {
|
|
1667
|
-
point.push(value);
|
|
1668
|
-
if (index % 2 === 1) {
|
|
1669
|
-
points.push(point);
|
|
1670
|
-
point = [];
|
|
1671
|
-
}
|
|
1672
|
-
});
|
|
1673
|
-
var centroid = GeometryUtils.getCentroidOfPolygon(points);
|
|
1674
|
-
initialX = centroid[0];
|
|
1675
|
-
initialY = centroid[1];
|
|
1676
|
-
}
|
|
1677
|
-
_this2.context.itemsActions.updateDrawingItem(_this2.props.state.scene.selectedLayer, initialX, initialY);
|
|
1678
|
-
sPoint.set(initialX, initialY);
|
|
1806
|
+
_this2.context.itemsActions.updateDrawingItem(selectedObject.layerID, Point.x, Point.y);
|
|
1807
|
+
sPoint.set(Point.x, Point.y);
|
|
1679
1808
|
} else {
|
|
1680
|
-
var itemID = _this2.props.state.drawingSupport.get('currentID');
|
|
1681
|
-
selectedObject.itemID = itemID;
|
|
1682
1809
|
var mX = Point.x - sPoint.x;
|
|
1683
1810
|
var mY = Point.y - sPoint.y;
|
|
1811
|
+
var _layer = _this2.props.state.scene.getIn(['layers', selectedObject.layerID]);
|
|
1684
1812
|
var item3D = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1685
1813
|
deleteSpecifiedMeshObjects('TransformBox');
|
|
1686
|
-
deleteSpecifiedMeshObjects('WarningBox' + itemID);
|
|
1687
|
-
var item = _layer.
|
|
1814
|
+
deleteSpecifiedMeshObjects('WarningBox' + selectedObject.itemID);
|
|
1815
|
+
var item = _layer.getIn(['items', selectedObject.itemID]);
|
|
1816
|
+
if (!item3D || !item) return;
|
|
1688
1817
|
if (item.counterTop.uri == '') item.counterTop.uri = _layer.counterTop.uri;
|
|
1689
1818
|
var sRot = item.rotation;
|
|
1690
|
-
if (!item3D) return;
|
|
1691
1819
|
var originPos = item3D.position.clone();
|
|
1692
1820
|
var tPos = new Three.Vector2(mX + originPos.x, mY - originPos.z);
|
|
1693
1821
|
var sBounding = item3D.children[0].userData;
|
|
@@ -1706,78 +1834,28 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1706
1834
|
}
|
|
1707
1835
|
}, item, _this2.context.catalog)) {
|
|
1708
1836
|
_this2.collisionSlide(item3D, originPos, _layer, sVertices, tPos, item);
|
|
1709
|
-
//return;
|
|
1710
1837
|
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1838
|
+
var polygonPoint = GeometryUtils.getPoylgonPoints(_layer);
|
|
1839
|
+
if (polygonPoint.length > 0) {
|
|
1840
|
+
var PolygonSect = GeometryUtils.ContainsPoint(polygonPoint, _nx, _ny);
|
|
1713
1841
|
if (!PolygonSect) {
|
|
1714
|
-
var _GeometryUtils$
|
|
1715
|
-
cx = _GeometryUtils$
|
|
1716
|
-
cy = _GeometryUtils$
|
|
1717
|
-
crot = _GeometryUtils$
|
|
1842
|
+
var _GeometryUtils$calcCr2 = GeometryUtils.calcCreateSnap(allItemRect, allItemSnap, allLineRects, allLineSnap, allRect, Point.x, Point.y, polygonPoint),
|
|
1843
|
+
cx = _GeometryUtils$calcCr2.cx,
|
|
1844
|
+
cy = _GeometryUtils$calcCr2.cy,
|
|
1845
|
+
crot = _GeometryUtils$calcCr2.crot;
|
|
1718
1846
|
_nx = cx;
|
|
1719
1847
|
_ny = cy;
|
|
1720
1848
|
rot = crot;
|
|
1721
1849
|
}
|
|
1722
1850
|
}
|
|
1723
|
-
if (
|
|
1724
|
-
var
|
|
1725
|
-
if (!
|
|
1851
|
+
if (polygonPoint.length > 0) {
|
|
1852
|
+
var isSect = GeometryUtils.ContainsPoint(polygonPoint, _nx, _ny);
|
|
1853
|
+
if (!isSect) return;
|
|
1726
1854
|
}
|
|
1727
1855
|
actions.itemsActions.updateDraggingItemChanged(_nx, _ny, selectedObject.layerID, selectedObject.itemID);
|
|
1728
1856
|
actions.itemsActions.updateRotatingItemChanged(rot, selectedObject.layerID, selectedObject.itemID);
|
|
1729
1857
|
sPoint.set(_nx, _ny);
|
|
1730
|
-
|
|
1731
|
-
var pointArray = [],
|
|
1732
|
-
cnt = 0;
|
|
1733
|
-
pointArray.push([fVLine[0].userData.distance, 90]);
|
|
1734
|
-
pointArray.push([fVLine[1].userData.distance, -90]);
|
|
1735
|
-
pointArray.push([fVLine[2].userData.distance, 180]);
|
|
1736
|
-
pointArray.push([fVLine[3].userData.distance, 0]);
|
|
1737
|
-
pointArray.forEach(function (pointElement, index) {
|
|
1738
|
-
if (pointElement[0] == undefined) pointArray[index][0] = 0;
|
|
1739
|
-
});
|
|
1740
|
-
pointArray.forEach(function (pointElement) {
|
|
1741
|
-
if (pointElement[0] == 0) cnt++;
|
|
1742
|
-
});
|
|
1743
|
-
if (cnt == 4 || cnt == 3) {
|
|
1744
|
-
pointArray[0][0] = 100;
|
|
1745
|
-
pointArray[1][0] = 100;
|
|
1746
|
-
}
|
|
1747
|
-
actions.itemsActions.storeDistArray(_layer.id, item.id, pointArray);
|
|
1748
|
-
var minDis = fVLine[0].userData.distance;
|
|
1749
|
-
var snapObj = fVLine[0];
|
|
1750
|
-
var iPos = item3D.position.clone();
|
|
1751
|
-
var snapDis = Math.sqrt((iPos.x - targetPoint.x) * (iPos.x - targetPoint.x) + (iPos.z - targetPoint.z) * (iPos.z - targetPoint.z));
|
|
1752
|
-
if (snapDis >= 100 && snapObj != null) {
|
|
1753
|
-
removeSnapBox();
|
|
1754
|
-
backsplashVisible = false;
|
|
1755
|
-
//console.log('1 snap no');
|
|
1756
|
-
}
|
|
1757
|
-
for (var _i11 = 1; _i11 < fVLine.length; _i11++) {
|
|
1758
|
-
if (minDis > fVLine[_i11].userData.distance) {
|
|
1759
|
-
minDis = fVLine[_i11].userData.distance;
|
|
1760
|
-
snapObj = fVLine[_i11];
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
if (snapBox == null) {
|
|
1764
|
-
snapFlag = false;
|
|
1765
|
-
}
|
|
1766
|
-
actions.sceneActions.updateMovingState(false);
|
|
1767
|
-
if (minDis < snapDelta && !snapFlag) {
|
|
1768
|
-
_this2.snap(snapObj, _layer);
|
|
1769
|
-
snapFlag = true;
|
|
1770
|
-
//console.log('1 snap Yes')
|
|
1771
|
-
getDistances(_layer, true);
|
|
1772
|
-
var _i12 = 0;
|
|
1773
|
-
for (_i12 = 0; _i12 < fVLine.length; _i12++) {
|
|
1774
|
-
if (fVLine[_i12].userData.distance < snapDelta) {
|
|
1775
|
-
break;
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
if (_i12 === fVLine.length) backsplashVisible = false;else backsplashVisible = true;
|
|
1779
|
-
}
|
|
1780
|
-
actions.itemsActions.setBacksplashVisible(selectedObject.itemID, backsplashVisible);
|
|
1858
|
+
_this2.handleAfterMovingItem();
|
|
1781
1859
|
}
|
|
1782
1860
|
}
|
|
1783
1861
|
if (bRotate) {
|
|
@@ -1845,78 +1923,28 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1845
1923
|
_this2.collisionSlide(_item3D2, _originPos, _layer3, _sVertices, _tPos4, _item5);
|
|
1846
1924
|
//return;
|
|
1847
1925
|
}
|
|
1848
|
-
var
|
|
1849
|
-
if (
|
|
1850
|
-
var _PolygonSect = GeometryUtils.ContainsPoint(
|
|
1926
|
+
var _polygonPoint = GeometryUtils.getPoylgonPoints(_layer3);
|
|
1927
|
+
if (_polygonPoint.length > 0) {
|
|
1928
|
+
var _PolygonSect = GeometryUtils.ContainsPoint(_polygonPoint, _nx3, _ny3);
|
|
1851
1929
|
if (!_PolygonSect) {
|
|
1852
|
-
var _GeometryUtils$
|
|
1853
|
-
_cx3 = _GeometryUtils$
|
|
1854
|
-
_cy = _GeometryUtils$
|
|
1855
|
-
_crot = _GeometryUtils$
|
|
1930
|
+
var _GeometryUtils$calcCr3 = GeometryUtils.calcCreateSnap(allItemRect, allItemSnap, allLineRects, allLineSnap, allRect, Point.x, Point.y, _polygonPoint),
|
|
1931
|
+
_cx3 = _GeometryUtils$calcCr3.cx,
|
|
1932
|
+
_cy = _GeometryUtils$calcCr3.cy,
|
|
1933
|
+
_crot = _GeometryUtils$calcCr3.crot;
|
|
1856
1934
|
_nx3 = _cx3;
|
|
1857
1935
|
_ny3 = _cy;
|
|
1858
1936
|
_rot = _crot;
|
|
1859
1937
|
}
|
|
1860
1938
|
}
|
|
1861
|
-
var
|
|
1862
|
-
if (
|
|
1863
|
-
var Sect = GeometryUtils.ContainsPoint(
|
|
1939
|
+
var polygon = GeometryUtils.getPoylgonPoints(_layer3);
|
|
1940
|
+
if (polygon.length > 0) {
|
|
1941
|
+
var Sect = GeometryUtils.ContainsPoint(polygon, _nx3, _ny3);
|
|
1864
1942
|
if (!Sect) return;
|
|
1865
1943
|
}
|
|
1866
1944
|
actions.itemsActions.updateDraggingItemChanged(_nx3, _ny3, selectedObject.layerID, selectedObject.itemID);
|
|
1867
1945
|
actions.itemsActions.updateRotatingItemChanged(_rot, selectedObject.layerID, selectedObject.itemID);
|
|
1868
1946
|
sPoint.set(_nx3, _ny3);
|
|
1869
|
-
|
|
1870
|
-
var _pointArray = [],
|
|
1871
|
-
_cnt = 0;
|
|
1872
|
-
_pointArray.push([fVLine[0].userData.distance, 90]);
|
|
1873
|
-
_pointArray.push([fVLine[1].userData.distance, -90]);
|
|
1874
|
-
_pointArray.push([fVLine[2].userData.distance, 180]);
|
|
1875
|
-
_pointArray.push([fVLine[3].userData.distance, 0]);
|
|
1876
|
-
_pointArray.forEach(function (pointElement, index) {
|
|
1877
|
-
if (pointElement[0] == undefined) _pointArray[index][0] = 0;
|
|
1878
|
-
});
|
|
1879
|
-
_pointArray.forEach(function (pointElement) {
|
|
1880
|
-
if (pointElement[0] == 0) _cnt++;
|
|
1881
|
-
});
|
|
1882
|
-
if (_cnt == 4 || _cnt == 3) {
|
|
1883
|
-
_pointArray[0][0] = 100;
|
|
1884
|
-
_pointArray[1][0] = 100;
|
|
1885
|
-
}
|
|
1886
|
-
actions.itemsActions.storeDistArray(_layer3.id, _item5.id, _pointArray);
|
|
1887
|
-
var _minDis = fVLine[0].userData.distance;
|
|
1888
|
-
var _snapObj = fVLine[0];
|
|
1889
|
-
var _iPos = _item3D2.position.clone();
|
|
1890
|
-
var _snapDis = Math.sqrt((_iPos.x - targetPoint.x) * (_iPos.x - targetPoint.x) + (_iPos.z - targetPoint.z) * (_iPos.z - targetPoint.z));
|
|
1891
|
-
if (_snapDis >= 100 && _snapObj != null) {
|
|
1892
|
-
removeSnapBox();
|
|
1893
|
-
backsplashVisible = false;
|
|
1894
|
-
//console.log('1 snap no');
|
|
1895
|
-
}
|
|
1896
|
-
for (var _i13 = 1; _i13 < fVLine.length; _i13++) {
|
|
1897
|
-
if (_minDis > fVLine[_i13].userData.distance) {
|
|
1898
|
-
_minDis = fVLine[_i13].userData.distance;
|
|
1899
|
-
_snapObj = fVLine[_i13];
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
if (snapBox == null) {
|
|
1903
|
-
snapFlag = false;
|
|
1904
|
-
}
|
|
1905
|
-
actions.sceneActions.updateMovingState(false);
|
|
1906
|
-
if (_minDis < snapDelta && !snapFlag) {
|
|
1907
|
-
_this2.snap(_snapObj, _layer3);
|
|
1908
|
-
snapFlag = true;
|
|
1909
|
-
//console.log('1 snap Yes')
|
|
1910
|
-
getDistances(_layer3, true);
|
|
1911
|
-
var _i14 = 0;
|
|
1912
|
-
for (_i14 = 0; _i14 < fVLine.length; _i14++) {
|
|
1913
|
-
if (fVLine[_i14].userData.distance < snapDelta) {
|
|
1914
|
-
break;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
if (_i14 === fVLine.length) backsplashVisible = false;else backsplashVisible = true;
|
|
1918
|
-
}
|
|
1919
|
-
actions.itemsActions.setBacksplashVisible(selectedObject.itemID, backsplashVisible);
|
|
1947
|
+
_this2.handleAfterMovingItem();
|
|
1920
1948
|
}
|
|
1921
1949
|
}
|
|
1922
1950
|
if (!bMove && !bRotate && !bMoveUP) {
|
|
@@ -1929,13 +1957,13 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1929
1957
|
rayDirection = rayDirection.normalize();
|
|
1930
1958
|
var meshes = getAllMeshes(toIntersect);
|
|
1931
1959
|
var intersects = raycaster.intersectObjects(meshes, true);
|
|
1932
|
-
var
|
|
1960
|
+
var _i11;
|
|
1933
1961
|
if (intersects.length > 0 && !isNaN(intersects[0].distance)) {
|
|
1934
|
-
for (
|
|
1935
|
-
if (intersects[
|
|
1962
|
+
for (_i11 = 0; _i11 < intersects.length; _i11++) {
|
|
1963
|
+
if (intersects[_i11].object.name === 'warningObj') break;
|
|
1936
1964
|
}
|
|
1937
|
-
if (intersects[
|
|
1938
|
-
var distance = Math.sqrt(Math.pow((intersects[
|
|
1965
|
+
if (intersects[_i11] !== undefined) {
|
|
1966
|
+
var distance = Math.sqrt(Math.pow((intersects[_i11].uv.x - 0.5) * 50, 2) + Math.pow((intersects[_i11].uv.y - 0.75) * 100, 2));
|
|
1939
1967
|
if (distance <= 20) {
|
|
1940
1968
|
var infoPos = {
|
|
1941
1969
|
x: 0,
|
|
@@ -1961,6 +1989,61 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1961
1989
|
}
|
|
1962
1990
|
document.getElementById('warning_box_2d').style.display = 'none';
|
|
1963
1991
|
};
|
|
1992
|
+
|
|
1993
|
+
// handle snapBox, distArray, backsplash
|
|
1994
|
+
this.handleAfterMovingItem = function () {
|
|
1995
|
+
var layer = _this2.props.state.scene.getIn(['layers', selectedObject.layerID]);
|
|
1996
|
+
var item3D = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1997
|
+
getDistances(layer);
|
|
1998
|
+
var pointArray = [],
|
|
1999
|
+
cnt = 0;
|
|
2000
|
+
pointArray.push([fVLine[0].userData.distance, 90]);
|
|
2001
|
+
pointArray.push([fVLine[1].userData.distance, -90]);
|
|
2002
|
+
pointArray.push([fVLine[2].userData.distance, 180]);
|
|
2003
|
+
pointArray.push([fVLine[3].userData.distance, 0]);
|
|
2004
|
+
pointArray.forEach(function (pointElement, index) {
|
|
2005
|
+
if (pointElement[0] == undefined) pointArray[index][0] = 0;
|
|
2006
|
+
});
|
|
2007
|
+
pointArray.forEach(function (pointElement) {
|
|
2008
|
+
if (pointElement[0] == 0) cnt++;
|
|
2009
|
+
});
|
|
2010
|
+
if (cnt == 4 || cnt == 3) {
|
|
2011
|
+
pointArray[0][0] = 100;
|
|
2012
|
+
pointArray[1][0] = 100;
|
|
2013
|
+
}
|
|
2014
|
+
actions.itemsActions.storeDistArray(selectedObject.layerID, selectedObject.itemID, pointArray);
|
|
2015
|
+
var minDis = fVLine[0].userData.distance;
|
|
2016
|
+
var snapObj = fVLine[0];
|
|
2017
|
+
var iPos = item3D.position.clone();
|
|
2018
|
+
var snapDis = Math.sqrt((iPos.x - targetPoint.x) * (iPos.x - targetPoint.x) + (iPos.z - targetPoint.z) * (iPos.z - targetPoint.z));
|
|
2019
|
+
if (snapDis >= 100 && snapObj != null) {
|
|
2020
|
+
removeSnapBox();
|
|
2021
|
+
backsplashVisible = false;
|
|
2022
|
+
}
|
|
2023
|
+
for (var _i12 = 1; _i12 < fVLine.length; _i12++) {
|
|
2024
|
+
if (minDis > fVLine[_i12].userData.distance) {
|
|
2025
|
+
minDis = fVLine[_i12].userData.distance;
|
|
2026
|
+
snapObj = fVLine[_i12];
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
if (snapBox == null) {
|
|
2030
|
+
snapFlag = false;
|
|
2031
|
+
}
|
|
2032
|
+
actions.sceneActions.updateMovingState(false);
|
|
2033
|
+
if (minDis < snapDelta && !snapFlag) {
|
|
2034
|
+
_this2.snap(snapObj, layer);
|
|
2035
|
+
snapFlag = true;
|
|
2036
|
+
getDistances(layer, true);
|
|
2037
|
+
var _i13 = 0;
|
|
2038
|
+
for (_i13 = 0; _i13 < fVLine.length; _i13++) {
|
|
2039
|
+
if (fVLine[_i13].userData.distance < snapDelta) {
|
|
2040
|
+
break;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
if (_i13 === fVLine.length) backsplashVisible = false;else backsplashVisible = true;
|
|
2044
|
+
}
|
|
2045
|
+
actions.itemsActions.setBacksplashVisible(selectedObject.itemID, backsplashVisible);
|
|
2046
|
+
};
|
|
1964
2047
|
this.onkeydown = function (event) {
|
|
1965
2048
|
if (_this2.props.keyDownEnable && !isElevationView(state.mode)) {
|
|
1966
2049
|
switch (event.keyCode) {
|
|
@@ -2016,6 +2099,14 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2016
2099
|
this.handleKeyDown = function (event) {
|
|
2017
2100
|
_this2.onkeydown(event);
|
|
2018
2101
|
};
|
|
2102
|
+
this.getSelectedObject = function () {
|
|
2103
|
+
var layerID = _this2.props.state.scene.selectedLayer;
|
|
2104
|
+
var itemID = _this2.props.state.drawingSupport.get('currentID');
|
|
2105
|
+
selectedObject = {
|
|
2106
|
+
layerID: layerID,
|
|
2107
|
+
itemID: itemID
|
|
2108
|
+
};
|
|
2109
|
+
};
|
|
2019
2110
|
|
|
2020
2111
|
// Renderer & Event listener
|
|
2021
2112
|
|
|
@@ -2024,6 +2115,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2024
2115
|
if (!this.props.downloadFlag) {
|
|
2025
2116
|
this.renderer.domElement.addEventListener('mousedown', this.mouseDownEvent);
|
|
2026
2117
|
this.renderer.domElement.addEventListener('mouseup', this.mouseUpEvent);
|
|
2118
|
+
this.renderer.domElement.addEventListener('mouseenter', this.mouseEnterEvent);
|
|
2027
2119
|
this.renderer.domElement.addEventListener('mousemove', this.mouseMoveEvent);
|
|
2028
2120
|
window.addEventListener('keydown', this.onkeydown);
|
|
2029
2121
|
window.SPKeyDown = this.handleKeyDown;
|
|
@@ -2164,9 +2256,9 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2164
2256
|
function render() {
|
|
2165
2257
|
var delta = clock.getDelta(); // Get time delta for smooth updates
|
|
2166
2258
|
if (!isElevationView(state.mode)) cameraControls.update(delta);
|
|
2167
|
-
for (var
|
|
2168
|
-
lights[
|
|
2169
|
-
lights[
|
|
2259
|
+
for (var _i14 = 0; _i14 < lights.length; _i14++) {
|
|
2260
|
+
lights[_i14].light.position.set(planData.plan.position.x + lights[_i14].x, planData.plan.position.y + lights[_i14].height - 10, planData.plan.position.z - lights[_i14].y);
|
|
2261
|
+
lights[_i14].target.position.set(planData.plan.position.x + lights[_i14].x, planData.plan.position.y, planData.plan.position.z - lights[_i14].y);
|
|
2170
2262
|
}
|
|
2171
2263
|
camera.updateMatrix();
|
|
2172
2264
|
camera.updateMatrixWorld();
|