kitchen-simulator 1.1.1-test.75 → 1.1.1-test.77
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/CrossSignOn.js +84 -0
- package/es/KitchenConfigurator.js +811 -48
- package/es/LiteKitchenConfigurator.js +631 -0
- package/es/{KitchenConfiguratorApp.js → LiteRenderer.js} +4 -4
- package/es/actions/export.js +4 -2
- package/es/actions/holes-actions.js +1 -1
- package/es/actions/items-actions.js +1 -1
- package/es/actions/lines-actions.js +1 -1
- package/es/actions/project-actions.js +1 -1
- package/es/actions/scene-actions.js +1 -1
- package/es/actions/user-actions.js +58 -0
- package/es/actions/vertices-actions.js +1 -1
- package/es/actions/viewer2d-actions.js +1 -1
- package/es/actions/viewer3d-actions.js +1 -1
- package/es/analytics/ga4.js +188 -0
- package/es/analytics/posthog.js +60 -0
- 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 +8 -11
- package/es/catalog/back.png +0 -0
- 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/wall-factory.js +1 -2
- package/es/catalog/lines/wall/planner-element.js +11 -14
- 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 +18 -63
- package/es/catalog/properties/property-enum.js +9 -51
- package/es/catalog/properties/property-lenght-measure.js +1 -1
- package/es/catalog/properties/property-length-measure.js +6 -50
- package/es/catalog/utils/item-loader.js +1 -2
- package/es/catalog/utils/mtl-loader.js +2 -3
- package/es/catalog/utils/obj-loader.js +2 -3
- package/es/catalog/windows.png +0 -0
- package/es/class/area.js +1 -1
- package/es/class/group.js +3 -3
- package/es/class/hole.js +6 -5
- package/es/class/item.js +8 -3
- package/es/class/layer.js +2 -2
- package/es/class/line.js +87 -52
- package/es/class/project.js +8 -6
- package/es/class/vertex.js +1 -1
- package/es/components/content.js +16 -1
- package/es/components/style/form-number-input.js +7 -31
- package/es/components/style/form-select.js +8 -48
- package/es/components/style/form-text-input.js +12 -31
- package/es/components/viewer2d/area.js +1 -1
- package/es/components/viewer2d/line.js +13 -3
- package/es/components/viewer2d/scene.js +2 -2
- package/es/components/viewer2d/utils.js +0 -6
- package/es/components/viewer2d/viewer2d.js +33 -20
- package/es/components/viewer3d/libs/mtl-loader.js +2 -2
- package/es/components/viewer3d/libs/obj-loader.js +2 -2
- package/es/components/viewer3d/libs/orbit-controls.js +5 -6
- package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -5
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -1
- package/es/components/viewer3d/scene-creator.js +22 -7
- package/es/components/viewer3d/viewer3d.js +279 -180
- package/es/devLiteRenderer.js +44 -0
- package/es/index.js +2 -2
- package/es/models.js +1 -2
- package/es/plugins/export.js +1 -3
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/holes-reducer.js +1 -1
- package/es/reducers/items-reducer.js +5 -2
- package/es/reducers/lines-reducer.js +1 -1
- package/es/reducers/project-reducer.js +1 -1
- package/es/reducers/reducer.js +2 -2
- package/es/reducers/scene-reducer.js +1 -1
- package/es/reducers/user-reducer.js +2 -1
- package/es/reducers/vertices-reducer.js +1 -1
- package/es/renderer.js +474 -0
- package/es/utils/geometry.js +61 -26
- package/es/utils/get-edges-of-subgraphs.js +1 -2
- package/es/utils/graph-cycles.js +3 -2
- package/es/utils/graph.js +1 -2
- package/es/utils/helper.js +68 -0
- package/es/version.js +1 -2
- package/lib/CrossSignOn.js +93 -0
- package/lib/KitchenConfigurator.js +817 -54
- package/lib/LiteKitchenConfigurator.js +641 -0
- package/lib/{KitchenConfiguratorApp.js → LiteRenderer.js} +5 -5
- package/lib/actions/export.js +5 -2
- package/lib/actions/user-actions.js +68 -0
- package/lib/analytics/ga4.js +194 -0
- package/lib/analytics/posthog.js +68 -0
- 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 +8 -12
- 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/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/holes/door-double/door_double.png +0 -0
- package/lib/catalog/holes/door-panic/panicDoor.png +0 -0
- package/lib/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/lib/catalog/holes/gate/gate.jpg +0 -0
- package/lib/catalog/holes/window-clear/texture.png +0 -0
- package/lib/catalog/holes/window-cross/texture.png +0 -0
- package/lib/catalog/holes/window-double-hung/texture.png +0 -0
- package/lib/catalog/holes/window-vertical/texture.png +0 -0
- package/lib/catalog/lines/wall/planner-element.js +11 -15
- 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 +0 -5
- package/lib/catalog/molding/molding-dcm/texture.png +0 -0
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-fbm/texture.png +0 -0
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-lrm/texture.png +0 -0
- package/lib/catalog/properties/property-checkbox.js +18 -63
- package/lib/catalog/properties/property-enum.js +7 -49
- package/lib/catalog/properties/property-lenght-measure.js +1 -1
- package/lib/catalog/properties/property-length-measure.js +6 -50
- package/lib/catalog/utils/item-loader.js +1 -0
- package/lib/catalog/utils/mtl-loader.js +3 -7
- package/lib/catalog/utils/obj-loader.js +3 -7
- package/lib/catalog/windows.png +0 -0
- package/lib/class/item.js +8 -3
- package/lib/class/line.js +87 -52
- package/lib/class/project.js +4 -2
- package/lib/class/vertex.js +1 -1
- package/lib/components/content.js +16 -1
- package/lib/components/style/form-number-input.js +6 -30
- package/lib/components/style/form-select.js +9 -47
- package/lib/components/style/form-text-input.js +11 -30
- package/lib/components/viewer2d/area.js +1 -1
- package/lib/components/viewer2d/line.js +13 -3
- package/lib/components/viewer2d/scene.js +1 -1
- package/lib/components/viewer2d/utils.js +0 -6
- package/lib/components/viewer2d/viewer2d.js +32 -19
- package/lib/components/viewer3d/libs/mtl-loader.js +2 -7
- package/lib/components/viewer3d/libs/obj-loader.js +2 -7
- package/lib/components/viewer3d/libs/orbit-controls.js +5 -10
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +4 -9
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -1
- package/lib/components/viewer3d/scene-creator.js +22 -7
- package/lib/components/viewer3d/viewer3d.js +279 -180
- package/lib/devLiteRenderer.js +46 -0
- package/lib/index.js +2 -2
- package/lib/models.js +2 -3
- package/lib/plugins/export.js +0 -8
- package/lib/reducers/user-reducer.js +1 -0
- package/lib/renderer.js +478 -0
- package/lib/styles/tabs.css +40 -0
- package/lib/utils/geometry.js +63 -26
- package/lib/utils/get-edges-of-subgraphs.js +1 -7
- package/lib/utils/graph-cycles.js +9 -9
- package/lib/utils/graph.js +3 -9
- package/lib/utils/helper.js +69 -1
- package/lib/version.js +1 -2
- package/package.json +30 -11
- package/es/components/disclaimer/disclaimer.js +0 -97
- package/es/components/export.js +0 -9
- package/es/plugins/autosave.js +0 -33
- package/lib/components/disclaimer/disclaimer.js +0 -106
- package/lib/components/export.js +0 -33
- package/lib/plugins/autosave.js +0 -40
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _mockProps = _interopRequireDefault(require("./mocks/mockProps.json"));
|
|
6
|
+
var _categoryData = _interopRequireDefault(require("./mocks/categoryData.json"));
|
|
7
|
+
var _dataBundle = _interopRequireDefault(require("./mocks/dataBundle.json"));
|
|
8
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
+
var _LiteKitchenConfigurator = _interopRequireDefault(require("./LiteKitchenConfigurator"));
|
|
10
|
+
var _LiteRenderer = _interopRequireDefault(require("./LiteRenderer"));
|
|
11
|
+
// --- renderer props ---
|
|
12
|
+
var options = {
|
|
13
|
+
unit: 'in',
|
|
14
|
+
enable3D: true
|
|
15
|
+
};
|
|
16
|
+
var onSave = function onSave(_ref) {
|
|
17
|
+
var payload = _ref.payload;
|
|
18
|
+
console.log('SAVE triggered:', payload.scene);
|
|
19
|
+
};
|
|
20
|
+
var onEvent = function onEvent(evt) {
|
|
21
|
+
console.log('EVENT:', evt.type, evt.payload);
|
|
22
|
+
};
|
|
23
|
+
var onExternalEvent = function onExternalEvent(evt) {
|
|
24
|
+
console.log('EXTERNAL EVENT:', evt.type, evt.payload);
|
|
25
|
+
};
|
|
26
|
+
var onError = function onError(err) {
|
|
27
|
+
console.error('ERROR:', err);
|
|
28
|
+
};
|
|
29
|
+
document.getElementById('app').style.display = 'block';
|
|
30
|
+
_reactDom["default"].render(/*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
|
+
className: "flex gap-4"
|
|
32
|
+
}, /*#__PURE__*/_react["default"].createElement(_LiteRenderer["default"], {
|
|
33
|
+
width: 1264,
|
|
34
|
+
height: 1164,
|
|
35
|
+
projectElement: _mockProps["default"].projectElement,
|
|
36
|
+
categoryData: _categoryData["default"],
|
|
37
|
+
dataBundle: _dataBundle["default"],
|
|
38
|
+
configData: _mockProps["default"].configData,
|
|
39
|
+
options: options,
|
|
40
|
+
logoImg: "/assets/logo.png",
|
|
41
|
+
companyUrl: "https://example.com",
|
|
42
|
+
toolbarButtons: [],
|
|
43
|
+
onSave: onSave,
|
|
44
|
+
onEvent: onEvent,
|
|
45
|
+
onError: onError
|
|
46
|
+
}))), document.getElementById('app'));
|
package/lib/index.js
CHANGED
|
@@ -8,10 +8,10 @@ exports["default"] = void 0;
|
|
|
8
8
|
exports.renderKitchenSimulator = renderKitchenSimulator;
|
|
9
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _LiteRenderer = _interopRequireDefault(require("./LiteRenderer"));
|
|
12
12
|
function renderKitchenSimulator(container) {
|
|
13
13
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
14
|
-
var root = _reactDom["default"].render(/*#__PURE__*/_react["default"].createElement(
|
|
14
|
+
var root = _reactDom["default"].render(/*#__PURE__*/_react["default"].createElement(_LiteRenderer["default"], props), container);
|
|
15
15
|
return {
|
|
16
16
|
root: root,
|
|
17
17
|
unmount: function unmount() {
|
package/lib/models.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports
|
|
7
|
+
exports.Vertex = exports.State = exports.Scene = exports.Line = exports.Layer = exports.Item = exports.Hole = exports.HistoryStructure = exports.Group = exports.Grid = exports.ElementsSet = exports.DefaultLayers = exports.DefaultGrids = exports.CatalogElement = exports.Catalog = exports.Area = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -508,5 +508,4 @@ var State = exports.State = /*#__PURE__*/function (_Record12) {
|
|
|
508
508
|
userId: 0,
|
|
509
509
|
isHelp: false,
|
|
510
510
|
isCabinetDrawing: false
|
|
511
|
-
}, 'State'));
|
|
512
|
-
var _default = exports["default"] = State;
|
|
511
|
+
}, 'State'));
|
package/lib/plugins/export.js
CHANGED
|
@@ -4,12 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "Autosave", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _autosave["default"];
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
7
|
Object.defineProperty(exports, "ConsoleDebugger", {
|
|
14
8
|
enumerable: true,
|
|
15
9
|
get: function get() {
|
|
@@ -23,11 +17,9 @@ Object.defineProperty(exports, "Keyboard", {
|
|
|
23
17
|
}
|
|
24
18
|
});
|
|
25
19
|
exports["default"] = void 0;
|
|
26
|
-
var _autosave = _interopRequireDefault(require("./autosave"));
|
|
27
20
|
var _keyboard = _interopRequireDefault(require("./keyboard"));
|
|
28
21
|
var _consoleDebugger = _interopRequireDefault(require("./console-debugger"));
|
|
29
22
|
var _default = exports["default"] = {
|
|
30
|
-
Autosave: _autosave["default"],
|
|
31
23
|
Keyboard: _keyboard["default"],
|
|
32
24
|
ConsoleDebugger: _consoleDebugger["default"]
|
|
33
25
|
};
|
package/lib/renderer.js
ADDED
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
8
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
11
|
+
var _reactContainerDimensions = _interopRequireDefault(require("react-container-dimensions"));
|
|
12
|
+
var _immutable = _interopRequireWildcard(require("immutable"));
|
|
13
|
+
var _immutableDevtools = _interopRequireDefault(require("immutable-devtools"));
|
|
14
|
+
var _redux = require("redux");
|
|
15
|
+
var _reactRedux = require("react-redux");
|
|
16
|
+
var _reactHotjar = require("react-hotjar");
|
|
17
|
+
var Sentry = _interopRequireWildcard(require("@sentry/react"));
|
|
18
|
+
var _history = _interopRequireDefault(require("./@history"));
|
|
19
|
+
var history = _interopRequireWildcard(require("history"));
|
|
20
|
+
var Areas = _interopRequireWildcard(require("./catalog/areas/area/planner-element"));
|
|
21
|
+
var Lines = _interopRequireWildcard(require("./catalog/lines/wall/planner-element"));
|
|
22
|
+
var Holes = _interopRequireWildcard(require("./catalog/holes/export"));
|
|
23
|
+
var _AppContext = _interopRequireDefault(require("./AppContext"));
|
|
24
|
+
var _reactRouterDom = require("react-router-dom");
|
|
25
|
+
var _itemLoader = require("./catalog/utils/item-loader");
|
|
26
|
+
var _exporter = _interopRequireDefault(require("./catalog/utils/exporter"));
|
|
27
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
28
|
+
var _Login = _interopRequireDefault(require("./components/login/Login"));
|
|
29
|
+
var _Register = _interopRequireDefault(require("./components/login/Register"));
|
|
30
|
+
var _constants = require("./constants");
|
|
31
|
+
var _mobileDetect = _interopRequireDefault(require("mobile-detect"));
|
|
32
|
+
var zlib = _interopRequireWildcard(require("browserify-zlib"));
|
|
33
|
+
var _buffer = _interopRequireDefault(require("buffer"));
|
|
34
|
+
var _helper = require("./utils/helper");
|
|
35
|
+
var _catalog = _interopRequireDefault(require("./catalog/catalog"));
|
|
36
|
+
var _KitchenConfigurator = _interopRequireDefault(require("./KitchenConfigurator"));
|
|
37
|
+
var _reducer = _interopRequireDefault(require("./reducers/reducer"));
|
|
38
|
+
var _projectActions = require("./actions/project-actions");
|
|
39
|
+
var _SVGLoader = require("three/examples/jsm/loaders/SVGLoader");
|
|
40
|
+
var _CrossSignOn = _interopRequireDefault(require("./CrossSignOn"));
|
|
41
|
+
var _reactQuery = require("react-query");
|
|
42
|
+
var _devtools = require("react-query/devtools");
|
|
43
|
+
var _ga = require("./analytics/ga4");
|
|
44
|
+
var _react3 = require("posthog-js/react");
|
|
45
|
+
var _disclaimer = _interopRequireDefault(require("./components/disclaimer/disclaimer"));
|
|
46
|
+
var _toolbarScreenshotButton = _interopRequireDefault(require("./components/toolbar/button/toolbar-screenshot-button"));
|
|
47
|
+
var PlannerModels = _interopRequireWildcard(require("./models"));
|
|
48
|
+
var _export2 = require("./plugins/export");
|
|
49
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
50
|
+
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; }
|
|
51
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52
|
+
// Axios config
|
|
53
|
+
_axios["default"].defaults.baseURL = _constants.API_SERVER_URL;
|
|
54
|
+
var md = new _mobileDetect["default"](window.navigator.userAgent);
|
|
55
|
+
var isMobile = md.mobile();
|
|
56
|
+
//define state
|
|
57
|
+
var AppState = (0, _immutable.Map)({
|
|
58
|
+
KitchenConfigurator: new PlannerModels.State()
|
|
59
|
+
});
|
|
60
|
+
console.log('Version: 378.58-202510_DIY-425-window-snap');
|
|
61
|
+
_ga.GA.resetSessionKeys();
|
|
62
|
+
if (_constants.MODE === 'staging') {
|
|
63
|
+
_ga.GA.init({
|
|
64
|
+
measurementId: 'G-H2BYBW7V6H'
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
_ga.GA.init({
|
|
68
|
+
measurementId: 'G-YK2JCC9F9G'
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
_reactHotjar.hotjar.initialize('3010506', '6');
|
|
72
|
+
isProduction && Sentry.init({
|
|
73
|
+
dsn: process.env.SENTRY_DSN,
|
|
74
|
+
environment: process.env.SENTRY_ENVIRONMENT
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
//define reducer
|
|
78
|
+
var reducer = function reducer(state, action) {
|
|
79
|
+
state = state || AppState;
|
|
80
|
+
state = state.update('KitchenConfigurator', function (plannerState) {
|
|
81
|
+
return (0, _reducer["default"])(plannerState, action);
|
|
82
|
+
});
|
|
83
|
+
return state;
|
|
84
|
+
};
|
|
85
|
+
var catalog = new _catalog["default"]();
|
|
86
|
+
var blackList = isProduction === true ? [] : ['UPDATE_MOUSE_COORDS', 'UPDATE_ZOOM_SCALE', 'UPDATE_2D_CAMERA'];
|
|
87
|
+
if (!isProduction) {
|
|
88
|
+
console.info('Environment is in development and these actions will be blacklisted', blackList);
|
|
89
|
+
console.info('Enable Chrome custom formatter for Immutable pretty print');
|
|
90
|
+
(0, _immutableDevtools["default"])(_immutable["default"]);
|
|
91
|
+
}
|
|
92
|
+
var options = {
|
|
93
|
+
api_host: process.env.VITE_PUBLIC_POSTHOG_HOST,
|
|
94
|
+
// important for 3D/canvas replays
|
|
95
|
+
session_recording: {
|
|
96
|
+
recordCanvas: true
|
|
97
|
+
},
|
|
98
|
+
// we'll capture pageviews manually if needed
|
|
99
|
+
capture_pageview: false
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
//init store
|
|
103
|
+
var store = (0, _redux.createStore)(reducer, null, !isProduction && window.devToolsExtension ? window.devToolsExtension({
|
|
104
|
+
features: {
|
|
105
|
+
pause: true,
|
|
106
|
+
// start/pause recording of dispatched actions
|
|
107
|
+
lock: true,
|
|
108
|
+
// lock/unlock dispatching actions and side effects
|
|
109
|
+
persist: true,
|
|
110
|
+
// persist states on page reloading
|
|
111
|
+
"export": true,
|
|
112
|
+
// export history of actions in a file
|
|
113
|
+
"import": 'custom',
|
|
114
|
+
// import history of actions from a file
|
|
115
|
+
jump: true,
|
|
116
|
+
// jump back and forth (time travelling)
|
|
117
|
+
skip: true,
|
|
118
|
+
// skip (cancel) actions
|
|
119
|
+
reorder: true,
|
|
120
|
+
// drag and drop actions in the history list
|
|
121
|
+
dispatch: true,
|
|
122
|
+
// dispatch custom actions or action creators
|
|
123
|
+
test: true // generate tests for the selected actions
|
|
124
|
+
},
|
|
125
|
+
actionsBlacklist: blackList,
|
|
126
|
+
maxAge: 999999
|
|
127
|
+
}) : function (f) {
|
|
128
|
+
return f;
|
|
129
|
+
});
|
|
130
|
+
var plugins = [(0, _export2.Keyboard)(), (0, _export2.ConsoleDebugger)()];
|
|
131
|
+
var toolbarButtons = [_toolbarScreenshotButton["default"]];
|
|
132
|
+
var categoryData;
|
|
133
|
+
sessionStorage.setItem('visualizerName', (0, _helper.getPathInfo)(1));
|
|
134
|
+
if (!isMobile) {
|
|
135
|
+
_axios["default"].get("".concat(_constants.API_SERVER_URL, "/api/dealer/").concat((0, _helper.getPathInfo)(1), "/config")).then(/*#__PURE__*/function () {
|
|
136
|
+
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(res) {
|
|
137
|
+
var _res$data, success, id, logoImg, companyUrl, config, configdata;
|
|
138
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
139
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
140
|
+
case 0:
|
|
141
|
+
_res$data = res.data, success = _res$data.success, id = _res$data.id, logoImg = _res$data.logoImg, companyUrl = _res$data.companyUrl, config = _res$data.config;
|
|
142
|
+
configdata = JSON.parse(config);
|
|
143
|
+
if (!(success === false || id === 0 && logoImg === '' && companyUrl === '')) {
|
|
144
|
+
_context3.next = 1;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
alert('No Catalog');
|
|
148
|
+
return _context3.abrupt("return");
|
|
149
|
+
case 1:
|
|
150
|
+
_context3.next = 2;
|
|
151
|
+
return _axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/planner/read/planner"), {
|
|
152
|
+
type: _constants.MODE === 'staging' ? 2 : 1
|
|
153
|
+
}, {
|
|
154
|
+
responseType: 'arraybuffer'
|
|
155
|
+
}).then(/*#__PURE__*/function () {
|
|
156
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(response) {
|
|
157
|
+
var unzip_data, data, appliances, lighting, furnishing, success, svgLoadPromises, outlineSVGData, Item, x, _x4, _x5, _x6, MainComponent, queryClient, MainApp;
|
|
158
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
159
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
160
|
+
case 0:
|
|
161
|
+
unzip_data = JSON.parse(zlib.unzipSync(new _buffer["default"].Buffer.from(response.data)).toString());
|
|
162
|
+
data = unzip_data.data, appliances = unzip_data.appliances, lighting = unzip_data.lighting, furnishing = unzip_data.furnishing, success = unzip_data.success;
|
|
163
|
+
if (success === false) {
|
|
164
|
+
console.log(_constants.NO_DATA_DATABASE);
|
|
165
|
+
}
|
|
166
|
+
if (success === 'error') {
|
|
167
|
+
alert(_constants.ERROR_DATABASE);
|
|
168
|
+
}
|
|
169
|
+
_context2.next = 1;
|
|
170
|
+
return _axios["default"].post("".concat(_constants.API_SERVER_URL, "/api/toolbar/getCategoryData"), {
|
|
171
|
+
type: _constants.MODE === 'staging' ? 2 : 1
|
|
172
|
+
}, {
|
|
173
|
+
responseType: 'arraybuffer'
|
|
174
|
+
}).then(function (response) {
|
|
175
|
+
categoryData = JSON.parse(zlib.unzipSync(new _buffer["default"].Buffer.from(response.data)).toString());
|
|
176
|
+
var _categoryData$data = categoryData.data,
|
|
177
|
+
catalogs = _categoryData$data.catalogs,
|
|
178
|
+
colorAlias = _categoryData$data.colorAlias,
|
|
179
|
+
subgroups = _categoryData$data.subgroups;
|
|
180
|
+
var door_color_alias = [];
|
|
181
|
+
var subgroup_ids = catalogs.filter(function (item) {
|
|
182
|
+
return item.id == id;
|
|
183
|
+
})[0].manufacturer_subgroup_ids.split(',');
|
|
184
|
+
var door_color_alias_ids = [];
|
|
185
|
+
subgroups.forEach(function (subgroup) {
|
|
186
|
+
if (subgroup_ids.some(function (id) {
|
|
187
|
+
return id == subgroup.id.toString();
|
|
188
|
+
})) {
|
|
189
|
+
subgroup.door_color_alias_ids.split(',').forEach(function (item) {
|
|
190
|
+
item != '' && door_color_alias_ids.push(item);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
colorAlias.forEach(function (color) {
|
|
195
|
+
return door_color_alias_ids.some(function (id) {
|
|
196
|
+
return id == color.id.toString();
|
|
197
|
+
}) && door_color_alias.push(color);
|
|
198
|
+
});
|
|
199
|
+
var doorStyleData = categoryData.data.doorStyles.items;
|
|
200
|
+
categoryData.data.doorStyles.items = doorStyleData.treeStruct;
|
|
201
|
+
// construct a doorStyle variable
|
|
202
|
+
door_color_alias.forEach(function (dca) {
|
|
203
|
+
doorStyleData.doorColorData.forEach(function (dc) {
|
|
204
|
+
// convert string into integer.
|
|
205
|
+
dc.door_style_id = parseInt(dc.door_style_id);
|
|
206
|
+
|
|
207
|
+
// find the original for the alias.
|
|
208
|
+
if (dc.id !== dca.door_color_id) return;
|
|
209
|
+
dc.name = dca.alias_name;
|
|
210
|
+
dc.color_sku_alias = dca.sku_alias_name;
|
|
211
|
+
|
|
212
|
+
// judge the door style of the current door color
|
|
213
|
+
doorStyleData.treeStruct.forEach(function (el) {
|
|
214
|
+
el.items.forEach(function (elem) {
|
|
215
|
+
return dc.door_style_id === elem.id && (dc.door_style_name = elem.name);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
// convert string into array
|
|
220
|
+
dca.alias_installation_type = (0, _helper.isEmpty)(dca.alias_installation_type) ? [] : dca.alias_installation_type.split(',').map(function (item) {
|
|
221
|
+
return parseInt(item);
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// add door color to doorStyle variable according to 'alias_installation_type' of its alias
|
|
225
|
+
categoryData.data.doorStyles.items.forEach(function (item) {
|
|
226
|
+
if (dca.alias_installation_type.some(function (ait) {
|
|
227
|
+
return ait === item.id;
|
|
228
|
+
})) item.items.forEach(function (ds) {
|
|
229
|
+
if (ds.name === dc.door_style_name) ds.items.push(dc);
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
var molding = [];
|
|
235
|
+
var toeMoldingData = [];
|
|
236
|
+
var cabinets = categoryData.data.cabinets;
|
|
237
|
+
cabinets[cabinets.length - 1].items.forEach(function (index) {
|
|
238
|
+
if (index.name.toLowerCase().includes('molding')) {
|
|
239
|
+
index.items.forEach(function (item) {
|
|
240
|
+
molding.push(item);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
// store all toe kick molding templates
|
|
244
|
+
if (index.name.includes(_constants.TOE_KICK_MOLDING)) {
|
|
245
|
+
index.items.forEach(function (item) {
|
|
246
|
+
toeMoldingData.push(item);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
categoryData.data.toeMoldingData = toeMoldingData;
|
|
251
|
+
var promises = molding.map(function (child) {
|
|
252
|
+
return new Promise(function (resolve, reject) {
|
|
253
|
+
var url = child === null || child === void 0 ? void 0 : child.shape_svg;
|
|
254
|
+
if (!url) {
|
|
255
|
+
// Skip if no SVG URL available
|
|
256
|
+
return resolve();
|
|
257
|
+
}
|
|
258
|
+
var loader = new _SVGLoader.SVGLoader();
|
|
259
|
+
loader.load(url, function (data) {
|
|
260
|
+
var _data$xml$viewBox$ani, _data$xml, _data$xml$viewBox$ani2, _data$xml2;
|
|
261
|
+
child.data = {
|
|
262
|
+
paths: data.paths,
|
|
263
|
+
svg_width: (_data$xml$viewBox$ani = (_data$xml = data.xml) === null || _data$xml === void 0 || (_data$xml = _data$xml.viewBox) === null || _data$xml === void 0 || (_data$xml = _data$xml.animVal) === null || _data$xml === void 0 ? void 0 : _data$xml.width) !== null && _data$xml$viewBox$ani !== void 0 ? _data$xml$viewBox$ani : 0,
|
|
264
|
+
svg_height: (_data$xml$viewBox$ani2 = (_data$xml2 = data.xml) === null || _data$xml2 === void 0 || (_data$xml2 = _data$xml2.viewBox) === null || _data$xml2 === void 0 || (_data$xml2 = _data$xml2.animVal) === null || _data$xml2 === void 0 ? void 0 : _data$xml2.height) !== null && _data$xml$viewBox$ani2 !== void 0 ? _data$xml$viewBox$ani2 : 0
|
|
265
|
+
};
|
|
266
|
+
resolve();
|
|
267
|
+
}, null, function (error) {
|
|
268
|
+
console.error(error);
|
|
269
|
+
reject(error);
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
return Promise.all(promises);
|
|
274
|
+
});
|
|
275
|
+
case 1:
|
|
276
|
+
// Load Outline SVG Data
|
|
277
|
+
svgLoadPromises = data.map(/*#__PURE__*/function () {
|
|
278
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(item) {
|
|
279
|
+
var _parsed$xml$viewBox, _parsed$xml$viewBox2, _response, svgText, loader, parsed, _t;
|
|
280
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
281
|
+
while (1) switch (_context.prev = _context.next) {
|
|
282
|
+
case 0:
|
|
283
|
+
if (!item.outline) {
|
|
284
|
+
_context.next = 6;
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
_context.prev = 1;
|
|
288
|
+
_context.next = 2;
|
|
289
|
+
return fetch(item.outline, {
|
|
290
|
+
cache: 'no-store'
|
|
291
|
+
});
|
|
292
|
+
case 2:
|
|
293
|
+
_response = _context.sent;
|
|
294
|
+
_context.next = 3;
|
|
295
|
+
return _response.text();
|
|
296
|
+
case 3:
|
|
297
|
+
svgText = _context.sent;
|
|
298
|
+
loader = new _SVGLoader.SVGLoader();
|
|
299
|
+
parsed = loader.parse(svgText);
|
|
300
|
+
if (!(0, _helper.isEmpty)(parsed.paths)) {
|
|
301
|
+
_context.next = 4;
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
return _context.abrupt("return", null);
|
|
305
|
+
case 4:
|
|
306
|
+
return _context.abrupt("return", {
|
|
307
|
+
paths: parsed.paths,
|
|
308
|
+
svgWidth: parseFloat(parsed.xml.getAttribute('width')) || ((_parsed$xml$viewBox = parsed.xml.viewBox) === null || _parsed$xml$viewBox === void 0 || (_parsed$xml$viewBox = _parsed$xml$viewBox.animVal) === null || _parsed$xml$viewBox === void 0 ? void 0 : _parsed$xml$viewBox.width) || 0,
|
|
309
|
+
svgHeight: parseFloat(parsed.xml.getAttribute('height')) || ((_parsed$xml$viewBox2 = parsed.xml.viewBox) === null || _parsed$xml$viewBox2 === void 0 || (_parsed$xml$viewBox2 = _parsed$xml$viewBox2.animVal) === null || _parsed$xml$viewBox2 === void 0 ? void 0 : _parsed$xml$viewBox2.height) || 0,
|
|
310
|
+
reverse: !!parseFloat(parsed.xml.getAttribute('height')) ? false : true
|
|
311
|
+
});
|
|
312
|
+
case 5:
|
|
313
|
+
_context.prev = 5;
|
|
314
|
+
_t = _context["catch"](1);
|
|
315
|
+
console.error('Failed to load SVG:', item.outline, _t);
|
|
316
|
+
return _context.abrupt("return", null);
|
|
317
|
+
case 6:
|
|
318
|
+
return _context.abrupt("return", null);
|
|
319
|
+
case 7:
|
|
320
|
+
case "end":
|
|
321
|
+
return _context.stop();
|
|
322
|
+
}
|
|
323
|
+
}, _callee, null, [[1, 5]]);
|
|
324
|
+
}));
|
|
325
|
+
return function (_x3) {
|
|
326
|
+
return _ref3.apply(this, arguments);
|
|
327
|
+
};
|
|
328
|
+
}());
|
|
329
|
+
_context2.next = 2;
|
|
330
|
+
return Promise.all(svgLoadPromises);
|
|
331
|
+
case 2:
|
|
332
|
+
outlineSVGData = _context2.sent;
|
|
333
|
+
// End: Load Outline SVG Data
|
|
334
|
+
Item = [];
|
|
335
|
+
data.forEach(function (obj, index) {
|
|
336
|
+
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
337
|
+
type: 'cabinet',
|
|
338
|
+
outlineSVGData: outlineSVGData[index],
|
|
339
|
+
render2DItem: _itemLoader.render2DItem,
|
|
340
|
+
render3DItem: _itemLoader.render3DItem
|
|
341
|
+
})));
|
|
342
|
+
});
|
|
343
|
+
appliances.forEach(function (obj) {
|
|
344
|
+
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
345
|
+
render2DItem: _itemLoader.render2DItem,
|
|
346
|
+
render3DItem: _itemLoader.render3DApplianceItem,
|
|
347
|
+
type: 'appliance'
|
|
348
|
+
})));
|
|
349
|
+
});
|
|
350
|
+
lighting.forEach(function (obj) {
|
|
351
|
+
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
352
|
+
type: 'lighting',
|
|
353
|
+
render2DItem: _itemLoader.render2DItem,
|
|
354
|
+
render3DItem: _itemLoader.render3DLightingItem
|
|
355
|
+
})));
|
|
356
|
+
});
|
|
357
|
+
furnishing.forEach(function (obj) {
|
|
358
|
+
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
359
|
+
type: 'furnishing',
|
|
360
|
+
render2DItem: _itemLoader.render2DItem,
|
|
361
|
+
render3DItem: _itemLoader.render3DApplianceItem
|
|
362
|
+
})));
|
|
363
|
+
});
|
|
364
|
+
for (x in Areas) catalog.registerElement(Areas[x]);
|
|
365
|
+
for (_x4 in Lines) catalog.registerElement(Lines[_x4]);
|
|
366
|
+
for (_x5 in Holes) catalog.registerElement(Holes[_x5]);
|
|
367
|
+
catalog.registerCategory('Windows', 'Windows', [Holes.windowClear, Holes.windowCross, Holes.windowDoubleHung, Holes.windowVertical]);
|
|
368
|
+
catalog.registerCategory('Doors', 'Doors', [Holes.doorInterior, Holes.doorExterior, Holes.doorCloset, Holes.doorSliding, Holes.doorwayFramed, Holes.doorwayFrameless]);
|
|
369
|
+
for (_x6 in Item) catalog.registerElement(Item[_x6]);
|
|
370
|
+
MainComponent = function MainComponent(props, width, height) {
|
|
371
|
+
return /*#__PURE__*/_react["default"].createElement(_KitchenConfigurator["default"], (0, _extends2["default"])({
|
|
372
|
+
catalog: catalog,
|
|
373
|
+
width: width,
|
|
374
|
+
height: height
|
|
375
|
+
}, props, {
|
|
376
|
+
logoImage: logoImg,
|
|
377
|
+
companyURL: companyUrl,
|
|
378
|
+
plugins: plugins,
|
|
379
|
+
toolbarButtons: toolbarButtons,
|
|
380
|
+
stateExtractor: function stateExtractor(state) {
|
|
381
|
+
return state.get('KitchenConfigurator');
|
|
382
|
+
},
|
|
383
|
+
categoryData: categoryData,
|
|
384
|
+
data: data,
|
|
385
|
+
configData: configdata
|
|
386
|
+
}));
|
|
387
|
+
};
|
|
388
|
+
queryClient = new _reactQuery.QueryClient();
|
|
389
|
+
MainApp = function MainApp(props) {
|
|
390
|
+
return /*#__PURE__*/_react["default"].createElement(_reactQuery.QueryClientProvider, {
|
|
391
|
+
client: queryClient
|
|
392
|
+
}, /*#__PURE__*/_react["default"].createElement(_devtools.ReactQueryDevtools, {
|
|
393
|
+
initialIsOpen: false
|
|
394
|
+
}), /*#__PURE__*/_react["default"].createElement(_AppContext["default"].Provider, null, /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
395
|
+
store: store
|
|
396
|
+
}, /*#__PURE__*/_react["default"].createElement(_react3.PostHogProvider, {
|
|
397
|
+
apiKey: process.env.VITE_PUBLIC_POSTHOG_KEY,
|
|
398
|
+
options: options
|
|
399
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactContainerDimensions["default"], null, function (_ref4) {
|
|
400
|
+
var width = _ref4.width,
|
|
401
|
+
height = _ref4.height;
|
|
402
|
+
return /*#__PURE__*/_react["default"].createElement(_reactRouterDom.HashRouter, {
|
|
403
|
+
history: history.createHashHistory()
|
|
404
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Router, {
|
|
405
|
+
history: _history["default"]
|
|
406
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
|
|
407
|
+
exact: true,
|
|
408
|
+
path: "/:visualizerName/",
|
|
409
|
+
name: "kc",
|
|
410
|
+
render: function render(routeProps) {
|
|
411
|
+
return /*#__PURE__*/_react["default"].createElement(MainComponent, (0, _extends2["default"])({}, routeProps, props, {
|
|
412
|
+
width: width,
|
|
413
|
+
height: height
|
|
414
|
+
}));
|
|
415
|
+
}
|
|
416
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
|
|
417
|
+
path: "/login",
|
|
418
|
+
render: function render() {
|
|
419
|
+
return /*#__PURE__*/_react["default"].createElement(_Login["default"], null);
|
|
420
|
+
}
|
|
421
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
|
|
422
|
+
path: "/register",
|
|
423
|
+
render: function render() {
|
|
424
|
+
return /*#__PURE__*/_react["default"].createElement(_Register["default"], null);
|
|
425
|
+
}
|
|
426
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
|
|
427
|
+
path: "/:visualizerName/project/:role/:token/:pid",
|
|
428
|
+
render: function render(routeProps) {
|
|
429
|
+
return /*#__PURE__*/_react["default"].createElement(MainComponent, (0, _extends2["default"])({}, routeProps, props, {
|
|
430
|
+
width: width,
|
|
431
|
+
height: height
|
|
432
|
+
}));
|
|
433
|
+
}
|
|
434
|
+
}))));
|
|
435
|
+
})))));
|
|
436
|
+
};
|
|
437
|
+
setTimeout(function () {
|
|
438
|
+
_reactDom["default"].render(/*#__PURE__*/_react["default"].createElement(_CrossSignOn["default"], {
|
|
439
|
+
App: MainApp
|
|
440
|
+
}), document.getElementById('app'));
|
|
441
|
+
}, 100);
|
|
442
|
+
case 3:
|
|
443
|
+
case "end":
|
|
444
|
+
return _context2.stop();
|
|
445
|
+
}
|
|
446
|
+
}, _callee2);
|
|
447
|
+
}));
|
|
448
|
+
return function (_x2) {
|
|
449
|
+
return _ref2.apply(this, arguments);
|
|
450
|
+
};
|
|
451
|
+
}())["catch"](function (err) {
|
|
452
|
+
alert('Something wrong happened. Do you want to clear the cache and restart the app?');
|
|
453
|
+
console.log('Failed to load Category Data in src/renderer.jsx', err);
|
|
454
|
+
sessionStorage.clear();
|
|
455
|
+
store.dispatch((0, _projectActions.newProject)());
|
|
456
|
+
});
|
|
457
|
+
case 2:
|
|
458
|
+
case "end":
|
|
459
|
+
return _context3.stop();
|
|
460
|
+
}
|
|
461
|
+
}, _callee3);
|
|
462
|
+
}));
|
|
463
|
+
return function (_x) {
|
|
464
|
+
return _ref.apply(this, arguments);
|
|
465
|
+
};
|
|
466
|
+
}());
|
|
467
|
+
} else {
|
|
468
|
+
_reactDom["default"].render(/*#__PURE__*/_react["default"].createElement(_disclaimer["default"], {
|
|
469
|
+
open: true,
|
|
470
|
+
onClose: function onClose() {
|
|
471
|
+
if (window.history.length > 1) {
|
|
472
|
+
window.history.back();
|
|
473
|
+
} else {
|
|
474
|
+
window.location.href = 'https://addovisuals.com/'; // fallback to home
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}), document.getElementById('app'));
|
|
478
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.react-tabs__tab-list {
|
|
2
|
+
border-bottom: 1px solid #aaa;
|
|
3
|
+
margin: 0 0 10px;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.react-tabs__tab {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
border: 1px solid transparent;
|
|
10
|
+
border-bottom: none;
|
|
11
|
+
bottom: -1px;
|
|
12
|
+
position: relative;
|
|
13
|
+
list-style: none;
|
|
14
|
+
padding: 6px 12px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.react-tabs__tab--selected,
|
|
19
|
+
.react-tabs__tab:focus {
|
|
20
|
+
border-color: #aaa;
|
|
21
|
+
color: #1ca6fc;
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.react-tabs__tab-panel {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.react-tabs__tab-panel--selected {
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes spin {
|
|
34
|
+
from {
|
|
35
|
+
transform: rotate(0deg);
|
|
36
|
+
}
|
|
37
|
+
to {
|
|
38
|
+
transform: rotate(360deg);
|
|
39
|
+
}
|
|
40
|
+
}
|