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.
- package/es/index.js +3 -627
- package/es/index.js.LICENSE.txt +45 -0
- package/es/index.js.map +1 -0
- package/package.json +9 -5
- package/es/@history.js +0 -2
- package/es/AppContext.js +0 -6
- package/es/LiteKitchenConfigurator.js +0 -474
- package/es/LiteRenderer.js +0 -363
- package/es/WorkSpace.js +0 -851
- package/es/actions/area-actions.js +0 -14
- package/es/actions/export.js +0 -23
- package/es/actions/groups-actions.js +0 -89
- package/es/actions/holes-actions.js +0 -119
- package/es/actions/items-actions.js +0 -316
- package/es/actions/lines-actions.js +0 -83
- package/es/actions/project-actions.js +0 -298
- package/es/actions/scene-actions.js +0 -33
- package/es/actions/vertices-actions.js +0 -27
- package/es/actions/viewer2d-actions.js +0 -58
- package/es/actions/viewer3d-actions.js +0 -23
- 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 +0 -177
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -11
- 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 +0 -55
- 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 +0 -33
- package/es/assets/img/svg/2d_delete_object1.svg +0 -33
- package/es/assets/img/svg/2d_lock_object.svg +0 -33
- package/es/assets/img/svg/3d_item_move.svg +0 -106
- package/es/assets/img/svg/3d_item_rotation.svg +0 -76
- package/es/assets/img/svg/3d_item_warning_edit.svg +0 -77
- package/es/assets/img/svg/3d_item_warning_info.svg +0 -81
- package/es/assets/img/svg/accessories.svg +0 -4
- package/es/assets/img/svg/angle_icon.svg +0 -39
- package/es/assets/img/svg/blank_div.svg +0 -14
- package/es/assets/img/svg/bottombar/2d3d_button.svg +0 -3
- package/es/assets/img/svg/bottombar/2d3d_button_active.svg +0 -3
- package/es/assets/img/svg/bottombar/2d3d_toggle.svg +0 -4
- package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +0 -4
- package/es/assets/img/svg/bottombar/arrow-down.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-left.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-minus.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-plus.svg +0 -11
- package/es/assets/img/svg/bottombar/arrow-right.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-up.svg +0 -3
- package/es/assets/img/svg/bottombar/collapse.svg +0 -3
- package/es/assets/img/svg/bottombar/elevation-back.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-front.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-left.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-right.svg +0 -7
- package/es/assets/img/svg/bottombar/elevation.svg +0 -13
- package/es/assets/img/svg/bottombar/expand.svg +0 -3
- package/es/assets/img/svg/bottombar/help.svg +0 -72
- package/es/assets/img/svg/bottombar/incm_toggle.svg +0 -39
- package/es/assets/img/svg/bottombar/pan_1.svg +0 -57
- package/es/assets/img/svg/bottombar/pan_2.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_3.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_4.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_5.svg +0 -27
- package/es/assets/img/svg/bottombar/settings.svg +0 -23
- package/es/assets/img/svg/bottombar/spin-down.svg +0 -76
- package/es/assets/img/svg/bottombar/spin-left.svg +0 -75
- package/es/assets/img/svg/bottombar/spin-right.svg +0 -75
- package/es/assets/img/svg/bottombar/spin-up.svg +0 -76
- package/es/assets/img/svg/bottombar/spin_1.svg +0 -48
- package/es/assets/img/svg/bottombar/spin_2.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_3.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_4.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_5.svg +0 -31
- package/es/assets/img/svg/bottombar/zoomin.svg +0 -29
- package/es/assets/img/svg/bottombar/zoomout.svg +0 -26
- package/es/assets/img/svg/check.svg +0 -10
- package/es/assets/img/svg/close.svg +0 -11
- package/es/assets/img/svg/color/Black.svg +0 -3
- package/es/assets/img/svg/color/Blue.svg +0 -3
- package/es/assets/img/svg/color/Brown.svg +0 -9
- package/es/assets/img/svg/color/Cream.svg +0 -3
- package/es/assets/img/svg/color/Dark.svg +0 -9
- package/es/assets/img/svg/color/Gray.svg +0 -3
- package/es/assets/img/svg/color/Green.svg +0 -3
- package/es/assets/img/svg/color/Light.svg +0 -9
- package/es/assets/img/svg/color/Medium.svg +0 -9
- package/es/assets/img/svg/color/Unfinished.svg +0 -9
- package/es/assets/img/svg/color/White.svg +0 -3
- package/es/assets/img/svg/color/White.svg.bak +0 -3
- 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 +0 -11
- package/es/assets/img/svg/delete.svg +0 -3
- package/es/assets/img/svg/detail.svg +0 -77
- package/es/assets/img/svg/disclaimer/background.svg +0 -758
- package/es/assets/img/svg/disclaimer/logo-dots.svg +0 -11
- package/es/assets/img/svg/door/Closet.svg +0 -11
- package/es/assets/img/svg/door/Exterior.svg +0 -5
- package/es/assets/img/svg/door/Framed_dorway.svg +0 -5
- package/es/assets/img/svg/door/Frameless_dorway.svg +0 -5
- package/es/assets/img/svg/door/Interior.svg +0 -7
- package/es/assets/img/svg/door/Sliding.svg +0 -5
- package/es/assets/img/svg/doors_closet.svg +0 -47
- package/es/assets/img/svg/doors_exterior.svg +0 -25
- package/es/assets/img/svg/doors_interior.svg +0 -29
- package/es/assets/img/svg/doors_patio.svg +0 -26
- package/es/assets/img/svg/duplicate.svg +0 -11
- package/es/assets/img/svg/duplicate_object_left.svg +0 -32
- package/es/assets/img/svg/duplicate_object_right.svg +0 -32
- package/es/assets/img/svg/filtersActive.svg +0 -19
- package/es/assets/img/svg/firstsetting/L.svg +0 -3
- package/es/assets/img/svg/firstsetting/L2.svg +0 -3
- package/es/assets/img/svg/firstsetting/Open.svg +0 -3
- package/es/assets/img/svg/firstsetting/Square.svg +0 -3
- package/es/assets/img/svg/firstsetting/bar-active.svg +0 -9
- package/es/assets/img/svg/firstsetting/bar-normal.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-current.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-done.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-not-done.svg +0 -3
- package/es/assets/img/svg/firstsetting/check-active.svg +0 -3
- package/es/assets/img/svg/firstsetting/check-normal.svg +0 -3
- package/es/assets/img/svg/firstsetting/pencil.svg +0 -11
- package/es/assets/img/svg/green_checkmark.svg +0 -27
- package/es/assets/img/svg/headerbar/assist.svg +0 -3
- package/es/assets/img/svg/headerbar/cart.svg +0 -3
- package/es/assets/img/svg/headerbar/check.svg +0 -10
- package/es/assets/img/svg/headerbar/consult_designer.svg +0 -45
- package/es/assets/img/svg/headerbar/edit_name.svg +0 -26
- package/es/assets/img/svg/headerbar/file-dollar.svg +0 -13
- package/es/assets/img/svg/headerbar/hamburger_menu.svg +0 -32
- package/es/assets/img/svg/headerbar/plus.svg +0 -11
- package/es/assets/img/svg/headerbar/review_quote.svg +0 -44
- package/es/assets/img/svg/headerbar/ruler-measure.svg +0 -11
- package/es/assets/img/svg/headerbar/save.svg +0 -3
- package/es/assets/img/svg/headerbar/setting.svg +0 -75
- package/es/assets/img/svg/help/check.svg +0 -10
- package/es/assets/img/svg/help/search.svg +0 -76
- package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +0 -27
- package/es/assets/img/svg/intro/1-start-with-floorplan.svg +0 -26
- package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +0 -28
- package/es/assets/img/svg/intro/2-start-from-scratch.svg +0 -27
- package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +0 -19
- package/es/assets/img/svg/intro/3-retrieve-project.svg +0 -18
- package/es/assets/img/svg/invert.svg +0 -127
- package/es/assets/img/svg/lefttoolbar/appliance-active.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/appliance.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +0 -10
- package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/cabinet.svg +0 -10
- package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +0 -89
- package/es/assets/img/svg/lefttoolbar/door-style-active.svg +0 -20
- package/es/assets/img/svg/lefttoolbar/door-style.svg +0 -20
- package/es/assets/img/svg/lefttoolbar/door.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/error_icon.svg +0 -81
- package/es/assets/img/svg/lefttoolbar/finishing-active.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/finishing.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +0 -86
- package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +0 -18
- package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape.svg +0 -18
- package/es/assets/img/svg/lefttoolbar/search.svg +0 -76
- package/es/assets/img/svg/lefttoolbar/view_more.svg +0 -86
- package/es/assets/img/svg/lefttoolbar/warning_icon.svg +0 -81
- package/es/assets/img/svg/lefttoolbar/window.svg +0 -12
- package/es/assets/img/svg/logo.svg +0 -11
- package/es/assets/img/svg/logo_with_text.svg +0 -25
- package/es/assets/img/svg/menubar/login.svg +0 -84
- package/es/assets/img/svg/menubar/my_projects.svg +0 -85
- package/es/assets/img/svg/menubar/new_project.svg +0 -110
- package/es/assets/img/svg/menubar/save_project.svg +0 -84
- package/es/assets/img/svg/options.svg +0 -3
- package/es/assets/img/svg/positioning.svg +0 -3
- package/es/assets/img/svg/rotate.png +0 -0
- package/es/assets/img/svg/rotate.svg +0 -17
- package/es/assets/img/svg/rotate_object_clockwise.svg +0 -26
- package/es/assets/img/svg/rotate_object_counterclockwise.svg +0 -26
- package/es/assets/img/svg/toggleFilters.svg +0 -19
- package/es/assets/img/svg/toolbar/add_appliances_active.svg +0 -64
- package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +0 -52
- package/es/assets/img/svg/toolbar/add_button.svg +0 -36
- package/es/assets/img/svg/toolbar/add_cabinets_active.svg +0 -59
- package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +0 -49
- package/es/assets/img/svg/toolbar/add_items_doors.svg +0 -25
- package/es/assets/img/svg/toolbar/add_items_doorways.svg +0 -24
- package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +0 -32
- package/es/assets/img/svg/toolbar/add_items_windows.svg +0 -28
- package/es/assets/img/svg/toolbar/apply_button.svg +0 -38
- package/es/assets/img/svg/toolbar/arrow-plus.svg +0 -11
- package/es/assets/img/svg/toolbar/backsplash.svg +0 -8
- package/es/assets/img/svg/toolbar/cancel_button.svg +0 -37
- package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +0 -47
- package/es/assets/img/svg/toolbar/countertop.svg +0 -7
- package/es/assets/img/svg/toolbar/dcm.png +0 -0
- package/es/assets/img/svg/toolbar/dcm_off.svg +0 -12
- package/es/assets/img/svg/toolbar/dcm_on.svg +0 -474
- package/es/assets/img/svg/toolbar/delete_button.svg +0 -37
- package/es/assets/img/svg/toolbar/download.svg +0 -77
- package/es/assets/img/svg/toolbar/draw_custom_floor.svg +0 -31
- package/es/assets/img/svg/toolbar/edit_button.svg +0 -75
- package/es/assets/img/svg/toolbar/email_quote_button.svg +0 -44
- package/es/assets/img/svg/toolbar/fbm.png +0 -0
- package/es/assets/img/svg/toolbar/finishing_touches_active.svg +0 -54
- package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +0 -42
- package/es/assets/img/svg/toolbar/floorstyle.svg +0 -9
- package/es/assets/img/svg/toolbar/fmb.png +0 -0
- package/es/assets/img/svg/toolbar/fmb_off.svg +0 -12
- package/es/assets/img/svg/toolbar/fmb_on.svg +0 -489
- package/es/assets/img/svg/toolbar/furnishings_icon.svg +0 -6
- package/es/assets/img/svg/toolbar/get_started_button.svg +0 -41
- package/es/assets/img/svg/toolbar/handles.svg +0 -5
- package/es/assets/img/svg/toolbar/lighting.svg +0 -7
- package/es/assets/img/svg/toolbar/lrm.png +0 -0
- package/es/assets/img/svg/toolbar/lrm_off.svg +0 -12
- package/es/assets/img/svg/toolbar/lrm_on.svg +0 -470
- package/es/assets/img/svg/toolbar/make_floorplan_active.svg +0 -66
- package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +0 -52
- package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_layout.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +0 -20
- package/es/assets/img/svg/toolbar/redo_button.svg +0 -75
- package/es/assets/img/svg/toolbar/redo_button1.svg +0 -75
- package/es/assets/img/svg/toolbar/review_quote_active.svg +0 -14
- package/es/assets/img/svg/toolbar/review_quote_inactive.svg +0 -44
- package/es/assets/img/svg/toolbar/save_project_button.svg +0 -44
- package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +0 -67
- package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +0 -57
- package/es/assets/img/svg/toolbar/shopping-cart.svg +0 -13
- package/es/assets/img/svg/toolbar/style_change_button.svg +0 -47
- package/es/assets/img/svg/toolbar/take_picture.svg +0 -75
- package/es/assets/img/svg/toolbar/undo_button.svg +0 -76
- package/es/assets/img/svg/toolbar/undo_button1.svg +0 -76
- package/es/assets/img/svg/toolbar/use_button.svg +0 -37
- package/es/assets/img/svg/toolbar/wall_color_icon.svg +0 -6
- package/es/assets/img/svg/topbar/edit_active.svg +0 -10
- package/es/assets/img/svg/topbar/edit_inactive.svg +0 -10
- package/es/assets/img/svg/topbar/redo_active.svg +0 -42
- package/es/assets/img/svg/topbar/redo_inactive.svg +0 -23
- package/es/assets/img/svg/topbar/select_all_active.svg +0 -50
- package/es/assets/img/svg/topbar/select_all_inactive.svg +0 -32
- package/es/assets/img/svg/topbar/take_picture_active.svg +0 -51
- package/es/assets/img/svg/topbar/take_picture_inactive.svg +0 -26
- package/es/assets/img/svg/topbar/undo_active.svg +0 -42
- package/es/assets/img/svg/topbar/undo_inactive.svg +0 -23
- package/es/assets/img/svg/warning_info_2d.svg +0 -81
- package/es/assets/img/svg/window/Clear.svg +0 -3
- package/es/assets/img/svg/window/Cross.svg +0 -5
- package/es/assets/img/svg/window/Double_hung.svg +0 -4
- package/es/assets/img/svg/window/Vertical.svg +0 -4
- package/es/assets/img/svg/windows_clear.svg +0 -23
- package/es/assets/img/svg/windows_cross.svg +0 -28
- package/es/assets/img/svg/windows_double_hung.svg +0 -24
- package/es/assets/img/svg/windows_vertical.svg +0 -24
- package/es/assets/img/svg/wizardstep/Custom.svg +0 -3
- package/es/assets/img/svg/wizardstep/Dashed_line.svg +0 -3
- package/es/assets/img/svg/wizardstep/L.svg +0 -3
- package/es/assets/img/svg/wizardstep/L2.svg +0 -3
- package/es/assets/img/svg/wizardstep/Open.svg +0 -3
- package/es/assets/img/svg/wizardstep/Square.svg +0 -3
- package/es/assets/img/svg/wizardstep/bar-active.svg +0 -9
- package/es/assets/img/svg/wizardstep/bar-normal.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-current.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-done.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-not-done.svg +0 -3
- package/es/assets/img/svg/wizardstep/check-active.svg +0 -3
- package/es/assets/img/svg/wizardstep/check-normal.svg +0 -3
- package/es/assets/img/svg/wizardstep/detail_view.svg +0 -87
- package/es/assets/img/svg/wizardstep/pencil.svg +0 -11
- package/es/assets/img/svg/wizardstep/tile_view.svg +0 -95
- 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 +0 -1
- package/es/assets/model/FBM.bin +0 -0
- package/es/assets/model/FBM.fbx +0 -0
- package/es/assets/model/FBM.gltf +0 -1
- package/es/assets/model/LRM.bin +0 -0
- package/es/assets/model/LRM.fbx +0 -0
- package/es/assets/model/LRM.gltf +0 -1
- package/es/assets/rtastore_logo.png +0 -0
- package/es/catalog/areas/area/planner-element.js +0 -45
- package/es/catalog/back.png +0 -0
- package/es/catalog/catalog.js +0 -265
- package/es/catalog/doors.png +0 -0
- package/es/catalog/doorways.png +0 -0
- package/es/catalog/envMap/nx.hdr +0 -0
- package/es/catalog/envMap/ny.hdr +0 -0
- package/es/catalog/envMap/nz.hdr +0 -0
- package/es/catalog/envMap/px.hdr +0 -0
- package/es/catalog/envMap/py.hdr +0 -0
- package/es/catalog/envMap/pz.hdr +0 -0
- package/es/catalog/export.js +0 -0
- package/es/catalog/factories/area-factory-3d.js +0 -182
- package/es/catalog/factories/area-factory.js +0 -78
- package/es/catalog/factories/export.js +0 -7
- package/es/catalog/factories/wall-factory-3d.js +0 -202
- package/es/catalog/factories/wall-factory.js +0 -267
- package/es/catalog/holes/door-closet/planner-element.js +0 -222
- package/es/catalog/holes/door-double/door_double.png +0 -0
- package/es/catalog/holes/door-double/planner-element.js +0 -315
- package/es/catalog/holes/door-exterior/planner-element.js +0 -215
- package/es/catalog/holes/door-interior/planner-element.js +0 -227
- package/es/catalog/holes/door-panic/panicDoor.png +0 -0
- package/es/catalog/holes/door-panic/planner-element.js +0 -503
- package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -463
- package/es/catalog/holes/door-sliding/planner-element.js +0 -225
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -145
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -104
- package/es/catalog/holes/export.js +0 -13
- package/es/catalog/holes/gate/gate.jpg +0 -0
- package/es/catalog/holes/window-clear/planner-element.js +0 -166
- package/es/catalog/holes/window-clear/texture.png +0 -0
- package/es/catalog/holes/window-cross/planner-element.js +0 -165
- package/es/catalog/holes/window-cross/texture.png +0 -0
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -303
- package/es/catalog/holes/window-double-hung/texture.png +0 -0
- package/es/catalog/holes/window-vertical/planner-element.js +0 -276
- package/es/catalog/holes/window-vertical/texture.png +0 -0
- package/es/catalog/lines/wall/planner-element.js +0 -79
- package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -26
- package/es/catalog/molding/molding-dcm/texture.png +0 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -26
- package/es/catalog/molding/molding-fbm/texture.png +0 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -26
- package/es/catalog/molding/molding-lrm/texture.png +0 -0
- package/es/catalog/properties/export.js +0 -21
- package/es/catalog/properties/property-checkbox.js +0 -68
- package/es/catalog/properties/property-color.js +0 -39
- package/es/catalog/properties/property-enum.js +0 -50
- package/es/catalog/properties/property-hidden.js +0 -19
- package/es/catalog/properties/property-lenght-measure.js +0 -96
- package/es/catalog/properties/property-length-measure.js +0 -80
- package/es/catalog/properties/property-length-measure_hole.js +0 -96
- package/es/catalog/properties/property-number.js +0 -48
- package/es/catalog/properties/property-read-only.js +0 -26
- package/es/catalog/properties/property-string.js +0 -48
- package/es/catalog/properties/property-toggle.js +0 -39
- package/es/catalog/properties/shared-property-style.js +0 -14
- package/es/catalog/utils/FuseUtils.js +0 -79
- package/es/catalog/utils/exporter.js +0 -161
- package/es/catalog/utils/geom-utils.js +0 -189
- package/es/catalog/utils/item-loader.js +0 -1602
- package/es/catalog/utils/load-obj.js +0 -91
- package/es/catalog/utils/mtl-loader.js +0 -357
- package/es/catalog/utils/obj-loader.js +0 -476
- package/es/catalog/windows.png +0 -0
- package/es/class/FuseUtils.js +0 -79
- package/es/class/area.js +0 -141
- package/es/class/export.js +0 -24
- package/es/class/group.js +0 -431
- package/es/class/guide.js +0 -58
- package/es/class/hole.js +0 -924
- package/es/class/item.js +0 -1884
- package/es/class/layer.js +0 -663
- package/es/class/line.js +0 -1229
- package/es/class/project.js +0 -937
- package/es/class/vertex.js +0 -198
- package/es/components/content.js +0 -135
- package/es/components/export.js +0 -9
- package/es/components/style/button.js +0 -106
- package/es/components/style/cancel-button.js +0 -21
- package/es/components/style/content-container.js +0 -30
- package/es/components/style/content-title.js +0 -25
- package/es/components/style/delete-button.js +0 -24
- package/es/components/style/export.js +0 -31
- package/es/components/style/form-block.js +0 -20
- package/es/components/style/form-color-input.js +0 -26
- package/es/components/style/form-label.js +0 -22
- package/es/components/style/form-number-input.js +0 -192
- package/es/components/style/form-number-input_2.js +0 -238
- package/es/components/style/form-select.js +0 -19
- package/es/components/style/form-slider.js +0 -60
- package/es/components/style/form-submit-button.js +0 -25
- package/es/components/style/form-text-input.js +0 -69
- package/es/components/viewer2d/area.js +0 -81
- package/es/components/viewer2d/export.js +0 -31
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer2d/grids/grid-streak.js +0 -36
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer2d/grids/grids.js +0 -30
- package/es/components/viewer2d/group.js +0 -48
- package/es/components/viewer2d/item.js +0 -242
- package/es/components/viewer2d/layer.js +0 -164
- package/es/components/viewer2d/line.js +0 -997
- package/es/components/viewer2d/ruler.js +0 -84
- package/es/components/viewer2d/rulerDist.js +0 -102
- package/es/components/viewer2d/rulerX.js +0 -142
- package/es/components/viewer2d/rulerY.js +0 -144
- package/es/components/viewer2d/scene.js +0 -108
- package/es/components/viewer2d/snap.js +0 -74
- package/es/components/viewer2d/state.js +0 -73
- package/es/components/viewer2d/utils.js +0 -193
- package/es/components/viewer2d/vertex.js +0 -66
- package/es/components/viewer2d/viewer2d.js +0 -1405
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2585
- package/es/components/viewer3d/dcm.js +0 -401
- package/es/components/viewer3d/fbm.js +0 -414
- package/es/components/viewer3d/front3D.js +0 -62
- package/es/components/viewer3d/grid-creator.js +0 -25
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer3d/grids/grid-streak.js +0 -27
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer3d/libs/first-person-controls.js +0 -67
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1281
- package/es/components/viewer3d/libs/mtl-loader.js +0 -357
- package/es/components/viewer3d/libs/obj-loader.js +0 -462
- package/es/components/viewer3d/libs/orbit-controls.js +0 -697
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -44
- package/es/components/viewer3d/lrm.js +0 -305
- package/es/components/viewer3d/model.js +0 -708
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -115
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -61
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -495
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -224
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -59
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -18
- package/es/components/viewer3d/scene-creator.js +0 -3818
- package/es/components/viewer3d/three-memory-cleaner.js +0 -51
- package/es/components/viewer3d/viewer3d-first-person.js +0 -311
- package/es/components/viewer3d/viewer3d.js +0 -2654
- package/es/constants.js +0 -769
- package/es/index.html.ejs +0 -264
- package/es/models.js +0 -512
- package/es/plugins/SVGLoader.js +0 -1414
- package/es/plugins/console-debugger.js +0 -34
- package/es/plugins/export.js +0 -7
- package/es/plugins/keyboard.js +0 -110
- package/es/reducers/areas-reducer.js +0 -12
- package/es/reducers/export.js +0 -25
- package/es/reducers/groups-reducer.js +0 -38
- package/es/reducers/holes-reducer.js +0 -62
- package/es/reducers/items-reducer.js +0 -143
- package/es/reducers/lines-reducer.js +0 -45
- package/es/reducers/project-reducer.js +0 -136
- package/es/reducers/reducer.js +0 -19
- package/es/reducers/scene-reducer.js +0 -28
- package/es/reducers/user-reducer.js +0 -41
- package/es/reducers/vertices-reducer.js +0 -19
- package/es/reducers/viewer2d-reducer.js +0 -77
- package/es/reducers/viewer3d-reducer.js +0 -58
- package/es/shared-style.js +0 -66
- package/es/translator/en.js +0 -104
- package/es/translator/it.js +0 -79
- package/es/translator/ru.js +0 -79
- package/es/translator/translator.js +0 -80
- package/es/utils/browser.js +0 -33
- package/es/utils/convert-units-lite.js +0 -29
- package/es/utils/email-validator.js +0 -4
- package/es/utils/export.js +0 -25
- package/es/utils/geometry.js +0 -2609
- package/es/utils/get-edges-of-subgraphs.js +0 -26
- package/es/utils/graph-cycles.js +0 -238
- package/es/utils/graph-inner-cycles.js +0 -46
- package/es/utils/graph.js +0 -145
- package/es/utils/helper.js +0 -436
- package/es/utils/history.js +0 -29
- package/es/utils/id-broker.js +0 -15
- package/es/utils/isolate-event-handler.js +0 -1622
- package/es/utils/logger.js +0 -8
- package/es/utils/math.js +0 -50
- package/es/utils/molding.js +0 -1347
- package/es/utils/name-generator.js +0 -17
- package/es/utils/objects-utils.js +0 -50
- package/es/utils/phone-validator.js +0 -4
- package/es/utils/process-black-list.js +0 -15
- package/es/utils/react-if.js +0 -18
- package/es/utils/ruler.js +0 -58
- package/es/utils/snap-scene.js +0 -94
- package/es/utils/snap.js +0 -231
- package/es/utils/summarizeCart.js +0 -24
- package/es/utils/threeCSG.es6.js +0 -494
- package/es/version.js +0 -1
- /package/es/{catalog/lines/wall/textures/plaster-normal.jpg → 1fc74a85baa030dbc913.jpg} +0 -0
- /package/es/{catalog/lines/wall/wall.png → 30a49a74d9bd10068b65.png} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks-normal2.jpg → 340a84d3930143a53545.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/morden-normal.jpg → 5c8d36b3e7223934f447.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks-normal.jpg → 81e7a7e6edf162e88b44.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/morden.jpg → 8fe0f1210d8ba435a790.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks.jpg → a07d30a04bda8ee03491.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/painted.jpg → bee3f62687a97bcc3d9f.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/strand-porcelain.jpg → c232d250fd899392b1b7.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/tile1.jpg → c7ae6f4de09134ebe588.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/plaster.jpg → dad5ee758630256ee702.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/grass.jpg → e470a2ce76062955fa98.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/parquet.jpg → e5ae13166775e7d071e4.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/ceramic-tile.jpg → e8e5de0892f5375460bd.jpg} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitchen-simulator",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.2-react.18",
|
|
4
4
|
"description": "It is a kitchen simulator (self-contained micro-frontend).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"*.scss"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"start": "webpack-dev-server --config webpack.config.js --
|
|
22
|
+
"start": "webpack-dev-server --config webpack.config.js --mode development --port 9000",
|
|
23
23
|
"start9010": "webpack-dev-server --config webpack.config.js --port 9010 --mode development",
|
|
24
24
|
"start9020": "webpack-dev-server --config webpack.config.js --port 9020 --mode development",
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "cross-env BABEL_ENV=es webpack --config webpack.library.config.js --mode production",
|
|
26
26
|
"build-src": "webpack --config webpack.config.js --mode production",
|
|
27
27
|
"build-dist": "npm run clean && npm run build-src && mkdir -p dist && cp -R src/catalog dist/ && cp -R src/assets dist/",
|
|
28
28
|
"clean": "rimraf es",
|
|
@@ -75,8 +75,6 @@
|
|
|
75
75
|
"polylabel": "1.0.2",
|
|
76
76
|
"posthog-js": "^1.271.0",
|
|
77
77
|
"prop-types": "^15.8.1",
|
|
78
|
-
"react": "^18.3.1",
|
|
79
|
-
"react-dom": "^18.3.1",
|
|
80
78
|
"react-ga4": "^1.4.1",
|
|
81
79
|
"react-hotjar": "^1.0.11",
|
|
82
80
|
"react-icons": "3.5.0",
|
|
@@ -88,6 +86,8 @@
|
|
|
88
86
|
"three": "0.166.0"
|
|
89
87
|
},
|
|
90
88
|
"devDependencies": {
|
|
89
|
+
"react": "^18.3.1",
|
|
90
|
+
"react-dom": "^18.3.1",
|
|
91
91
|
"@babel/cli": "^7.28.3",
|
|
92
92
|
"@babel/core": "^7.28.4",
|
|
93
93
|
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
|
|
@@ -124,5 +124,9 @@
|
|
|
124
124
|
"webpack": "5.92.1",
|
|
125
125
|
"webpack-cli": "5.1.4",
|
|
126
126
|
"webpack-dev-server": "5.0.4"
|
|
127
|
+
},
|
|
128
|
+
"peerDependencies": {
|
|
129
|
+
"react": "^18.3.1",
|
|
130
|
+
"react-dom": "^18.3.1"
|
|
127
131
|
}
|
|
128
132
|
}
|
package/es/@history.js
DELETED
package/es/AppContext.js
DELETED
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
|
-
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
9
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
10
|
-
var _excluded = ["width", "height", "extractedState"];
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
12
|
-
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; }
|
|
13
|
-
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; }
|
|
14
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
|
-
// LiteKitchenConfigurator.jsx
|
|
17
|
-
import styled from 'styled-components';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import React, { Component } from 'react';
|
|
20
|
-
import { connect } from 'react-redux';
|
|
21
|
-
import { bindActionCreators } from 'redux';
|
|
22
|
-
import * as constants from "./constants";
|
|
23
|
-
import { base64Decode } from "./utils/helper";
|
|
24
|
-
import actions, { projectActions } from "./actions/export";
|
|
25
|
-
import Catalog from "./catalog/catalog";
|
|
26
|
-
import { Content } from "./components/export";
|
|
27
|
-
import Translator from "./translator/translator";
|
|
28
|
-
import { objectsMap } from "./utils/objects-utils";
|
|
29
|
-
import { VERSION } from "./version";
|
|
30
|
-
import { handleExternalEvent } from "./utils/isolate-event-handler";
|
|
31
|
-
import AppContext from "./AppContext";
|
|
32
|
-
var toolbarW = 0;
|
|
33
|
-
var wrapperStyle = {
|
|
34
|
-
display: 'flex',
|
|
35
|
-
flexFlow: 'row nowrap'
|
|
36
|
-
};
|
|
37
|
-
var WarningItem = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n opacity: 0.8;\n position: absolute;\n border-radius: 6px;\n z-index: 11;\n background-color: #ff7400;\n width: max-content;\n align-items: center;\n padding: 10px;\n display: none;\n box-shadow:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.39),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n top: -50px;\n left: 5px;\n color: white;\n"])));
|
|
38
|
-
var SubCategoryItemImage = styled.img(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n height: 30px;\n width: 30px;\n -webkit-mask-image: url(", ");\n -webkit-mask-size: calc(100% - 2px) calc(100% - 2px);\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: 1px 1px;\n"])), constants.SECONDARY_PURPLE_COLOR, function (props) {
|
|
39
|
-
return props.maskImage + '?nocache=2025';
|
|
40
|
-
});
|
|
41
|
-
var LiteKitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
42
|
-
function LiteKitchenConfigurator(props) {
|
|
43
|
-
var _this;
|
|
44
|
-
_classCallCheck(this, LiteKitchenConfigurator);
|
|
45
|
-
_this = _callSuper(this, LiteKitchenConfigurator, [props]);
|
|
46
|
-
_this.state = {
|
|
47
|
-
savePopupVisible: false,
|
|
48
|
-
quotePopupVisible: false,
|
|
49
|
-
assistPopupVisible: false,
|
|
50
|
-
newProjectPopupVisible: false,
|
|
51
|
-
isModalVisible: false,
|
|
52
|
-
submitPromptVisible: false,
|
|
53
|
-
stateSubmitType: constants.SUBMIT_REQUEST_ASSIST,
|
|
54
|
-
savePromptVisible: false,
|
|
55
|
-
isShowProperty: true,
|
|
56
|
-
submitTosave: false,
|
|
57
|
-
signOpen: false,
|
|
58
|
-
myProjectsOpen: false,
|
|
59
|
-
myProjectsToLogin: false,
|
|
60
|
-
downloadPopupVisible: false,
|
|
61
|
-
toolbar: '',
|
|
62
|
-
reviewQuotePopupOpened: false,
|
|
63
|
-
floorOpened: false,
|
|
64
|
-
cabinetOpened: false,
|
|
65
|
-
applianceOpened: false,
|
|
66
|
-
finishingOpened: false,
|
|
67
|
-
doorStyleOpen: false,
|
|
68
|
-
wizardStepOpend: false,
|
|
69
|
-
tutorialMouseEventsAdd: false,
|
|
70
|
-
replaceCabinetFlag: false,
|
|
71
|
-
isSnackBarOpen: false,
|
|
72
|
-
isSnackBar1Open: false,
|
|
73
|
-
redirectURL: '',
|
|
74
|
-
snackBarMessage: '',
|
|
75
|
-
isSaved: false,
|
|
76
|
-
isLeaving: false
|
|
77
|
-
};
|
|
78
|
-
_this.openFloor = _this.openFloor.bind(_this);
|
|
79
|
-
_this.openCabinet = _this.openCabinet.bind(_this);
|
|
80
|
-
_this.openFinishing = _this.openFinishing.bind(_this);
|
|
81
|
-
_this.openAppliance = _this.openAppliance.bind(_this);
|
|
82
|
-
_this.toggleDoorStyle = _this.toggleDoorStyle.bind(_this);
|
|
83
|
-
_this.onReviewQuoteClicked = _this.onReviewQuoteClicked.bind(_this);
|
|
84
|
-
_this.closeFloorTB = _this.closeFloorTB.bind(_this);
|
|
85
|
-
_this.closeCabinetTB = _this.closeCabinetTB.bind(_this);
|
|
86
|
-
_this.closeFinishingTB = _this.closeFinishingTB.bind(_this);
|
|
87
|
-
_this.closeApplianceTB = _this.closeApplianceTB.bind(_this);
|
|
88
|
-
_this.setToolbar = _this.setToolbar.bind(_this);
|
|
89
|
-
_this.replaceCabinet = _this.replaceCabinet.bind(_this);
|
|
90
|
-
_this.setSubmitToSave = _this.setSubmitToSave.bind(_this);
|
|
91
|
-
_this.setSignOpen = _this.setSignOpen.bind(_this);
|
|
92
|
-
_this.setMyProjectsOpen = _this.setMyProjectsOpen.bind(_this);
|
|
93
|
-
_this.setMyProjectsToLogin = _this.setMyProjectsToLogin.bind(_this);
|
|
94
|
-
_this.setDownloadPopupVisible = _this.setDownloadPopupVisible.bind(_this);
|
|
95
|
-
_this.neverShowInput = /*#__PURE__*/React.createRef(null);
|
|
96
|
-
_this.setShowProperty = _this.setShowProperty.bind(_this);
|
|
97
|
-
|
|
98
|
-
// cache for viewer2D init so we don't allocate merges every render
|
|
99
|
-
_this._lastExtractedStateRef = null;
|
|
100
|
-
_this._cachedViewer2DKey = null;
|
|
101
|
-
_this._cachedExtractedState = null;
|
|
102
|
-
return _this;
|
|
103
|
-
}
|
|
104
|
-
_inherits(LiteKitchenConfigurator, _Component);
|
|
105
|
-
return _createClass(LiteKitchenConfigurator, [{
|
|
106
|
-
key: "setToolbar",
|
|
107
|
-
value: function setToolbar(toolBarKey) {
|
|
108
|
-
this.setState({
|
|
109
|
-
toolbar: toolBarKey
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
key: "setShowProperty",
|
|
114
|
-
value: function setShowProperty(value) {
|
|
115
|
-
this.setState({
|
|
116
|
-
isShowProperty: value
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "setMyProjectsOpen",
|
|
121
|
-
value: function setMyProjectsOpen(value) {
|
|
122
|
-
this.setState({
|
|
123
|
-
myProjectsOpen: value
|
|
124
|
-
});
|
|
125
|
-
this.setState({
|
|
126
|
-
signOpen: false
|
|
127
|
-
});
|
|
128
|
-
this.setState({
|
|
129
|
-
wizardStepOpend: false
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
key: "setMyProjectsToLogin",
|
|
134
|
-
value: function setMyProjectsToLogin(value) {
|
|
135
|
-
this.setState({
|
|
136
|
-
myProjectsToLogin: value
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}, {
|
|
140
|
-
key: "setDownloadPopupVisible",
|
|
141
|
-
value: function setDownloadPopupVisible(value) {
|
|
142
|
-
this.setState({
|
|
143
|
-
reviewQuotePopupOpened: false
|
|
144
|
-
});
|
|
145
|
-
this.setState({
|
|
146
|
-
savePopupVisible: false
|
|
147
|
-
});
|
|
148
|
-
this.setState({
|
|
149
|
-
quotePopupVisible: false
|
|
150
|
-
});
|
|
151
|
-
this.setState({
|
|
152
|
-
submitTosave: false
|
|
153
|
-
});
|
|
154
|
-
this.setState({
|
|
155
|
-
assistPopupVisible: false
|
|
156
|
-
});
|
|
157
|
-
this.setState({
|
|
158
|
-
newProjectPopupVisible: false
|
|
159
|
-
});
|
|
160
|
-
this.setState({
|
|
161
|
-
downloadPopupVisible: value
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}, {
|
|
165
|
-
key: "setSubmitToSave",
|
|
166
|
-
value: function setSubmitToSave(value) {
|
|
167
|
-
this.setState({
|
|
168
|
-
submitTosave: value
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}, {
|
|
172
|
-
key: "setSignOpen",
|
|
173
|
-
value: function setSignOpen(value) {
|
|
174
|
-
this.setState({
|
|
175
|
-
wizardStepOpend: false
|
|
176
|
-
});
|
|
177
|
-
this.setState({
|
|
178
|
-
myProjectsOpen: false
|
|
179
|
-
});
|
|
180
|
-
this.setState({
|
|
181
|
-
signOpen: value
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
}, {
|
|
185
|
-
key: "openFloor",
|
|
186
|
-
value: function openFloor() {
|
|
187
|
-
var _el$parentElement;
|
|
188
|
-
this.setState({
|
|
189
|
-
floorOpened: true
|
|
190
|
-
});
|
|
191
|
-
var el = document.getElementById('make_floorplan_inactive');
|
|
192
|
-
if (el !== null && el !== void 0 && (_el$parentElement = el.parentElement) !== null && _el$parentElement !== void 0 && _el$parentElement.parentElement) el.parentElement.parentElement.style.zIndex = 999;
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
key: "openCabinet",
|
|
196
|
-
value: function openCabinet() {
|
|
197
|
-
var _el$parentElement2;
|
|
198
|
-
this.setState({
|
|
199
|
-
cabinetOpened: true
|
|
200
|
-
});
|
|
201
|
-
var el = document.getElementById('add_cabinets_inactive');
|
|
202
|
-
if (el !== null && el !== void 0 && (_el$parentElement2 = el.parentElement) !== null && _el$parentElement2 !== void 0 && _el$parentElement2.parentElement) el.parentElement.parentElement.style.zIndex = 999;
|
|
203
|
-
}
|
|
204
|
-
}, {
|
|
205
|
-
key: "toggleDoorStyle",
|
|
206
|
-
value: function toggleDoorStyle(visible) {
|
|
207
|
-
var _el$parentElement3;
|
|
208
|
-
this.setState({
|
|
209
|
-
doorStyleOpen: visible
|
|
210
|
-
});
|
|
211
|
-
var el = document.getElementById('select_doorstyle_inactive');
|
|
212
|
-
if (el !== null && el !== void 0 && (_el$parentElement3 = el.parentElement) !== null && _el$parentElement3 !== void 0 && _el$parentElement3.parentElement) el.parentElement.parentElement.style.zIndex = visible ? 999 : 6;
|
|
213
|
-
}
|
|
214
|
-
}, {
|
|
215
|
-
key: "replaceCabinet",
|
|
216
|
-
value: function replaceCabinet(value) {
|
|
217
|
-
this.setState({
|
|
218
|
-
replaceCabinetFlag: value
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
}, {
|
|
222
|
-
key: "openAppliance",
|
|
223
|
-
value: function openAppliance() {
|
|
224
|
-
var _el$parentElement4;
|
|
225
|
-
this.setState({
|
|
226
|
-
applianceOpened: true
|
|
227
|
-
});
|
|
228
|
-
var el = document.getElementById('add_appliances_inactive');
|
|
229
|
-
if (el !== null && el !== void 0 && (_el$parentElement4 = el.parentElement) !== null && _el$parentElement4 !== void 0 && _el$parentElement4.parentElement) el.parentElement.parentElement.style.zIndex = 999;
|
|
230
|
-
}
|
|
231
|
-
}, {
|
|
232
|
-
key: "openFinishing",
|
|
233
|
-
value: function openFinishing() {
|
|
234
|
-
var _el$parentElement5;
|
|
235
|
-
this.setState({
|
|
236
|
-
finishingOpened: true
|
|
237
|
-
});
|
|
238
|
-
var el = document.getElementById('finishing_touches_inactive');
|
|
239
|
-
if (el !== null && el !== void 0 && (_el$parentElement5 = el.parentElement) !== null && _el$parentElement5 !== void 0 && _el$parentElement5.parentElement) el.parentElement.parentElement.style.zIndex = 999;
|
|
240
|
-
}
|
|
241
|
-
}, {
|
|
242
|
-
key: "onReviewQuoteClicked",
|
|
243
|
-
value: function onReviewQuoteClicked(visible) {
|
|
244
|
-
var _el$parentElement6;
|
|
245
|
-
this.setState({
|
|
246
|
-
reviewQuotePopupOpened: visible
|
|
247
|
-
});
|
|
248
|
-
var el = document.getElementById('review_quote_inactive');
|
|
249
|
-
if (el !== null && el !== void 0 && (_el$parentElement6 = el.parentElement) !== null && _el$parentElement6 !== void 0 && _el$parentElement6.parentElement) el.parentElement.parentElement.style.zIndex = visible ? 999 : 6;
|
|
250
|
-
}
|
|
251
|
-
}, {
|
|
252
|
-
key: "closeFloorTB",
|
|
253
|
-
value: function closeFloorTB() {
|
|
254
|
-
var _el$parentElement7;
|
|
255
|
-
this.setState({
|
|
256
|
-
floorOpened: false
|
|
257
|
-
});
|
|
258
|
-
var el = document.getElementById('make_floorplan_inactive');
|
|
259
|
-
if (el !== null && el !== void 0 && (_el$parentElement7 = el.parentElement) !== null && _el$parentElement7 !== void 0 && _el$parentElement7.parentElement) el.parentElement.parentElement.style.zIndex = 6;
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
key: "closeCabinetTB",
|
|
263
|
-
value: function closeCabinetTB() {
|
|
264
|
-
var _el$parentElement8;
|
|
265
|
-
this.setState({
|
|
266
|
-
cabinetOpened: false
|
|
267
|
-
});
|
|
268
|
-
var el = document.getElementById('add_cabinets_inactive');
|
|
269
|
-
if (el !== null && el !== void 0 && (_el$parentElement8 = el.parentElement) !== null && _el$parentElement8 !== void 0 && _el$parentElement8.parentElement) el.parentElement.parentElement.style.zIndex = 6;
|
|
270
|
-
}
|
|
271
|
-
}, {
|
|
272
|
-
key: "closeFinishingTB",
|
|
273
|
-
value: function closeFinishingTB() {
|
|
274
|
-
var _el$parentElement9;
|
|
275
|
-
this.setState({
|
|
276
|
-
finishingOpened: false
|
|
277
|
-
});
|
|
278
|
-
var el = document.getElementById('finishing_touches_inactive');
|
|
279
|
-
if (el !== null && el !== void 0 && (_el$parentElement9 = el.parentElement) !== null && _el$parentElement9 !== void 0 && _el$parentElement9.parentElement) el.parentElement.parentElement.style.zIndex = 6;
|
|
280
|
-
}
|
|
281
|
-
}, {
|
|
282
|
-
key: "closeApplianceTB",
|
|
283
|
-
value: function closeApplianceTB() {
|
|
284
|
-
var _el$parentElement0;
|
|
285
|
-
this.setState({
|
|
286
|
-
applianceOpened: false
|
|
287
|
-
});
|
|
288
|
-
var el = document.getElementById('add_appliances_inactive');
|
|
289
|
-
if (el !== null && el !== void 0 && (_el$parentElement0 = el.parentElement) !== null && _el$parentElement0 !== void 0 && _el$parentElement0.parentElement) el.parentElement.parentElement.style.zIndex = 6;
|
|
290
|
-
}
|
|
291
|
-
}, {
|
|
292
|
-
key: "componentDidMount",
|
|
293
|
-
value: function componentDidMount() {
|
|
294
|
-
var _extractedState$getIn;
|
|
295
|
-
window.forRedo = [];
|
|
296
|
-
var _this$props = this.props,
|
|
297
|
-
catalog = _this$props.catalog,
|
|
298
|
-
extractedState = _this$props.extractedState,
|
|
299
|
-
projectActions = _this$props.projectActions;
|
|
300
|
-
var catalogReady = extractedState === null || extractedState === void 0 || (_extractedState$getIn = extractedState.getIn) === null || _extractedState$getIn === void 0 ? void 0 : _extractedState$getIn.call(extractedState, ['catalog', 'ready']);
|
|
301
|
-
if (!catalogReady) projectActions.initCatalog(catalog);
|
|
302
|
-
}
|
|
303
|
-
}, {
|
|
304
|
-
key: "componentDidUpdate",
|
|
305
|
-
value: function componentDidUpdate(prevProps) {
|
|
306
|
-
var _extractedState$getIn2;
|
|
307
|
-
var _this$props2 = this.props,
|
|
308
|
-
externalEvent = _this$props2.externalEvent,
|
|
309
|
-
extractedState = _this$props2.extractedState,
|
|
310
|
-
projectActions = _this$props2.projectActions,
|
|
311
|
-
catalog = _this$props2.catalog;
|
|
312
|
-
|
|
313
|
-
// same behavior: handle external event when it changes
|
|
314
|
-
if (prevProps.externalEvent !== externalEvent) {
|
|
315
|
-
handleExternalEvent(this.props);
|
|
316
|
-
}
|
|
317
|
-
var catalogReady = extractedState === null || extractedState === void 0 || (_extractedState$getIn2 = extractedState.getIn) === null || _extractedState$getIn2 === void 0 ? void 0 : _extractedState$getIn2.call(extractedState, ['catalog', 'ready']);
|
|
318
|
-
if (!catalogReady) projectActions.initCatalog(catalog);
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
key: "isProjectEmpty",
|
|
322
|
-
value: function isProjectEmpty(scene) {
|
|
323
|
-
var layers = scene.layers,
|
|
324
|
-
selectedLayer = scene.selectedLayer;
|
|
325
|
-
var layer = layers.get(selectedLayer);
|
|
326
|
-
return layer.areas.size + layer.lines.size + layer.holes.size + layer.items.size === 0;
|
|
327
|
-
}
|
|
328
|
-
}, {
|
|
329
|
-
key: "getExtractedStateWithViewer2DInit",
|
|
330
|
-
value: function getExtractedStateWithViewer2DInit(extractedState, width, height) {
|
|
331
|
-
if (!extractedState) return extractedState;
|
|
332
|
-
|
|
333
|
-
// ✅ If the extractedState reference changed, drop cache immediately.
|
|
334
|
-
if (this._lastExtractedStateRef !== extractedState) {
|
|
335
|
-
this._lastExtractedStateRef = extractedState;
|
|
336
|
-
this._cachedViewer2DKey = null;
|
|
337
|
-
this._cachedExtractedState = null;
|
|
338
|
-
}
|
|
339
|
-
var _viewer2D = extractedState.getIn(['viewer2D']);
|
|
340
|
-
if (!_viewer2D || _viewer2D.size <= 0) return extractedState;
|
|
341
|
-
var v = _viewer2D.toJS();
|
|
342
|
-
|
|
343
|
-
// Only do the "center viewer2D if e/f are zero" logic.
|
|
344
|
-
// ✅ No need to build keys from unrelated parts of state.
|
|
345
|
-
if (v.e !== 0 || v.f !== 0) return extractedState;
|
|
346
|
-
|
|
347
|
-
// Build a cache key ONLY for this viewer2D-centering computation.
|
|
348
|
-
var cacheKey = "".concat(width, ":").concat(height, ":").concat(v.viewerWidth, ":").concat(v.viewerHeight, ":").concat(v.SVGWidth, ":").concat(v.SVGHeight);
|
|
349
|
-
if (this._cachedViewer2DKey === cacheKey && this._cachedExtractedState) {
|
|
350
|
-
return this._cachedExtractedState;
|
|
351
|
-
}
|
|
352
|
-
var centeredViewer2D = _viewer2D.merge({
|
|
353
|
-
e: v.viewerWidth / 2 - v.SVGWidth / 2,
|
|
354
|
-
f: v.viewerHeight / 2 - v.SVGHeight / 2,
|
|
355
|
-
a: 0.99,
|
|
356
|
-
d: 0.99
|
|
357
|
-
});
|
|
358
|
-
var merged = extractedState.merge({
|
|
359
|
-
viewer2D: centeredViewer2D
|
|
360
|
-
});
|
|
361
|
-
this._cachedViewer2DKey = cacheKey;
|
|
362
|
-
this._cachedExtractedState = merged;
|
|
363
|
-
return merged;
|
|
364
|
-
}
|
|
365
|
-
}, {
|
|
366
|
-
key: "render",
|
|
367
|
-
value: function render() {
|
|
368
|
-
var _this2 = this;
|
|
369
|
-
var _this$props3 = this.props,
|
|
370
|
-
width = _this$props3.width,
|
|
371
|
-
height = _this$props3.height,
|
|
372
|
-
extractedState = _this$props3.extractedState,
|
|
373
|
-
props = _objectWithoutProperties(_this$props3, _excluded);
|
|
374
|
-
var _this$state = this.state,
|
|
375
|
-
savePopupVisible = _this$state.savePopupVisible,
|
|
376
|
-
quotePopupVisible = _this$state.quotePopupVisible,
|
|
377
|
-
assistPopupVisible = _this$state.assistPopupVisible,
|
|
378
|
-
signOpen = _this$state.signOpen,
|
|
379
|
-
myProjectsOpen = _this$state.myProjectsOpen;
|
|
380
|
-
var contentW = width - toolbarW;
|
|
381
|
-
var contentH = height;
|
|
382
|
-
var extracted = this.getExtractedStateWithViewer2DInit(extractedState, width, height);
|
|
383
|
-
var ctxValue = _objectSpread(_objectSpread({}, objectsMap(actions, function (actionNamespace) {
|
|
384
|
-
return _this2.props[actionNamespace];
|
|
385
|
-
})), {}, {
|
|
386
|
-
translator: this.props.translator,
|
|
387
|
-
catalog: this.props.catalog
|
|
388
|
-
});
|
|
389
|
-
return /*#__PURE__*/React.createElement(AppContext.Provider, {
|
|
390
|
-
value: ctxValue
|
|
391
|
-
}, /*#__PURE__*/React.createElement("section", null, /*#__PURE__*/React.createElement("div", {
|
|
392
|
-
style: _objectSpread(_objectSpread({}, wrapperStyle), {}, {
|
|
393
|
-
height: height,
|
|
394
|
-
display: 'flex',
|
|
395
|
-
justifyContent: 'center',
|
|
396
|
-
position: 'relative'
|
|
397
|
-
})
|
|
398
|
-
}, /*#__PURE__*/React.createElement(Content, _extends({
|
|
399
|
-
width: contentW,
|
|
400
|
-
height: contentH,
|
|
401
|
-
catalog: this.props.catalog,
|
|
402
|
-
state: extracted,
|
|
403
|
-
toolBar: this.state.toolbar,
|
|
404
|
-
setToolbar: this.setToolbar,
|
|
405
|
-
replaceCabinet: this.replaceCabinet,
|
|
406
|
-
keyDownEnable: !savePopupVisible && !quotePopupVisible && !assistPopupVisible
|
|
407
|
-
}, props, {
|
|
408
|
-
onWheel: function onWheel(event) {
|
|
409
|
-
return event.preventDefault();
|
|
410
|
-
},
|
|
411
|
-
onInternalEvent: this.props.onInternalEvent
|
|
412
|
-
})), /*#__PURE__*/React.createElement(WarningItem, {
|
|
413
|
-
id: "warning_box_2d",
|
|
414
|
-
style: {
|
|
415
|
-
display: 'none'
|
|
416
|
-
}
|
|
417
|
-
}, /*#__PURE__*/React.createElement(SubCategoryItemImage, {
|
|
418
|
-
maskImage: "/assets/img/svg/3d_item_warning_info.svg",
|
|
419
|
-
style: {
|
|
420
|
-
backgroundColor: constants.BG_COLOR_1,
|
|
421
|
-
marginRight: 10,
|
|
422
|
-
height: 30,
|
|
423
|
-
width: 30
|
|
424
|
-
}
|
|
425
|
-
}), "This item is not available in the current door style. Replace it with another one."))));
|
|
426
|
-
}
|
|
427
|
-
}]);
|
|
428
|
-
}(Component);
|
|
429
|
-
LiteKitchenConfigurator.propTypes = {
|
|
430
|
-
translator: PropTypes.instanceOf(Translator),
|
|
431
|
-
catalog: PropTypes.instanceOf(Catalog),
|
|
432
|
-
allowProjectFileSupport: PropTypes.bool,
|
|
433
|
-
plugins: PropTypes.arrayOf(PropTypes.func),
|
|
434
|
-
autosaveKey: PropTypes.string,
|
|
435
|
-
autosaveDelay: PropTypes.number,
|
|
436
|
-
width: PropTypes.number.isRequired,
|
|
437
|
-
height: PropTypes.number.isRequired,
|
|
438
|
-
stateExtractor: PropTypes.func.isRequired,
|
|
439
|
-
configData: PropTypes.object,
|
|
440
|
-
onInternalEvent: PropTypes.func,
|
|
441
|
-
extractedState: PropTypes.object,
|
|
442
|
-
// ✅ injected by connect
|
|
443
|
-
externalEvent: PropTypes.object
|
|
444
|
-
};
|
|
445
|
-
LiteKitchenConfigurator.defaultProps = {
|
|
446
|
-
translator: new Translator(),
|
|
447
|
-
catalog: new Catalog(),
|
|
448
|
-
plugins: [],
|
|
449
|
-
allowProjectFileSupport: true,
|
|
450
|
-
softwareSignature: "LiteKitchenConfigurator ".concat(VERSION),
|
|
451
|
-
sidebarComponents: [],
|
|
452
|
-
footerbarComponents: [],
|
|
453
|
-
customContents: {},
|
|
454
|
-
configData: {}
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
// ✅ Only select the slice you actually use.
|
|
458
|
-
// This preserves behavior but massively reduces rerenders.
|
|
459
|
-
function mapStateToProps(reduxState, ownProps) {
|
|
460
|
-
var stateExtractor = ownProps.stateExtractor || function (s) {
|
|
461
|
-
return s;
|
|
462
|
-
};
|
|
463
|
-
var extractedState = stateExtractor(reduxState);
|
|
464
|
-
return {
|
|
465
|
-
extractedState: extractedState,
|
|
466
|
-
state: extractedState
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function mapDispatchToProps(dispatch) {
|
|
470
|
-
return objectsMap(actions, function (actionNamespace) {
|
|
471
|
-
return bindActionCreators(actions[actionNamespace], dispatch);
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
export default connect(mapStateToProps, mapDispatchToProps)(LiteKitchenConfigurator);
|