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
package/es/class/line.js
CHANGED
|
@@ -79,7 +79,7 @@ var Line = /*#__PURE__*/function () {
|
|
|
79
79
|
}, {
|
|
80
80
|
key: "select",
|
|
81
81
|
value: function select(state, layerID, lineID) {
|
|
82
|
-
var _line$vertices, _line$vertices$get, _line$vertices2, _line$vertices2$get;
|
|
82
|
+
var _line$toJS, _line$vertices, _line$vertices$get, _line$vertices2, _line$vertices2$get;
|
|
83
83
|
// Try selecting the layer first
|
|
84
84
|
var layerResult = Layer.select(state, layerID);
|
|
85
85
|
if (!layerResult || !layerResult.updatedState) {
|
|
@@ -91,7 +91,7 @@ var Line = /*#__PURE__*/function () {
|
|
|
91
91
|
|
|
92
92
|
// Try getting the line
|
|
93
93
|
var line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);
|
|
94
|
-
if (!line) {
|
|
94
|
+
if (!line || isEmpty((_line$toJS = line.toJS) === null || _line$toJS === void 0 ? void 0 : _line$toJS.call(line))) {
|
|
95
95
|
return {
|
|
96
96
|
updatedState: state
|
|
97
97
|
}; // no update if line not found
|
|
@@ -127,8 +127,9 @@ var Line = /*#__PURE__*/function () {
|
|
|
127
127
|
}, {
|
|
128
128
|
key: "remove",
|
|
129
129
|
value: function remove(state, layerID, lineID) {
|
|
130
|
+
var _line$toJS2;
|
|
130
131
|
var line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);
|
|
131
|
-
if (line) {
|
|
132
|
+
if (line && !isEmpty((_line$toJS2 = line.toJS) === null || _line$toJS2 === void 0 ? void 0 : _line$toJS2.call(line))) {
|
|
132
133
|
state = this.unselect(state, layerID, lineID).updatedState;
|
|
133
134
|
line.holes.forEach(function (holeID) {
|
|
134
135
|
return state = Hole.remove(state, layerID, holeID).updatedState;
|
|
@@ -511,18 +512,25 @@ var Line = /*#__PURE__*/function () {
|
|
|
511
512
|
|
|
512
513
|
// get the angle of two lines and check the angle
|
|
513
514
|
if (drawingLine.vertices[0] !== drawingLine.vertices[1]) {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
515
|
+
if (!isEmpty(relatedLines)) {
|
|
516
|
+
relatedLines.forEach(function (line) {
|
|
517
|
+
// get the points of two lines(drawing line and related line)
|
|
518
|
+
if (!isEmpty(line)) {
|
|
519
|
+
// the angle between two lines(line, drawingLine)
|
|
520
|
+
lineAngle = GeometryUtils.angleBetweenTwoLines(line, drawingLine, vertices);
|
|
521
|
+
// check whether the angle is less than or bigger than specific value.
|
|
522
|
+
absAngle = Math.abs(lineAngle);
|
|
523
|
+
if (absAngle < MIN_ANGLE_DISALLOW_DRAW_WALL || absAngle > 360 - MIN_ANGLE_DISALLOW_DRAW_WALL) {
|
|
524
|
+
moveFlag = false;
|
|
525
|
+
} else moveFlag = true;
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
} else {
|
|
529
|
+
var px = vertices[drawingLine.vertices[0]].x;
|
|
530
|
+
var py = vertices[drawingLine.vertices[0]].y;
|
|
531
|
+
lineAngle = GeometryUtils.angleBetweenTwoPointsAndOrigin(px, py, x, y);
|
|
532
|
+
absAngle = Math.abs(lineAngle);
|
|
533
|
+
}
|
|
526
534
|
}
|
|
527
535
|
|
|
528
536
|
// if the angle is bigger or less than specific value, the wall mustn't be drawn at new position
|
|
@@ -608,9 +616,10 @@ var Line = /*#__PURE__*/function () {
|
|
|
608
616
|
var _this3 = this;
|
|
609
617
|
var layer = state.getIn(['scene', 'layers', layerID]);
|
|
610
618
|
var allVertices = state.getIn(['scene', 'layers', layerID, 'vertices']);
|
|
611
|
-
selectedLineInfo.points.forEach(function (
|
|
612
|
-
|
|
613
|
-
|
|
619
|
+
selectedLineInfo.points.forEach(function (tvertex, index) {
|
|
620
|
+
var _tvertex$toJS, _vertex$lines;
|
|
621
|
+
var vertex = tvertex === null || tvertex === void 0 || (_tvertex$toJS = tvertex.toJS) === null || _tvertex$toJS === void 0 ? void 0 : _tvertex$toJS.call(tvertex);
|
|
622
|
+
if (vertex && !isEmpty(vertex) && ((_vertex$lines = vertex.lines) === null || _vertex$lines === void 0 ? void 0 : _vertex$lines.length) === 2) {
|
|
614
623
|
var relatedLineID = vertex.lines.filter(function (lineID) {
|
|
615
624
|
return !selectedLineInfo.mergelines.some(function (mgline) {
|
|
616
625
|
return mgline.id === lineID;
|
|
@@ -618,27 +627,33 @@ var Line = /*#__PURE__*/function () {
|
|
|
618
627
|
});
|
|
619
628
|
if (!isEmpty(relatedLineID)) {
|
|
620
629
|
var relatedLine = layer.lines.get(relatedLineID[0]);
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
630
|
+
if (!isEmpty(relatedLine)) {
|
|
631
|
+
var intersectionPoint = vertex;
|
|
632
|
+
var startPoint, endPoint;
|
|
633
|
+
var tstPoint = allVertices.get(relatedLine.vertices.get(0)).toJS();
|
|
634
|
+
var tedPoint = allVertices.get(relatedLine.vertices.get(1)).toJS();
|
|
635
|
+
if (!isEmpty(tstPoint) && !isEmpty(tedPoint)) {
|
|
636
|
+
if (relatedLine.vertices.get(0) === intersectionPoint.id) {
|
|
637
|
+
endPoint = allVertices.get(relatedLine.vertices.get(1));
|
|
638
|
+
startPoint = selectedLineInfo.points[1 - index];
|
|
639
|
+
} else {
|
|
640
|
+
startPoint = allVertices.get(relatedLine.vertices.get(0));
|
|
641
|
+
endPoint = selectedLineInfo.points[1 - index];
|
|
642
|
+
}
|
|
643
|
+
var tline1 = {
|
|
644
|
+
vertices: [startPoint.id, intersectionPoint.id]
|
|
645
|
+
};
|
|
646
|
+
var tline2 = {
|
|
647
|
+
vertices: [intersectionPoint.id, endPoint.id]
|
|
648
|
+
};
|
|
649
|
+
var angle = Math.abs(GeometryUtils.angleBetweenTwoLines(tline1, tline2, allVertices.toJS()));
|
|
650
|
+
if (Math.abs(angle - 180) <= EPSILON) {
|
|
651
|
+
selectedLineInfo.mergelines.push(relatedLine);
|
|
652
|
+
selectedLineInfo.points[0] = startPoint;
|
|
653
|
+
selectedLineInfo.points[1] = endPoint;
|
|
654
|
+
return _this3.mergeAllLines(state, selectedLineInfo, layerID);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
642
657
|
}
|
|
643
658
|
}
|
|
644
659
|
}
|
|
@@ -653,9 +668,7 @@ var Line = /*#__PURE__*/function () {
|
|
|
653
668
|
var lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();
|
|
654
669
|
var line = state.getIn(['scene', 'layers', layerID, 'lines', lineID]);
|
|
655
670
|
if (isEmpty(line)) {
|
|
656
|
-
return
|
|
657
|
-
updatedState: state
|
|
658
|
-
};
|
|
671
|
+
return null;
|
|
659
672
|
}
|
|
660
673
|
var tmpStPoint = allVertices.get(line.vertices.get(0));
|
|
661
674
|
var tmpEdPoint = allVertices.get(line.vertices.get(1));
|
|
@@ -677,7 +690,12 @@ var Line = /*#__PURE__*/function () {
|
|
|
677
690
|
key: "createLines",
|
|
678
691
|
value: function createLines(state, actionType, mergeInfo) {
|
|
679
692
|
var _this4 = this,
|
|
680
|
-
|
|
693
|
+
_ret2;
|
|
694
|
+
if (isEmpty(mergeInfo)) {
|
|
695
|
+
return {
|
|
696
|
+
updatedState: state
|
|
697
|
+
};
|
|
698
|
+
}
|
|
681
699
|
var layerID = state.getIn(['scene', 'selectedLayer']);
|
|
682
700
|
var layer = state.getIn(['scene', 'layers', layerID]);
|
|
683
701
|
var lineGroups = [];
|
|
@@ -690,6 +708,7 @@ var Line = /*#__PURE__*/function () {
|
|
|
690
708
|
};
|
|
691
709
|
}
|
|
692
710
|
mergeInfo.mergelines.forEach(function (line) {
|
|
711
|
+
var _nv0$toJS, _nv1$toJS;
|
|
693
712
|
if ([END_DRAGGING_LINE, END_DRAGGING_VERTEX].includes(actionType)) {
|
|
694
713
|
var tmpGroups = state //get groups membership if present
|
|
695
714
|
.getIn(['scene', 'groups']).filter(function (group) {
|
|
@@ -702,10 +721,12 @@ var Line = /*#__PURE__*/function () {
|
|
|
702
721
|
}
|
|
703
722
|
var nv0 = layer.getIn(['vertices', line.vertices.get(0)]);
|
|
704
723
|
var nv1 = layer.getIn(['vertices', line.vertices.get(1)]);
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
724
|
+
if (!isEmpty(nv0 === null || nv0 === void 0 || (_nv0$toJS = nv0.toJS) === null || _nv0$toJS === void 0 ? void 0 : _nv0$toJS.call(nv0)) && !isEmpty(nv1 === null || nv1 === void 0 || (_nv1$toJS = nv1.toJS) === null || _nv1$toJS === void 0 ? void 0 : _nv1$toJS.call(nv1))) {
|
|
725
|
+
var tmpholeposition = _this4.getHolePosition(layer, line.id, nv0, nv1);
|
|
726
|
+
tmpholeposition.forEach(function (holeInfo) {
|
|
727
|
+
return holesWithOffsetPosition.push(holeInfo);
|
|
728
|
+
});
|
|
729
|
+
}
|
|
709
730
|
state = Line.remove(state, layerID, line.id).updatedState;
|
|
710
731
|
});
|
|
711
732
|
var ret;
|
|
@@ -714,16 +735,18 @@ var Line = /*#__PURE__*/function () {
|
|
|
714
735
|
state = ret.updatedState;
|
|
715
736
|
}
|
|
716
737
|
if ([END_DRAGGING_LINE, END_DRAGGING_VERTEX].includes(actionType)) {
|
|
738
|
+
var _ret;
|
|
717
739
|
//re-add to old line's groups if present
|
|
718
|
-
ret.lines.forEach(function (addedLine) {
|
|
740
|
+
(_ret = ret) === null || _ret === void 0 || _ret.lines.forEach(function (addedLine) {
|
|
719
741
|
lineGroups.forEach(function (oldLineGroup) {
|
|
720
742
|
state = Group.addElement(state, oldLineGroup.id, layerID, 'lines', addedLine.id).updatedState;
|
|
721
743
|
});
|
|
722
744
|
});
|
|
723
745
|
}
|
|
724
746
|
state = Layer.removeZeroLengthLines(state, layerID).updatedState;
|
|
725
|
-
if (!isEmpty((
|
|
726
|
-
|
|
747
|
+
if (!isEmpty((_ret2 = ret) === null || _ret2 === void 0 ? void 0 : _ret2.newline)) {
|
|
748
|
+
var _ret3;
|
|
749
|
+
state = this.select(state, layerID, (_ret3 = ret) === null || _ret3 === void 0 ? void 0 : _ret3.newline.get('id')).updatedState;
|
|
727
750
|
}
|
|
728
751
|
return {
|
|
729
752
|
updatedState: state
|
|
@@ -767,11 +790,13 @@ var Line = /*#__PURE__*/function () {
|
|
|
767
790
|
updatedState: state
|
|
768
791
|
};
|
|
769
792
|
}
|
|
770
|
-
|
|
793
|
+
var tv0 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(0)]).toJS();
|
|
794
|
+
var tv1 = state.getIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(1)]).toJS();
|
|
795
|
+
if (!isEmpty(v0) && !isEmpty(tv0)) {
|
|
771
796
|
state = state.setIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(0), 'x'], v0.x);
|
|
772
797
|
state = state.setIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(0), 'y'], v0.y);
|
|
773
798
|
}
|
|
774
|
-
if (!isEmpty(v1)) {
|
|
799
|
+
if (!isEmpty(v1) && !isEmpty(tv1)) {
|
|
775
800
|
state = state.setIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(1), 'x'], v1.x);
|
|
776
801
|
state = state.setIn(['scene', 'layers', layerID, 'vertices', line.vertices.get(1), 'y'], v1.y);
|
|
777
802
|
}
|
|
@@ -795,6 +820,11 @@ var Line = /*#__PURE__*/function () {
|
|
|
795
820
|
var layerID = state.getIn(['drawingSupport', 'layerID']);
|
|
796
821
|
var lineID = state.getIn(['scene', 'layers', layerID, 'selected', 'lines']).first();
|
|
797
822
|
var drawingLine = state.getIn(['scene', 'layers', layerID, 'lines', lineID]).toJS();
|
|
823
|
+
if (isEmpty(drawingLine)) {
|
|
824
|
+
return {
|
|
825
|
+
updatedState: state
|
|
826
|
+
};
|
|
827
|
+
}
|
|
798
828
|
if (drawingLine.vertices[0] === drawingLine.vertices[1]) {
|
|
799
829
|
state = Line.remove(state, layerID, lineID).updatedState;
|
|
800
830
|
state = state.merge({
|
|
@@ -987,6 +1017,11 @@ var Line = /*#__PURE__*/function () {
|
|
|
987
1017
|
var line = layer.lines.get(lineID);
|
|
988
1018
|
var drawedLine = line.toJS();
|
|
989
1019
|
var allVertices = state.getIn(['scene', 'layers', layerID, 'vertices']).toJS();
|
|
1020
|
+
if (isEmpty(drawedLine)) {
|
|
1021
|
+
return {
|
|
1022
|
+
updatedState: state
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
990
1025
|
var diffX = x - draggingSupport.get('startPointX');
|
|
991
1026
|
var diffY = y - draggingSupport.get('startPointY');
|
|
992
1027
|
var newVertex0X = draggingSupport.get('startVertex0X') + diffX;
|
package/es/class/project.js
CHANGED
|
@@ -3,12 +3,12 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import {
|
|
6
|
+
import { Map, List } from 'immutable';
|
|
7
|
+
import { MODE_VIEWING_CATALOG, MODE_CONFIGURING_PROJECT, MODE_IDLE, MODE_DRAWING_ITEM_3D, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_LINE, MODE_WAITING_DRAWING_LINE, MODE_DRAWING_HOLE, ARRAY_3D_MODES, END_DRAWING_LINE } from "../constants";
|
|
7
8
|
import * as constants from "../constants";
|
|
8
|
-
import {
|
|
9
|
-
import { Catalog, Scene, State } from "../models";
|
|
9
|
+
import { State, Catalog, Scene } from "../models";
|
|
10
10
|
import { GeometryUtils, history } from "../utils/export";
|
|
11
|
-
import {
|
|
11
|
+
import { Layer, Group, Line, Hole, Item, Area, HorizontalGuide, VerticalGuide } from "../class/export";
|
|
12
12
|
import * as viewer2DActions from "../actions/viewer2d-actions";
|
|
13
13
|
import { isEmpty } from "../utils/helper";
|
|
14
14
|
var Project = /*#__PURE__*/function () {
|
|
@@ -327,7 +327,7 @@ var Project = /*#__PURE__*/function () {
|
|
|
327
327
|
var delLine = !isEmpty(lineID) && state.getIn(['scene', 'layers', selectedLayer, 'lines', lineID]).toJS();
|
|
328
328
|
var allLines = state.getIn(['scene', 'layers', selectedLayer, 'lines']).toJS();
|
|
329
329
|
var relatedLines = [];
|
|
330
|
-
delLine && GeometryUtils.getRelatedLines(relatedLines, delLine, allVertices, allLines);
|
|
330
|
+
!isEmpty(delLine) && GeometryUtils.getRelatedLines(relatedLines, delLine, allVertices, allLines);
|
|
331
331
|
selectedLines.forEach(function (lineID) {
|
|
332
332
|
state = Line.remove(state, selectedLayer, lineID).updatedState;
|
|
333
333
|
});
|
|
@@ -337,12 +337,14 @@ var Project = /*#__PURE__*/function () {
|
|
|
337
337
|
selectedItems.forEach(function (itemID) {
|
|
338
338
|
state = Item.remove(state, selectedLayer, itemID).updatedState;
|
|
339
339
|
});
|
|
340
|
-
if (!isEmpty(relatedLines)) {
|
|
340
|
+
if (!isEmpty(selectedLines) && !isEmpty(relatedLines)) {
|
|
341
341
|
state = state.setIn(['mode'], MODE_DRAWING_LINE);
|
|
342
342
|
relatedLines.forEach(function (relLine, index) {
|
|
343
343
|
state = Line.select(state, selectedLayer, relLine.id).updatedState;
|
|
344
344
|
state = Line.applyWallChanges(state, END_DRAWING_LINE).updatedState;
|
|
345
345
|
});
|
|
346
|
+
} else {
|
|
347
|
+
state = Line.applyWallChanges(state, END_DRAWING_LINE).updatedState;
|
|
346
348
|
}
|
|
347
349
|
state = Layer.unselectAll(state, selectedLayer).updatedState;
|
|
348
350
|
var mode = state.getIn(['mode']);
|
package/es/class/vertex.js
CHANGED
|
@@ -171,7 +171,7 @@ var Vertex = /*#__PURE__*/function () {
|
|
|
171
171
|
var layerID = draggingSupport.get('layerID');
|
|
172
172
|
var vertexID = draggingSupport.get('vertexID');
|
|
173
173
|
var lines = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, 'lines']);
|
|
174
|
-
if (lines) {
|
|
174
|
+
if (!isEmpty(lines)) {
|
|
175
175
|
state = lines.reduce(function (reducedState, lineID) {
|
|
176
176
|
var eachLine = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID]);
|
|
177
177
|
if (isEmpty(eachLine)) return reducedState;
|
package/es/components/content.js
CHANGED
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
4
|
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
5
|
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
6
|
+
import CatalogList from "./catalog-view/catalog-list";
|
|
7
|
+
import ProjectConfigurator from "./configurator/project-configurator";
|
|
6
8
|
import * as constants from "../constants";
|
|
7
9
|
import Front3D from "./viewer3d/front3D";
|
|
8
10
|
export default function Content(_ref, _ref2) {
|
|
@@ -17,7 +19,6 @@ export default function Content(_ref, _ref2) {
|
|
|
17
19
|
catalog = _ref.catalog;
|
|
18
20
|
var projectActions = _ref2.projectActions;
|
|
19
21
|
var mode = state.get('mode');
|
|
20
|
-
console.log('mode =>', mode);
|
|
21
22
|
switch (mode) {
|
|
22
23
|
// this mode is when view elevation
|
|
23
24
|
case constants.MODE_ELEVATION_VIEW:
|
|
@@ -47,6 +48,14 @@ export default function Content(_ref, _ref2) {
|
|
|
47
48
|
width: width,
|
|
48
49
|
height: height
|
|
49
50
|
});
|
|
51
|
+
case constants.MODE_VIEWING_CATALOG:
|
|
52
|
+
return /*#__PURE__*/React.createElement(CatalogList, {
|
|
53
|
+
state: state,
|
|
54
|
+
param: match,
|
|
55
|
+
width: width,
|
|
56
|
+
height: height,
|
|
57
|
+
categoryData: this.props.categoryData
|
|
58
|
+
});
|
|
50
59
|
case constants.MODE_IDLE:
|
|
51
60
|
case constants.MODE_2D_ZOOM_IN:
|
|
52
61
|
case constants.MODE_2D_ZOOM_OUT:
|
|
@@ -83,6 +92,12 @@ export default function Content(_ref, _ref2) {
|
|
|
83
92
|
keyDownEnable: keyDownEnable,
|
|
84
93
|
downloadFlag: false
|
|
85
94
|
});
|
|
95
|
+
case constants.MODE_CONFIGURING_PROJECT:
|
|
96
|
+
return /*#__PURE__*/React.createElement(ProjectConfigurator, {
|
|
97
|
+
width: width,
|
|
98
|
+
height: height,
|
|
99
|
+
state: state
|
|
100
|
+
});
|
|
86
101
|
default:
|
|
87
102
|
if (customContents.hasOwnProperty(mode)) {
|
|
88
103
|
var CustomContent = customContents[mode];
|
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
7
|
+
var _templateObject;
|
|
9
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
10
|
import React, { Component } from 'react';
|
|
12
11
|
import PropTypes from 'prop-types';
|
|
13
|
-
import {
|
|
12
|
+
import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from "../../constants";
|
|
13
|
+
import styled from 'styled-components';
|
|
14
14
|
import { isValidNumber } from "../../utils/helper";
|
|
15
|
-
var
|
|
16
|
-
input: {
|
|
17
|
-
display: 'block',
|
|
18
|
-
padding: '15px 25px 12px 0px',
|
|
19
|
-
width: 120,
|
|
20
|
-
color: TEXT_COLOR_NEUTRAL_0,
|
|
21
|
-
backgroundColor: 'rgb(255, 255, 255)',
|
|
22
|
-
border: '2px solid',
|
|
23
|
-
textAlign: 'right',
|
|
24
|
-
"float": 'right',
|
|
25
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
26
|
-
fontSize: 16,
|
|
27
|
-
fontWeight: 600,
|
|
28
|
-
lineHeight: '17px',
|
|
29
|
-
borderRadius: 5,
|
|
30
|
-
outline: 0,
|
|
31
|
-
transition: 'border-color 0.2s'
|
|
32
|
-
},
|
|
33
|
-
inputFocus: {
|
|
34
|
-
borderColor: SECONDARY_PURPLE_COLOR
|
|
35
|
-
}
|
|
36
|
-
};
|
|
15
|
+
var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 25px 12px 0px;\n width: 120px;\n color: ", ";\n background-color: rgb(255, 255, 255);\n border: 2px solid;\n text-align: right;\n float: right;\n font-family: ", ";\n font-size: 16px;\n font-weight: 600;\n line-height: 17px;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR);
|
|
37
16
|
var FormNumberInput = /*#__PURE__*/function (_Component) {
|
|
38
17
|
function FormNumberInput(props, context) {
|
|
39
18
|
var _this;
|
|
@@ -125,16 +104,13 @@ var FormNumberInput = /*#__PURE__*/function (_Component) {
|
|
|
125
104
|
});
|
|
126
105
|
}
|
|
127
106
|
};
|
|
128
|
-
|
|
129
|
-
// Merge base style, focus style, and custom style
|
|
130
|
-
var inputStyle = _objectSpread(_objectSpread(_objectSpread({}, styles.input), this.state.focusOn ? styles.inputFocus : {}), style);
|
|
131
|
-
return /*#__PURE__*/React.createElement("input", {
|
|
107
|
+
return /*#__PURE__*/React.createElement(StyledInput, {
|
|
132
108
|
id: "form_number_input",
|
|
133
109
|
autoFocus: this.state.focusOn,
|
|
134
110
|
readOnly: !!this.props.disabled,
|
|
135
111
|
type: "text",
|
|
136
112
|
value: currValue,
|
|
137
|
-
style:
|
|
113
|
+
style: style,
|
|
138
114
|
onChange: function onChange(evt) {
|
|
139
115
|
_this2.context.projectActions.copyProperties('ddddd');
|
|
140
116
|
var valid = regexp.test(evt.nativeEvent.target.value);
|
|
@@ -1,59 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
5
4
|
var _excluded = ["children", "style"];
|
|
6
|
-
|
|
7
|
-
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; }
|
|
5
|
+
var _templateObject;
|
|
8
6
|
import React from 'react';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
width: 120,
|
|
14
|
-
"float": 'right',
|
|
15
|
-
padding: '15px 10px 12px 0px',
|
|
16
|
-
color: TEXT_COLOR_NEUTRAL_3,
|
|
17
|
-
border: '2px solid',
|
|
18
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
19
|
-
fontSize: 12,
|
|
20
|
-
fontWeight: 600,
|
|
21
|
-
lineHeight: '17px',
|
|
22
|
-
textAlign: 'right',
|
|
23
|
-
outline: 'none',
|
|
24
|
-
borderRadius: 5,
|
|
25
|
-
transition: 'border-color 0.2s'
|
|
26
|
-
}
|
|
27
|
-
};
|
|
7
|
+
import * as SharedStyle from "../../shared-style";
|
|
8
|
+
import styled from 'styled-components';
|
|
9
|
+
import { TEXT_COLOR_NEUTRAL_3, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR } from "../../constants";
|
|
10
|
+
var StyledSelect = styled.select(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n width: 120px;\n float: right;\n padding: 15px 10px 12px 0px;\n color: ", ";\n border: 2px solid;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n text-align: right;\n outline: none;\n border-radius: 5px;\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_3, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, SECONDARY_PURPLE_COLOR);
|
|
28
11
|
export default function FormSelect(_ref) {
|
|
29
12
|
var children = _ref.children,
|
|
30
13
|
style = _ref.style,
|
|
31
14
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
-
|
|
33
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
34
|
-
focus = _React$useState2[0],
|
|
35
|
-
setFocus = _React$useState2[1];
|
|
36
|
-
var _React$useState3 = React.useState(false),
|
|
37
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
38
|
-
hover = _React$useState4[0],
|
|
39
|
-
setHover = _React$useState4[1];
|
|
40
|
-
var borderColor = focus || hover ? SECONDARY_PURPLE_COLOR : undefined;
|
|
41
|
-
return /*#__PURE__*/React.createElement("select", _extends({
|
|
15
|
+
return /*#__PURE__*/React.createElement(StyledSelect, _extends({
|
|
42
16
|
type: "text",
|
|
43
|
-
style:
|
|
44
|
-
borderColor: borderColor
|
|
45
|
-
}, style),
|
|
46
|
-
onFocus: function onFocus() {
|
|
47
|
-
return setFocus(true);
|
|
48
|
-
},
|
|
49
|
-
onBlur: function onBlur() {
|
|
50
|
-
return setFocus(false);
|
|
51
|
-
},
|
|
52
|
-
onMouseEnter: function onMouseEnter() {
|
|
53
|
-
return setHover(true);
|
|
54
|
-
},
|
|
55
|
-
onMouseLeave: function onMouseLeave() {
|
|
56
|
-
return setHover(false);
|
|
57
|
-
}
|
|
17
|
+
style: style
|
|
58
18
|
}, rest), children);
|
|
59
19
|
}
|
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
6
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
9
9
|
var _excluded = ["style"];
|
|
10
|
-
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
var _templateObject;
|
|
12
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
13
|
import React, { Component } from 'react';
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
padding: '15px 10px 12px 0px',
|
|
20
|
-
width: 120,
|
|
21
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
22
|
-
fontSize: 12,
|
|
23
|
-
fontWeight: 600,
|
|
24
|
-
lineHeight: '17px',
|
|
25
|
-
color: TEXT_COLOR_NEUTRAL_3,
|
|
26
|
-
backgroundColor: BG_COLOR_0,
|
|
27
|
-
border: '2px solid',
|
|
28
|
-
textAlign: 'right',
|
|
29
|
-
"float": 'right',
|
|
30
|
-
borderRadius: 5,
|
|
31
|
-
outline: 0,
|
|
32
|
-
transition: 'border-color 0.2s'
|
|
33
|
-
}
|
|
34
|
-
};
|
|
14
|
+
import * as SharedStyle from "../../shared-style";
|
|
15
|
+
import { PROJECT_NAME_LENGTH_LIMIT, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR } from "../../constants";
|
|
16
|
+
import styled from 'styled-components';
|
|
17
|
+
var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 10px 12px 0px;\n width: 120px;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n color: ", ";\n background-color: ", ";\n border: 2px solid;\n text-align: right;\n float: right;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, SECONDARY_PURPLE_COLOR);
|
|
35
18
|
var FormTextInput = /*#__PURE__*/function (_Component) {
|
|
36
19
|
function FormTextInput(props) {
|
|
37
20
|
var _this;
|
|
@@ -58,23 +41,21 @@ var FormTextInput = /*#__PURE__*/function (_Component) {
|
|
|
58
41
|
var _this$props = this.props,
|
|
59
42
|
style = _this$props.style,
|
|
60
43
|
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
61
|
-
|
|
62
|
-
var inputStyle = _objectSpread(_objectSpread({}, styles.input), {}, {
|
|
63
|
-
borderColor: focus ? SECONDARY_PURPLE_COLOR : undefined
|
|
64
|
-
}, style);
|
|
65
|
-
return /*#__PURE__*/React.createElement("input", _extends({
|
|
44
|
+
return /*#__PURE__*/React.createElement(StyledInput, _extends({
|
|
66
45
|
ref: this.input,
|
|
67
|
-
onFocus: function onFocus() {
|
|
46
|
+
onFocus: function onFocus(e) {
|
|
68
47
|
return _this2.setState({
|
|
69
48
|
focus: true
|
|
70
49
|
});
|
|
71
50
|
},
|
|
72
|
-
onBlur: function onBlur() {
|
|
51
|
+
onBlur: function onBlur(e) {
|
|
73
52
|
return _this2.setState({
|
|
74
53
|
focus: false
|
|
75
54
|
});
|
|
76
55
|
},
|
|
77
|
-
style:
|
|
56
|
+
style: style
|
|
57
|
+
// autoFocus
|
|
58
|
+
,
|
|
78
59
|
type: "text"
|
|
79
60
|
}, rest, {
|
|
80
61
|
maxLength: PROJECT_NAME_LENGTH_LIMIT
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import polylabel from 'polylabel';
|
|
4
|
+
import { areaPolygon } from "./utils";
|
|
4
5
|
import { convert } from "../../utils/convert-units-lite";
|
|
5
6
|
import { formatNumber } from "../../utils/math";
|
|
6
7
|
import { DECIMAL_PLACES_2 } from "../../constants";
|
|
7
|
-
import { areaPolygon } from "./utils";
|
|
8
8
|
var STYLE_TEXT = {
|
|
9
9
|
textAnchor: 'middle',
|
|
10
10
|
fontSize: '12px',
|
|
@@ -5,6 +5,7 @@ import Ruler from "./ruler";
|
|
|
5
5
|
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
6
6
|
import * as Three from 'three';
|
|
7
7
|
import { isEmpty } from "./utils";
|
|
8
|
+
import Tooltip from '@material-ui/core/Tooltip';
|
|
8
9
|
var STYLE = {
|
|
9
10
|
stroke: 'rgb(77, 77, 77)',
|
|
10
11
|
strokeWidth: '1px'
|
|
@@ -147,7 +148,14 @@ export default function Line(_ref) {
|
|
|
147
148
|
var r1 = itemRect.rect[1];
|
|
148
149
|
var r2 = itemRect.rect[2];
|
|
149
150
|
var r3 = itemRect.rect[3];
|
|
150
|
-
var
|
|
151
|
+
var tverArray = [l2, l3, r2, r3].sort(function (_ref2, _ref3) {
|
|
152
|
+
var x1 = _ref2.x,
|
|
153
|
+
y1 = _ref2.y;
|
|
154
|
+
var x2 = _ref3.x,
|
|
155
|
+
y2 = _ref3.y;
|
|
156
|
+
return x1 === x2 ? y1 - y2 : x1 - x2;
|
|
157
|
+
});
|
|
158
|
+
var delta23 = GeometryUtils.verticesDistance(tverArray[0], tverArray[1]) + GeometryUtils.verticesDistance(tverArray[1], tverArray[2]) + GeometryUtils.verticesDistance(tverArray[2], tverArray[3]) - GeometryUtils.verticesDistance(tverArray[0], tverArray[3]);
|
|
151
159
|
if (delta23 < 0.1) {
|
|
152
160
|
return true;
|
|
153
161
|
} else {
|
|
@@ -794,7 +802,9 @@ export default function Line(_ref) {
|
|
|
794
802
|
} : {}
|
|
795
803
|
}, renderedLine, /*#__PURE__*/React.createElement("g", {
|
|
796
804
|
transform: "translate(".concat(x1, ", ").concat(y1, ") rotate(").concat(angle, ", 0, 0)")
|
|
797
|
-
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement(
|
|
805
|
+
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement(Tooltip, {
|
|
806
|
+
title: "Elevation View"
|
|
807
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
798
808
|
id: 'elevation-button',
|
|
799
809
|
key: 1,
|
|
800
810
|
transform: "translate(".concat(x1 + 35, ", ").concat(y1 - 15, ")"),
|
|
@@ -824,7 +834,7 @@ export default function Line(_ref) {
|
|
|
824
834
|
style: {
|
|
825
835
|
transform: 'rotateX(180deg)'
|
|
826
836
|
}
|
|
827
|
-
})), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
837
|
+
}))), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
828
838
|
id: 'remove-button',
|
|
829
839
|
key: 2,
|
|
830
840
|
transform: "translate(".concat(x1 + 10, ", ").concat(y1, ")"),
|
|
@@ -10,7 +10,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React, { Component } from 'react';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
|
-
import {
|
|
13
|
+
import { Layer, Grids } from "./export";
|
|
14
|
+
import { searchForSkuValue } from "./utils";
|
|
14
15
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
15
16
|
function Scene() {
|
|
16
17
|
_classCallCheck(this, Scene);
|
|
@@ -29,7 +30,6 @@ var Scene = /*#__PURE__*/function (_Component) {
|
|
|
29
30
|
if (this.props.scene.hashCode() !== nextProps.scene.hashCode()) {
|
|
30
31
|
scene = nextProps.scene, catalog = nextProps.catalog;
|
|
31
32
|
height = scene.height, layers = scene.layers;
|
|
32
|
-
console.log(layers.toJS());
|
|
33
33
|
selectedLayer = layers.get(scene.selectedLayer);
|
|
34
34
|
msg = '';
|
|
35
35
|
isNotFoundInElements = false;
|
|
@@ -161,12 +161,6 @@ export var getToeKickSKU = function getToeKickSKU() {
|
|
|
161
161
|
if (!skuData) return false;
|
|
162
162
|
return skuData;
|
|
163
163
|
};
|
|
164
|
-
|
|
165
|
-
// ESM version of "area-polygon" with default + named export.
|
|
166
|
-
// Same behavior: takes an array of [x,y] tuples or {x,y} objects.
|
|
167
|
-
// If `signed` is truthy, returns signed area; otherwise absolute area.
|
|
168
|
-
// Does not mutate the input array.
|
|
169
|
-
|
|
170
164
|
function normalize(point) {
|
|
171
165
|
if (Array.isArray(point)) {
|
|
172
166
|
return {
|