kitchen-simulator 5.10.1-react.18 → 5.10.2-react.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +3 -627
- package/es/index.js.LICENSE.txt +45 -0
- package/es/index.js.map +1 -0
- package/package.json +9 -5
- package/es/@history.js +0 -2
- package/es/AppContext.js +0 -6
- package/es/LiteKitchenConfigurator.js +0 -474
- package/es/LiteRenderer.js +0 -363
- package/es/WorkSpace.js +0 -851
- package/es/actions/area-actions.js +0 -14
- package/es/actions/export.js +0 -23
- package/es/actions/groups-actions.js +0 -89
- package/es/actions/holes-actions.js +0 -119
- package/es/actions/items-actions.js +0 -316
- package/es/actions/lines-actions.js +0 -83
- package/es/actions/project-actions.js +0 -298
- package/es/actions/scene-actions.js +0 -33
- package/es/actions/vertices-actions.js +0 -27
- package/es/actions/viewer2d-actions.js +0 -58
- package/es/actions/viewer3d-actions.js +0 -23
- package/es/assets/brown_photostudio_02_1k.hdr +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
- package/es/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
- package/es/assets/fonts/style.css +0 -177
- package/es/assets/gltf/door_closet.bin +0 -0
- package/es/assets/gltf/door_closet.fbx +0 -0
- package/es/assets/gltf/door_closet.gltf +0 -1
- package/es/assets/gltf/door_exterior.bin +0 -0
- package/es/assets/gltf/door_exterior.fbx +0 -0
- package/es/assets/gltf/door_exterior.gltf +0 -1
- package/es/assets/gltf/door_interior.bin +0 -0
- package/es/assets/gltf/door_interior.fbx +0 -0
- package/es/assets/gltf/door_interior.gltf +0 -1
- package/es/assets/gltf/door_sliding.bin +0 -0
- package/es/assets/gltf/door_sliding.fbx +0 -0
- package/es/assets/gltf/door_sliding.gltf +0 -1
- package/es/assets/gltf/doorway_framed.bin +0 -0
- package/es/assets/gltf/doorway_framed.fbx +0 -0
- package/es/assets/gltf/doorway_framed.gltf +0 -1
- package/es/assets/gltf/window_clear.bin +0 -0
- package/es/assets/gltf/window_clear.fbx +0 -0
- package/es/assets/gltf/window_clear.gltf +0 -1
- package/es/assets/gltf/window_cross.bin +0 -0
- package/es/assets/gltf/window_cross.fbx +0 -0
- package/es/assets/gltf/window_cross.gltf +0 -1
- package/es/assets/gltf/window_double_hung.bin +0 -0
- package/es/assets/gltf/window_double_hung.fbx +0 -0
- package/es/assets/gltf/window_double_hung.gltf +0 -1
- package/es/assets/gltf/window_vertical.bin +0 -0
- package/es/assets/gltf/window_vertical.fbx +0 -0
- package/es/assets/gltf/window_vertical.gltf +0 -1
- package/es/assets/img/TKC_thumbnail.png +0 -0
- package/es/assets/img/Toggle.png +0 -0
- package/es/assets/img/loading/loading.gif +0 -0
- package/es/assets/img/loading/loading_1.svg +0 -11
- package/es/assets/img/loading_large.gif +0 -0
- package/es/assets/img/png/door/closet.png +0 -0
- package/es/assets/img/png/door/doorwaysframed.png +0 -0
- package/es/assets/img/png/door/doorwaysframeles.png +0 -0
- package/es/assets/img/png/door/doorwaysframeless.png +0 -0
- package/es/assets/img/png/door/exterior.png +0 -0
- package/es/assets/img/png/door/interior.png +0 -0
- package/es/assets/img/png/door/sliding.png +0 -0
- package/es/assets/img/png/helper/outcome.png +0 -0
- package/es/assets/img/png/helper/video_preview_3d.png +0 -0
- package/es/assets/img/png/helper/video_preview_start.png +0 -0
- package/es/assets/img/project_img.png +0 -0
- package/es/assets/img/rta/rta_logo_box_blue.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_blue_ico.svg +0 -55
- package/es/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
- package/es/assets/img/rta/rta_logo_box_lightblue.png +0 -0
- package/es/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
- package/es/assets/img/rta/rta_logo_box_maroon.png +0 -0
- package/es/assets/img/rta/rta_logo_box_white.png +0 -0
- package/es/assets/img/rta_menu.png +0 -0
- package/es/assets/img/step2.jpg +0 -0
- package/es/assets/img/step3.jpg +0 -0
- package/es/assets/img/step4.jpg +0 -0
- package/es/assets/img/step5.jpg +0 -0
- package/es/assets/img/step6.jpg +0 -0
- package/es/assets/img/step7.jpg +0 -0
- package/es/assets/img/step8.jpg +0 -0
- package/es/assets/img/svg/2d_delete_object.svg +0 -33
- package/es/assets/img/svg/2d_delete_object1.svg +0 -33
- package/es/assets/img/svg/2d_lock_object.svg +0 -33
- package/es/assets/img/svg/3d_item_move.svg +0 -106
- package/es/assets/img/svg/3d_item_rotation.svg +0 -76
- package/es/assets/img/svg/3d_item_warning_edit.svg +0 -77
- package/es/assets/img/svg/3d_item_warning_info.svg +0 -81
- package/es/assets/img/svg/accessories.svg +0 -4
- package/es/assets/img/svg/angle_icon.svg +0 -39
- package/es/assets/img/svg/blank_div.svg +0 -14
- package/es/assets/img/svg/bottombar/2d3d_button.svg +0 -3
- package/es/assets/img/svg/bottombar/2d3d_button_active.svg +0 -3
- package/es/assets/img/svg/bottombar/2d3d_toggle.svg +0 -4
- package/es/assets/img/svg/bottombar/2d3d_toggle_active.svg +0 -4
- package/es/assets/img/svg/bottombar/arrow-down.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-left.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-minus.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-plus.svg +0 -11
- package/es/assets/img/svg/bottombar/arrow-right.svg +0 -3
- package/es/assets/img/svg/bottombar/arrow-up.svg +0 -3
- package/es/assets/img/svg/bottombar/collapse.svg +0 -3
- package/es/assets/img/svg/bottombar/elevation-back.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-front.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-left.svg +0 -6
- package/es/assets/img/svg/bottombar/elevation-right.svg +0 -7
- package/es/assets/img/svg/bottombar/elevation.svg +0 -13
- package/es/assets/img/svg/bottombar/expand.svg +0 -3
- package/es/assets/img/svg/bottombar/help.svg +0 -72
- package/es/assets/img/svg/bottombar/incm_toggle.svg +0 -39
- package/es/assets/img/svg/bottombar/pan_1.svg +0 -57
- package/es/assets/img/svg/bottombar/pan_2.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_3.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_4.svg +0 -27
- package/es/assets/img/svg/bottombar/pan_5.svg +0 -27
- package/es/assets/img/svg/bottombar/settings.svg +0 -23
- package/es/assets/img/svg/bottombar/spin-down.svg +0 -76
- package/es/assets/img/svg/bottombar/spin-left.svg +0 -75
- package/es/assets/img/svg/bottombar/spin-right.svg +0 -75
- package/es/assets/img/svg/bottombar/spin-up.svg +0 -76
- package/es/assets/img/svg/bottombar/spin_1.svg +0 -48
- package/es/assets/img/svg/bottombar/spin_2.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_3.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_4.svg +0 -31
- package/es/assets/img/svg/bottombar/spin_5.svg +0 -31
- package/es/assets/img/svg/bottombar/zoomin.svg +0 -29
- package/es/assets/img/svg/bottombar/zoomout.svg +0 -26
- package/es/assets/img/svg/check.svg +0 -10
- package/es/assets/img/svg/close.svg +0 -11
- package/es/assets/img/svg/color/Black.svg +0 -3
- package/es/assets/img/svg/color/Blue.svg +0 -3
- package/es/assets/img/svg/color/Brown.svg +0 -9
- package/es/assets/img/svg/color/Cream.svg +0 -3
- package/es/assets/img/svg/color/Dark.svg +0 -9
- package/es/assets/img/svg/color/Gray.svg +0 -3
- package/es/assets/img/svg/color/Green.svg +0 -3
- package/es/assets/img/svg/color/Light.svg +0 -9
- package/es/assets/img/svg/color/Medium.svg +0 -9
- package/es/assets/img/svg/color/Unfinished.svg +0 -9
- package/es/assets/img/svg/color/White.svg +0 -3
- package/es/assets/img/svg/color/White.svg.bak +0 -3
- package/es/assets/img/svg/color/stone2.jpg +0 -0
- package/es/assets/img/svg/color/wood2.jpg +0 -0
- package/es/assets/img/svg/copy.svg +0 -11
- package/es/assets/img/svg/delete.svg +0 -3
- package/es/assets/img/svg/detail.svg +0 -77
- package/es/assets/img/svg/disclaimer/background.svg +0 -758
- package/es/assets/img/svg/disclaimer/logo-dots.svg +0 -11
- package/es/assets/img/svg/door/Closet.svg +0 -11
- package/es/assets/img/svg/door/Exterior.svg +0 -5
- package/es/assets/img/svg/door/Framed_dorway.svg +0 -5
- package/es/assets/img/svg/door/Frameless_dorway.svg +0 -5
- package/es/assets/img/svg/door/Interior.svg +0 -7
- package/es/assets/img/svg/door/Sliding.svg +0 -5
- package/es/assets/img/svg/doors_closet.svg +0 -47
- package/es/assets/img/svg/doors_exterior.svg +0 -25
- package/es/assets/img/svg/doors_interior.svg +0 -29
- package/es/assets/img/svg/doors_patio.svg +0 -26
- package/es/assets/img/svg/duplicate.svg +0 -11
- package/es/assets/img/svg/duplicate_object_left.svg +0 -32
- package/es/assets/img/svg/duplicate_object_right.svg +0 -32
- package/es/assets/img/svg/filtersActive.svg +0 -19
- package/es/assets/img/svg/firstsetting/L.svg +0 -3
- package/es/assets/img/svg/firstsetting/L2.svg +0 -3
- package/es/assets/img/svg/firstsetting/Open.svg +0 -3
- package/es/assets/img/svg/firstsetting/Square.svg +0 -3
- package/es/assets/img/svg/firstsetting/bar-active.svg +0 -9
- package/es/assets/img/svg/firstsetting/bar-normal.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-current.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-done.svg +0 -3
- package/es/assets/img/svg/firstsetting/bullet-not-done.svg +0 -3
- package/es/assets/img/svg/firstsetting/check-active.svg +0 -3
- package/es/assets/img/svg/firstsetting/check-normal.svg +0 -3
- package/es/assets/img/svg/firstsetting/pencil.svg +0 -11
- package/es/assets/img/svg/green_checkmark.svg +0 -27
- package/es/assets/img/svg/headerbar/assist.svg +0 -3
- package/es/assets/img/svg/headerbar/cart.svg +0 -3
- package/es/assets/img/svg/headerbar/check.svg +0 -10
- package/es/assets/img/svg/headerbar/consult_designer.svg +0 -45
- package/es/assets/img/svg/headerbar/edit_name.svg +0 -26
- package/es/assets/img/svg/headerbar/file-dollar.svg +0 -13
- package/es/assets/img/svg/headerbar/hamburger_menu.svg +0 -32
- package/es/assets/img/svg/headerbar/plus.svg +0 -11
- package/es/assets/img/svg/headerbar/review_quote.svg +0 -44
- package/es/assets/img/svg/headerbar/ruler-measure.svg +0 -11
- package/es/assets/img/svg/headerbar/save.svg +0 -3
- package/es/assets/img/svg/headerbar/setting.svg +0 -75
- package/es/assets/img/svg/help/check.svg +0 -10
- package/es/assets/img/svg/help/search.svg +0 -76
- package/es/assets/img/svg/intro/1-start-with-floorplan-whole.svg +0 -27
- package/es/assets/img/svg/intro/1-start-with-floorplan.svg +0 -26
- package/es/assets/img/svg/intro/2-start-from-scratch-whole.svg +0 -28
- package/es/assets/img/svg/intro/2-start-from-scratch.svg +0 -27
- package/es/assets/img/svg/intro/3-retrieve-project-whole.svg +0 -19
- package/es/assets/img/svg/intro/3-retrieve-project.svg +0 -18
- package/es/assets/img/svg/invert.svg +0 -127
- package/es/assets/img/svg/lefttoolbar/appliance-active.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/appliance.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/cabinet-active.svg +0 -10
- package/es/assets/img/svg/lefttoolbar/cabinet-category.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/cabinet-one.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/cabinet.svg +0 -10
- package/es/assets/img/svg/lefttoolbar/disigner_assistance.svg +0 -89
- package/es/assets/img/svg/lefttoolbar/door-style-active.svg +0 -20
- package/es/assets/img/svg/lefttoolbar/door-style.svg +0 -20
- package/es/assets/img/svg/lefttoolbar/door.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/error_icon.svg +0 -81
- package/es/assets/img/svg/lefttoolbar/finishing-active.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/finishing.svg +0 -13
- package/es/assets/img/svg/lefttoolbar/reviewforquote-active.svg +0 -86
- package/es/assets/img/svg/lefttoolbar/reviewforquote.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/room-shape-L.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-active.svg +0 -18
- package/es/assets/img/svg/lefttoolbar/room-shape-custom.svg +0 -12
- package/es/assets/img/svg/lefttoolbar/room-shape-irregular.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-open.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape-square.svg +0 -3
- package/es/assets/img/svg/lefttoolbar/room-shape.svg +0 -18
- package/es/assets/img/svg/lefttoolbar/search.svg +0 -76
- package/es/assets/img/svg/lefttoolbar/view_more.svg +0 -86
- package/es/assets/img/svg/lefttoolbar/warning_icon.svg +0 -81
- package/es/assets/img/svg/lefttoolbar/window.svg +0 -12
- package/es/assets/img/svg/logo.svg +0 -11
- package/es/assets/img/svg/logo_with_text.svg +0 -25
- package/es/assets/img/svg/menubar/login.svg +0 -84
- package/es/assets/img/svg/menubar/my_projects.svg +0 -85
- package/es/assets/img/svg/menubar/new_project.svg +0 -110
- package/es/assets/img/svg/menubar/save_project.svg +0 -84
- package/es/assets/img/svg/options.svg +0 -3
- package/es/assets/img/svg/positioning.svg +0 -3
- package/es/assets/img/svg/rotate.png +0 -0
- package/es/assets/img/svg/rotate.svg +0 -17
- package/es/assets/img/svg/rotate_object_clockwise.svg +0 -26
- package/es/assets/img/svg/rotate_object_counterclockwise.svg +0 -26
- package/es/assets/img/svg/toggleFilters.svg +0 -19
- package/es/assets/img/svg/toolbar/add_appliances_active.svg +0 -64
- package/es/assets/img/svg/toolbar/add_appliances_inactive.svg +0 -52
- package/es/assets/img/svg/toolbar/add_button.svg +0 -36
- package/es/assets/img/svg/toolbar/add_cabinets_active.svg +0 -59
- package/es/assets/img/svg/toolbar/add_cabinets_inactive.svg +0 -49
- package/es/assets/img/svg/toolbar/add_items_doors.svg +0 -25
- package/es/assets/img/svg/toolbar/add_items_doorways.svg +0 -24
- package/es/assets/img/svg/toolbar/add_items_refrigerator.svg +0 -32
- package/es/assets/img/svg/toolbar/add_items_windows.svg +0 -28
- package/es/assets/img/svg/toolbar/apply_button.svg +0 -38
- package/es/assets/img/svg/toolbar/arrow-plus.svg +0 -11
- package/es/assets/img/svg/toolbar/backsplash.svg +0 -8
- package/es/assets/img/svg/toolbar/cancel_button.svg +0 -37
- package/es/assets/img/svg/toolbar/consult_a_designer_button.svg +0 -47
- package/es/assets/img/svg/toolbar/countertop.svg +0 -7
- package/es/assets/img/svg/toolbar/dcm.png +0 -0
- package/es/assets/img/svg/toolbar/dcm_off.svg +0 -12
- package/es/assets/img/svg/toolbar/dcm_on.svg +0 -474
- package/es/assets/img/svg/toolbar/delete_button.svg +0 -37
- package/es/assets/img/svg/toolbar/download.svg +0 -77
- package/es/assets/img/svg/toolbar/draw_custom_floor.svg +0 -31
- package/es/assets/img/svg/toolbar/edit_button.svg +0 -75
- package/es/assets/img/svg/toolbar/email_quote_button.svg +0 -44
- package/es/assets/img/svg/toolbar/fbm.png +0 -0
- package/es/assets/img/svg/toolbar/finishing_touches_active.svg +0 -54
- package/es/assets/img/svg/toolbar/finishing_touches_inactive.svg +0 -42
- package/es/assets/img/svg/toolbar/floorstyle.svg +0 -9
- package/es/assets/img/svg/toolbar/fmb.png +0 -0
- package/es/assets/img/svg/toolbar/fmb_off.svg +0 -12
- package/es/assets/img/svg/toolbar/fmb_on.svg +0 -489
- package/es/assets/img/svg/toolbar/furnishings_icon.svg +0 -6
- package/es/assets/img/svg/toolbar/get_started_button.svg +0 -41
- package/es/assets/img/svg/toolbar/handles.svg +0 -5
- package/es/assets/img/svg/toolbar/lighting.svg +0 -7
- package/es/assets/img/svg/toolbar/lrm.png +0 -0
- package/es/assets/img/svg/toolbar/lrm_off.svg +0 -12
- package/es/assets/img/svg/toolbar/lrm_on.svg +0 -470
- package/es/assets/img/svg/toolbar/make_floorplan_active.svg +0 -66
- package/es/assets/img/svg/toolbar/make_floorplan_inactive.svg +0 -52
- package/es/assets/img/svg/toolbar/predefined_room_l_shaped.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_layout.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_long_narrow.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_pentagon.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_rectangle.svg +0 -20
- package/es/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +0 -20
- package/es/assets/img/svg/toolbar/redo_button.svg +0 -75
- package/es/assets/img/svg/toolbar/redo_button1.svg +0 -75
- package/es/assets/img/svg/toolbar/review_quote_active.svg +0 -14
- package/es/assets/img/svg/toolbar/review_quote_inactive.svg +0 -44
- package/es/assets/img/svg/toolbar/save_project_button.svg +0 -44
- package/es/assets/img/svg/toolbar/select_doorstyle_active.svg +0 -67
- package/es/assets/img/svg/toolbar/select_doorstyle_inactive.svg +0 -57
- package/es/assets/img/svg/toolbar/shopping-cart.svg +0 -13
- package/es/assets/img/svg/toolbar/style_change_button.svg +0 -47
- package/es/assets/img/svg/toolbar/take_picture.svg +0 -75
- package/es/assets/img/svg/toolbar/undo_button.svg +0 -76
- package/es/assets/img/svg/toolbar/undo_button1.svg +0 -76
- package/es/assets/img/svg/toolbar/use_button.svg +0 -37
- package/es/assets/img/svg/toolbar/wall_color_icon.svg +0 -6
- package/es/assets/img/svg/topbar/edit_active.svg +0 -10
- package/es/assets/img/svg/topbar/edit_inactive.svg +0 -10
- package/es/assets/img/svg/topbar/redo_active.svg +0 -42
- package/es/assets/img/svg/topbar/redo_inactive.svg +0 -23
- package/es/assets/img/svg/topbar/select_all_active.svg +0 -50
- package/es/assets/img/svg/topbar/select_all_inactive.svg +0 -32
- package/es/assets/img/svg/topbar/take_picture_active.svg +0 -51
- package/es/assets/img/svg/topbar/take_picture_inactive.svg +0 -26
- package/es/assets/img/svg/topbar/undo_active.svg +0 -42
- package/es/assets/img/svg/topbar/undo_inactive.svg +0 -23
- package/es/assets/img/svg/warning_info_2d.svg +0 -81
- package/es/assets/img/svg/window/Clear.svg +0 -3
- package/es/assets/img/svg/window/Cross.svg +0 -5
- package/es/assets/img/svg/window/Double_hung.svg +0 -4
- package/es/assets/img/svg/window/Vertical.svg +0 -4
- package/es/assets/img/svg/windows_clear.svg +0 -23
- package/es/assets/img/svg/windows_cross.svg +0 -28
- package/es/assets/img/svg/windows_double_hung.svg +0 -24
- package/es/assets/img/svg/windows_vertical.svg +0 -24
- package/es/assets/img/svg/wizardstep/Custom.svg +0 -3
- package/es/assets/img/svg/wizardstep/Dashed_line.svg +0 -3
- package/es/assets/img/svg/wizardstep/L.svg +0 -3
- package/es/assets/img/svg/wizardstep/L2.svg +0 -3
- package/es/assets/img/svg/wizardstep/Open.svg +0 -3
- package/es/assets/img/svg/wizardstep/Square.svg +0 -3
- package/es/assets/img/svg/wizardstep/bar-active.svg +0 -9
- package/es/assets/img/svg/wizardstep/bar-normal.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-current.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-done.svg +0 -3
- package/es/assets/img/svg/wizardstep/bullet-not-done.svg +0 -3
- package/es/assets/img/svg/wizardstep/check-active.svg +0 -3
- package/es/assets/img/svg/wizardstep/check-normal.svg +0 -3
- package/es/assets/img/svg/wizardstep/detail_view.svg +0 -87
- package/es/assets/img/svg/wizardstep/pencil.svg +0 -11
- package/es/assets/img/svg/wizardstep/tile_view.svg +0 -95
- package/es/assets/img/texture/glass.jpg +0 -0
- package/es/assets/img/texture/steel.jpg +0 -0
- package/es/assets/img/texture/white1px.jpg +0 -0
- package/es/assets/img/texture/wood.jpg +0 -0
- package/es/assets/model/DCM.bin +0 -0
- package/es/assets/model/DCM.fbx +0 -0
- package/es/assets/model/DCM.gltf +0 -1
- package/es/assets/model/FBM.bin +0 -0
- package/es/assets/model/FBM.fbx +0 -0
- package/es/assets/model/FBM.gltf +0 -1
- package/es/assets/model/LRM.bin +0 -0
- package/es/assets/model/LRM.fbx +0 -0
- package/es/assets/model/LRM.gltf +0 -1
- package/es/assets/rtastore_logo.png +0 -0
- package/es/catalog/areas/area/planner-element.js +0 -45
- package/es/catalog/back.png +0 -0
- package/es/catalog/catalog.js +0 -265
- package/es/catalog/doors.png +0 -0
- package/es/catalog/doorways.png +0 -0
- package/es/catalog/envMap/nx.hdr +0 -0
- package/es/catalog/envMap/ny.hdr +0 -0
- package/es/catalog/envMap/nz.hdr +0 -0
- package/es/catalog/envMap/px.hdr +0 -0
- package/es/catalog/envMap/py.hdr +0 -0
- package/es/catalog/envMap/pz.hdr +0 -0
- package/es/catalog/export.js +0 -0
- package/es/catalog/factories/area-factory-3d.js +0 -182
- package/es/catalog/factories/area-factory.js +0 -78
- package/es/catalog/factories/export.js +0 -7
- package/es/catalog/factories/wall-factory-3d.js +0 -202
- package/es/catalog/factories/wall-factory.js +0 -267
- package/es/catalog/holes/door-closet/planner-element.js +0 -222
- package/es/catalog/holes/door-double/door_double.png +0 -0
- package/es/catalog/holes/door-double/planner-element.js +0 -315
- package/es/catalog/holes/door-exterior/planner-element.js +0 -215
- package/es/catalog/holes/door-interior/planner-element.js +0 -227
- package/es/catalog/holes/door-panic/panicDoor.png +0 -0
- package/es/catalog/holes/door-panic/planner-element.js +0 -503
- package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -463
- package/es/catalog/holes/door-sliding/planner-element.js +0 -225
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -145
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -104
- package/es/catalog/holes/export.js +0 -13
- package/es/catalog/holes/gate/gate.jpg +0 -0
- package/es/catalog/holes/window-clear/planner-element.js +0 -166
- package/es/catalog/holes/window-clear/texture.png +0 -0
- package/es/catalog/holes/window-cross/planner-element.js +0 -165
- package/es/catalog/holes/window-cross/texture.png +0 -0
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -303
- package/es/catalog/holes/window-double-hung/texture.png +0 -0
- package/es/catalog/holes/window-vertical/planner-element.js +0 -276
- package/es/catalog/holes/window-vertical/texture.png +0 -0
- package/es/catalog/lines/wall/planner-element.js +0 -79
- package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -26
- package/es/catalog/molding/molding-dcm/texture.png +0 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -26
- package/es/catalog/molding/molding-fbm/texture.png +0 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -26
- package/es/catalog/molding/molding-lrm/texture.png +0 -0
- package/es/catalog/properties/export.js +0 -21
- package/es/catalog/properties/property-checkbox.js +0 -68
- package/es/catalog/properties/property-color.js +0 -39
- package/es/catalog/properties/property-enum.js +0 -50
- package/es/catalog/properties/property-hidden.js +0 -19
- package/es/catalog/properties/property-lenght-measure.js +0 -96
- package/es/catalog/properties/property-length-measure.js +0 -80
- package/es/catalog/properties/property-length-measure_hole.js +0 -96
- package/es/catalog/properties/property-number.js +0 -48
- package/es/catalog/properties/property-read-only.js +0 -26
- package/es/catalog/properties/property-string.js +0 -48
- package/es/catalog/properties/property-toggle.js +0 -39
- package/es/catalog/properties/shared-property-style.js +0 -14
- package/es/catalog/utils/FuseUtils.js +0 -79
- package/es/catalog/utils/exporter.js +0 -161
- package/es/catalog/utils/geom-utils.js +0 -189
- package/es/catalog/utils/item-loader.js +0 -1602
- package/es/catalog/utils/load-obj.js +0 -91
- package/es/catalog/utils/mtl-loader.js +0 -357
- package/es/catalog/utils/obj-loader.js +0 -476
- package/es/catalog/windows.png +0 -0
- package/es/class/FuseUtils.js +0 -79
- package/es/class/area.js +0 -141
- package/es/class/export.js +0 -24
- package/es/class/group.js +0 -431
- package/es/class/guide.js +0 -58
- package/es/class/hole.js +0 -924
- package/es/class/item.js +0 -1884
- package/es/class/layer.js +0 -663
- package/es/class/line.js +0 -1229
- package/es/class/project.js +0 -937
- package/es/class/vertex.js +0 -198
- package/es/components/content.js +0 -135
- package/es/components/export.js +0 -9
- package/es/components/style/button.js +0 -106
- package/es/components/style/cancel-button.js +0 -21
- package/es/components/style/content-container.js +0 -30
- package/es/components/style/content-title.js +0 -25
- package/es/components/style/delete-button.js +0 -24
- package/es/components/style/export.js +0 -31
- package/es/components/style/form-block.js +0 -20
- package/es/components/style/form-color-input.js +0 -26
- package/es/components/style/form-label.js +0 -22
- package/es/components/style/form-number-input.js +0 -192
- package/es/components/style/form-number-input_2.js +0 -238
- package/es/components/style/form-select.js +0 -19
- package/es/components/style/form-slider.js +0 -60
- package/es/components/style/form-submit-button.js +0 -25
- package/es/components/style/form-text-input.js +0 -69
- package/es/components/viewer2d/area.js +0 -81
- package/es/components/viewer2d/export.js +0 -31
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer2d/grids/grid-streak.js +0 -36
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer2d/grids/grids.js +0 -30
- package/es/components/viewer2d/group.js +0 -48
- package/es/components/viewer2d/item.js +0 -242
- package/es/components/viewer2d/layer.js +0 -164
- package/es/components/viewer2d/line.js +0 -997
- package/es/components/viewer2d/ruler.js +0 -84
- package/es/components/viewer2d/rulerDist.js +0 -102
- package/es/components/viewer2d/rulerX.js +0 -142
- package/es/components/viewer2d/rulerY.js +0 -144
- package/es/components/viewer2d/scene.js +0 -108
- package/es/components/viewer2d/snap.js +0 -74
- package/es/components/viewer2d/state.js +0 -73
- package/es/components/viewer2d/utils.js +0 -193
- package/es/components/viewer2d/vertex.js +0 -66
- package/es/components/viewer2d/viewer2d.js +0 -1405
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2585
- package/es/components/viewer3d/dcm.js +0 -401
- package/es/components/viewer3d/fbm.js +0 -414
- package/es/components/viewer3d/front3D.js +0 -62
- package/es/components/viewer3d/grid-creator.js +0 -25
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -36
- package/es/components/viewer3d/grids/grid-streak.js +0 -27
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -36
- package/es/components/viewer3d/libs/first-person-controls.js +0 -67
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1281
- package/es/components/viewer3d/libs/mtl-loader.js +0 -357
- package/es/components/viewer3d/libs/obj-loader.js +0 -462
- package/es/components/viewer3d/libs/orbit-controls.js +0 -697
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -44
- package/es/components/viewer3d/lrm.js +0 -305
- package/es/components/viewer3d/model.js +0 -708
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -115
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -61
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -495
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -224
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -59
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -18
- package/es/components/viewer3d/scene-creator.js +0 -3818
- package/es/components/viewer3d/three-memory-cleaner.js +0 -51
- package/es/components/viewer3d/viewer3d-first-person.js +0 -311
- package/es/components/viewer3d/viewer3d.js +0 -2654
- package/es/constants.js +0 -769
- package/es/index.html.ejs +0 -264
- package/es/models.js +0 -512
- package/es/plugins/SVGLoader.js +0 -1414
- package/es/plugins/console-debugger.js +0 -34
- package/es/plugins/export.js +0 -7
- package/es/plugins/keyboard.js +0 -110
- package/es/reducers/areas-reducer.js +0 -12
- package/es/reducers/export.js +0 -25
- package/es/reducers/groups-reducer.js +0 -38
- package/es/reducers/holes-reducer.js +0 -62
- package/es/reducers/items-reducer.js +0 -143
- package/es/reducers/lines-reducer.js +0 -45
- package/es/reducers/project-reducer.js +0 -136
- package/es/reducers/reducer.js +0 -19
- package/es/reducers/scene-reducer.js +0 -28
- package/es/reducers/user-reducer.js +0 -41
- package/es/reducers/vertices-reducer.js +0 -19
- package/es/reducers/viewer2d-reducer.js +0 -77
- package/es/reducers/viewer3d-reducer.js +0 -58
- package/es/shared-style.js +0 -66
- package/es/translator/en.js +0 -104
- package/es/translator/it.js +0 -79
- package/es/translator/ru.js +0 -79
- package/es/translator/translator.js +0 -80
- package/es/utils/browser.js +0 -33
- package/es/utils/convert-units-lite.js +0 -29
- package/es/utils/email-validator.js +0 -4
- package/es/utils/export.js +0 -25
- package/es/utils/geometry.js +0 -2609
- package/es/utils/get-edges-of-subgraphs.js +0 -26
- package/es/utils/graph-cycles.js +0 -238
- package/es/utils/graph-inner-cycles.js +0 -46
- package/es/utils/graph.js +0 -145
- package/es/utils/helper.js +0 -436
- package/es/utils/history.js +0 -29
- package/es/utils/id-broker.js +0 -15
- package/es/utils/isolate-event-handler.js +0 -1622
- package/es/utils/logger.js +0 -8
- package/es/utils/math.js +0 -50
- package/es/utils/molding.js +0 -1347
- package/es/utils/name-generator.js +0 -17
- package/es/utils/objects-utils.js +0 -50
- package/es/utils/phone-validator.js +0 -4
- package/es/utils/process-black-list.js +0 -15
- package/es/utils/react-if.js +0 -18
- package/es/utils/ruler.js +0 -58
- package/es/utils/snap-scene.js +0 -94
- package/es/utils/snap.js +0 -231
- package/es/utils/summarizeCart.js +0 -24
- package/es/utils/threeCSG.es6.js +0 -494
- package/es/version.js +0 -1
- /package/es/{catalog/lines/wall/textures/plaster-normal.jpg → 1fc74a85baa030dbc913.jpg} +0 -0
- /package/es/{catalog/lines/wall/wall.png → 30a49a74d9bd10068b65.png} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks-normal2.jpg → 340a84d3930143a53545.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/morden-normal.jpg → 5c8d36b3e7223934f447.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks-normal.jpg → 81e7a7e6edf162e88b44.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/morden.jpg → 8fe0f1210d8ba435a790.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/bricks.jpg → a07d30a04bda8ee03491.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/painted.jpg → bee3f62687a97bcc3d9f.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/strand-porcelain.jpg → c232d250fd899392b1b7.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/tile1.jpg → c7ae6f4de09134ebe588.jpg} +0 -0
- /package/es/{catalog/lines/wall/textures/plaster.jpg → dad5ee758630256ee702.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/grass.jpg → e470a2ce76062955fa98.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/parquet.jpg → e5ae13166775e7d071e4.jpg} +0 -0
- /package/es/{catalog/areas/area/textures/ceramic-tile.jpg → e8e5de0892f5375460bd.jpg} +0 -0
package/es/utils/helper.js
DELETED
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
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; }
|
|
4
|
-
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
|
-
import { HDRCubeTextureLoader } from 'three/examples/jsm/loaders/HDRCubeTextureLoader.js';
|
|
6
|
-
import { ANIMATE_OBJECT_OPEN_DOOR_ROTATION_UNIT, ANIMATE_STEP_MAX, DECIMAL_PLACES_2, HDR_URLS, MAX_ZOOM_IN_SCALE, MODE_ELEVATION_VIEW, ZOOM_VARIABLE } from "../constants";
|
|
7
|
-
import * as Three from 'three';
|
|
8
|
-
import { isWarningItem, returnReplaceableDeepSearchType } from "./../components/viewer2d/utils";
|
|
9
|
-
import { convert } from "./convert-units-lite";
|
|
10
|
-
import { formatNumber } from "./math";
|
|
11
|
-
import AWS from 'aws-sdk';
|
|
12
|
-
import { GeometryUtils, MoldingUtils } from "./export";
|
|
13
|
-
var s3 = new AWS.S3({
|
|
14
|
-
accessKeyId: process.env.REACT_APP_AWS_ID,
|
|
15
|
-
secretAccessKey: process.env.REACT_APP_AWS_SECRET
|
|
16
|
-
});
|
|
17
|
-
var s3ParseUrl = function s3ParseUrl(url) {
|
|
18
|
-
var _decodedUrl = decodeURIComponent(url);
|
|
19
|
-
var _result = null;
|
|
20
|
-
|
|
21
|
-
// http://s3.amazonaws.com/bucket/key1/key2
|
|
22
|
-
var match = decodedUrl.match(/^https?:\/\/s3.amazonaws.com\/([^\/]+)\/?(.*?)$/);
|
|
23
|
-
if (_match) {
|
|
24
|
-
_result = {
|
|
25
|
-
bucket: _match[1],
|
|
26
|
-
key: _match[2],
|
|
27
|
-
region: ''
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// http://s3-aws-region.amazonaws.com/bucket/key1/key2
|
|
32
|
-
match = decodedUrl.match(/^https?:\/\/s3-([^.]+).amazonaws.com\/([^\/]+)\/?(.*?)$/);
|
|
33
|
-
if (_match) {
|
|
34
|
-
_result = {
|
|
35
|
-
bucket: _match[2],
|
|
36
|
-
key: _match[3],
|
|
37
|
-
region: _match[1]
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// http://bucket.s3.amazonaws.com/key1/key2
|
|
42
|
-
match = decodedUrl.match(/^https?:\/\/([^.]+).s3.amazonaws.com\/?(.*?)$/);
|
|
43
|
-
if (_match) {
|
|
44
|
-
_result = {
|
|
45
|
-
bucket: _match[1],
|
|
46
|
-
key: _match[2],
|
|
47
|
-
region: ''
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// http://bucket.s3-aws-region.amazonaws.com/key1/key2 or,
|
|
52
|
-
// http://bucket.s3.aws-region.amazonaws.com/key1/key2
|
|
53
|
-
match = decodedUrl.match(/^https?:\/\/([^.]+).(?:s3-|s3\.)([^.]+).amazonaws.com\/?(.*?)$/);
|
|
54
|
-
if (_match) {
|
|
55
|
-
_result = {
|
|
56
|
-
bucket: _match[1],
|
|
57
|
-
key: _match[3],
|
|
58
|
-
region: _match[2]
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return _result;
|
|
62
|
-
};
|
|
63
|
-
export var textureCube = new HDRCubeTextureLoader().setPath('/catalog/envMap/').load(HDR_URLS, function () {
|
|
64
|
-
textureCube.magFilter = Three.LinearFilter;
|
|
65
|
-
textureCube.needsUpdate = true;
|
|
66
|
-
});
|
|
67
|
-
export var getSignedUrl = function getSignedUrl(url) {
|
|
68
|
-
if (!url) return url;
|
|
69
|
-
var signedUrl = url;
|
|
70
|
-
try {
|
|
71
|
-
var _s3ParseUrl = s3ParseUrl(url),
|
|
72
|
-
bucket = _s3ParseUrl.bucket,
|
|
73
|
-
key = _s3ParseUrl.key;
|
|
74
|
-
signedUrl = s3.getSignedUrl('getObject', {
|
|
75
|
-
Bucket: bucket,
|
|
76
|
-
Key: key,
|
|
77
|
-
ResponseCacheControl: 'no-cache'
|
|
78
|
-
});
|
|
79
|
-
} catch (e) {
|
|
80
|
-
signedUrl = url;
|
|
81
|
-
}
|
|
82
|
-
return signedUrl;
|
|
83
|
-
};
|
|
84
|
-
export var base64Decode = function base64Decode(targetStr) {
|
|
85
|
-
if (!targetStr) return null;
|
|
86
|
-
try {
|
|
87
|
-
// If URL-encoded, decode first
|
|
88
|
-
var base64Str = targetStr.includes('%') ? decodeURIComponent(targetStr) : targetStr;
|
|
89
|
-
var binaryStr = atob(base64Str);
|
|
90
|
-
// Convert binary string to UTF-8 string
|
|
91
|
-
return decodeURIComponent(binaryStr.split('').map(function (_char) {
|
|
92
|
-
return "%".concat(_char.charCodeAt(0).toString(16).padStart(2, '0'));
|
|
93
|
-
}).join(''));
|
|
94
|
-
} catch (e) {
|
|
95
|
-
console.log('Invalid Base64 or UTF-8 string: ', e);
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
export var refineProductForSummaryPdf = function refineProductForSummaryPdf(refinedProductList, catalog, categoryData, itemSKU, suffix, item, product, measurementUnit, count) {
|
|
100
|
-
var _doorColor;
|
|
101
|
-
var review;
|
|
102
|
-
var doorColor = item.doorStyle;
|
|
103
|
-
if (doorColor.size) {
|
|
104
|
-
doorColor = doorColor.toJS();
|
|
105
|
-
}
|
|
106
|
-
var doorStyleName = (_doorColor = doorColor) === null || _doorColor === void 0 ? void 0 : _doorColor.name;
|
|
107
|
-
if (catalog !== undefined) {
|
|
108
|
-
var _doorColor2, _doorColor4;
|
|
109
|
-
if (!((_doorColor2 = doorColor) !== null && _doorColor2 !== void 0 && _doorColor2.install)) {
|
|
110
|
-
categoryData.data.doorStyles.items.forEach(function (category) {
|
|
111
|
-
category.items.forEach(function (element) {
|
|
112
|
-
if (element.items.filter(function (it) {
|
|
113
|
-
var _doorColor3;
|
|
114
|
-
return it.id === ((_doorColor3 = doorColor) === null || _doorColor3 === void 0 ? void 0 : _doorColor3.id);
|
|
115
|
-
})) {
|
|
116
|
-
doorColor = _objectSpread(_objectSpread({}, doorColor), {}, {
|
|
117
|
-
install: category.name
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
review = catalog.elements[item.type];
|
|
124
|
-
if (!review) {
|
|
125
|
-
review = catalog.elements[returnReplaceableDeepSearchType(item.type)];
|
|
126
|
-
}
|
|
127
|
-
if (((_doorColor4 = doorColor) === null || _doorColor4 === void 0 || (_doorColor4 = _doorColor4.install) === null || _doorColor4 === void 0 ? void 0 : _doorColor4.toLowerCase()) === 'pre-assembled') {
|
|
128
|
-
itemSKU += '-assembled';
|
|
129
|
-
} else {
|
|
130
|
-
itemSKU += '-rta';
|
|
131
|
-
}
|
|
132
|
-
var refinedData = {
|
|
133
|
-
thumbnail: review.img,
|
|
134
|
-
sku: itemSKU,
|
|
135
|
-
sizeInfo: {
|
|
136
|
-
width: Math.round(convert(review.info.sizeinfo.width).from('in').to(measurementUnit._unit) * 100) / 100,
|
|
137
|
-
depth: Math.round(convert(review.info.sizeinfo.depth).from('in').to(measurementUnit._unit) * 100) / 100,
|
|
138
|
-
height: Math.round(convert(review.info.sizeinfo.height).from('in').to(measurementUnit._unit) * 100) / 100,
|
|
139
|
-
_unit: measurementUnit._unit
|
|
140
|
-
},
|
|
141
|
-
doorstyle: doorStyleName,
|
|
142
|
-
installation: suffix,
|
|
143
|
-
subTotal: product && product.discounted_price ? product && Number(product.discounted_price * (count || 1)) : 0
|
|
144
|
-
};
|
|
145
|
-
var index = (refinedProductList || []).findIndex(function (row) {
|
|
146
|
-
return row.sku === itemSKU;
|
|
147
|
-
});
|
|
148
|
-
if (index !== -1) {
|
|
149
|
-
refinedProductList[index] = refinedData;
|
|
150
|
-
} else {
|
|
151
|
-
refinedProductList.push(refinedData);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
export var refineMoldingForSummaryPdf = function refineMoldingForSummaryPdf(refinedProductList, molding, product, newSKU) {
|
|
156
|
-
if (molding) {
|
|
157
|
-
var review = {
|
|
158
|
-
img: molding.thumbnail,
|
|
159
|
-
name: molding.name,
|
|
160
|
-
count: molding.count
|
|
161
|
-
};
|
|
162
|
-
var subTotalPrice = product && product.discounted_price ? formatNumber(product.discounted_price * review.count, DECIMAL_PLACES_2) : 0;
|
|
163
|
-
var refinedData = {
|
|
164
|
-
id: newSKU,
|
|
165
|
-
thumbnail: review.img,
|
|
166
|
-
sku: review.name,
|
|
167
|
-
sizeInfo: null,
|
|
168
|
-
subTotal: Number(subTotalPrice)
|
|
169
|
-
};
|
|
170
|
-
var index = (refinedProductList || []).findIndex(function (row) {
|
|
171
|
-
return row.sku === newSKU;
|
|
172
|
-
});
|
|
173
|
-
if (index !== -1) {
|
|
174
|
-
refinedProductList[index] = refinedData;
|
|
175
|
-
} else {
|
|
176
|
-
refinedProductList.push(refinedData);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
export function applyEdges(object) {
|
|
181
|
-
if (object && object.isMesh && !(object instanceof Three.LineSegments)) {
|
|
182
|
-
var parent = object.parent;
|
|
183
|
-
if (!isEmpty(parent)) {
|
|
184
|
-
if (object.name.match('interior_drawer') || object.name.match('interior') || object.name.match('soul')) {
|
|
185
|
-
parent.remove(object);
|
|
186
|
-
} else {
|
|
187
|
-
// Create a replacement
|
|
188
|
-
var edges = new Three.EdgesGeometry(object.geometry, 10);
|
|
189
|
-
var lineMaterial = new Three.LineBasicMaterial({
|
|
190
|
-
color: 0x000000,
|
|
191
|
-
depthTest: true,
|
|
192
|
-
depthFunc: Three.LessEqualDepth,
|
|
193
|
-
depthWrite: false
|
|
194
|
-
});
|
|
195
|
-
var line = new Three.LineSegments(edges, lineMaterial);
|
|
196
|
-
line.position.copy(object.position);
|
|
197
|
-
line.scale.copy(object.scale);
|
|
198
|
-
line.rotation.copy(object.rotation);
|
|
199
|
-
line.name = object.name;
|
|
200
|
-
|
|
201
|
-
// Replace in parent
|
|
202
|
-
parent.remove(object);
|
|
203
|
-
parent.add(line);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
export function replaceMeshesWithLineSegments(object) {
|
|
209
|
-
if (object && object.children.length > 0) {
|
|
210
|
-
for (var i = object.children.length - 1; i >= 0; i--) {
|
|
211
|
-
var child = object.children[i];
|
|
212
|
-
// Recursively process children first
|
|
213
|
-
replaceMeshesWithLineSegments(child);
|
|
214
|
-
}
|
|
215
|
-
} else {
|
|
216
|
-
//
|
|
217
|
-
// Check if the child is a THREE.Mesh
|
|
218
|
-
applyEdges(object);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export var isEmpty = function isEmpty(value) {
|
|
222
|
-
return value === undefined || value === null || typeof value === 'array' && value.length === 0 || _typeof(value) === 'object' && Object.keys(value).length === 0 || typeof value === 'string' && value.trim().length === 0;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
// animate the Opening or Closing Door action
|
|
226
|
-
export var animateDoor = function animateDoor(offsetData, doorObj, open_doors, item, isCorner, mode) {
|
|
227
|
-
var offset = new Three.Vector3(offsetData.x, offsetData.y, offsetData === null || offsetData === void 0 ? void 0 : offsetData.z);
|
|
228
|
-
doorObj.translateOnAxis(offset, 1);
|
|
229
|
-
var rotation = doorObj.name.match(/\d_(door[^LR1-9]*)(_[LR])?(_[1-9])?$/)[2] === '_L' ? -ANIMATE_OBJECT_OPEN_DOOR_ROTATION_UNIT : ANIMATE_OBJECT_OPEN_DOOR_ROTATION_UNIT;
|
|
230
|
-
var isflip = item.properties.flip_doorhandle;
|
|
231
|
-
rotation = isflip ? -rotation : rotation;
|
|
232
|
-
if (isCorner == 1) {
|
|
233
|
-
if (!doorObj.name.includes('base_end')) {
|
|
234
|
-
rotation *= 2;
|
|
235
|
-
}
|
|
236
|
-
var tmp = doorObj.children[0].children.filter(function (item) {
|
|
237
|
-
return item.children.length != 0;
|
|
238
|
-
});
|
|
239
|
-
if (tmp.length != 0) {
|
|
240
|
-
rotation = open_doors ? -rotation : rotation;
|
|
241
|
-
} else {
|
|
242
|
-
rotation = open_doors ? rotation : -rotation;
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
rotation = open_doors ? rotation : -rotation;
|
|
246
|
-
}
|
|
247
|
-
if (mode === 'Opened2D') rotation *= ANIMATE_STEP_MAX; // Check whether the object's door is opened in 2D.
|
|
248
|
-
doorObj.rotateY(rotation);
|
|
249
|
-
doorObj.translateOnAxis(offset, -1);
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
// Opening or Closing the drawer action
|
|
253
|
-
export var translateDrawer = function translateDrawer(item, drawerObj, open_doors, mode) {
|
|
254
|
-
var animate_translate_unit = convert(item.properties.depth._length).from(item.properties.depth._unit).to('cm') * (1 / 2) / ANIMATE_STEP_MAX * 0.01;
|
|
255
|
-
// Check whether the object's drawer is opened in 2D.
|
|
256
|
-
if (mode === 'Opened2D') animate_translate_unit *= ANIMATE_STEP_MAX;
|
|
257
|
-
drawerObj.translateZ(open_doors ? -animate_translate_unit : animate_translate_unit);
|
|
258
|
-
};
|
|
259
|
-
export var getPath = function getPath() {
|
|
260
|
-
return window.location.pathname;
|
|
261
|
-
};
|
|
262
|
-
export var getPathInfo = function getPathInfo(num) {
|
|
263
|
-
var paths = window.location.pathname.split('/');
|
|
264
|
-
if (paths.length >= num + 1) {
|
|
265
|
-
return paths[num];
|
|
266
|
-
} else {
|
|
267
|
-
return paths[num - 1 >= 0 ? num - 1 : 0];
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
// determine if elevation mode or not
|
|
272
|
-
export function isElevationView(mode) {
|
|
273
|
-
if (mode === MODE_ELEVATION_VIEW) return true;else return false;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
// calculate camera rect in elevation mode
|
|
277
|
-
/**
|
|
278
|
-
*
|
|
279
|
-
* @param {number} width width of elevation view - canvas
|
|
280
|
-
* @param {number} height height of elevation view - canvas
|
|
281
|
-
* @param {number} ceilHeight ceiling Height
|
|
282
|
-
* @param {number} lineLength wall's length
|
|
283
|
-
* @returns {object}
|
|
284
|
-
*/
|
|
285
|
-
|
|
286
|
-
//** elevation view (canvas) **//
|
|
287
|
-
|
|
288
|
-
//// h /////////////////////// width //////////////////////// h ////
|
|
289
|
-
//// e //// **c***************lineLength*************c** //// e ////
|
|
290
|
-
//// i //// **e e** //// i ////
|
|
291
|
-
//// g //// **i i** //// g ////
|
|
292
|
-
//// h //// **l***************lineLength*************l** //// h ////
|
|
293
|
-
//// t /////////////////////// width //////////////////////// t ////
|
|
294
|
-
export function handleCamRect(width, height, ceilHeight, lineLength) {
|
|
295
|
-
var scale = Math.min(width * 0.6 / lineLength, height * 0.6 / ceilHeight); // scale is min value
|
|
296
|
-
var cameraRect = {
|
|
297
|
-
width: width / scale,
|
|
298
|
-
height: height / scale
|
|
299
|
-
};
|
|
300
|
-
return cameraRect;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
*
|
|
305
|
-
* @param {*} layer
|
|
306
|
-
* @param {*} ceilHeight
|
|
307
|
-
* @param {*} ceilUnit
|
|
308
|
-
* @returns true ceilingHeight is bigger than totalHeight(item's height + altitude), otherwise false
|
|
309
|
-
*/
|
|
310
|
-
export function isCeilLimitation(layer, ceilHeight, ceilUnit) {
|
|
311
|
-
var items = layer.getIn(['layers', layer.selectedLayer, 'items']);
|
|
312
|
-
return items.some(function (item) {
|
|
313
|
-
var height = item.properties.getIn(['height', '_length']);
|
|
314
|
-
var heightUnit = item.properties.getIn(['height', '_unit']);
|
|
315
|
-
var altitude = item.properties.getIn(['altitude', '_length']);
|
|
316
|
-
var altitudeUnit = item.properties.getIn(['altitude', '_unit']);
|
|
317
|
-
var totalHeight = convert(height).from(heightUnit).to(ceilUnit._unit) + convert(altitude).from(altitudeUnit).to(ceilUnit._unit);
|
|
318
|
-
return totalHeight > ceilHeight;
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
export function isValidNumber(n) {
|
|
322
|
-
return !isNaN(n) && isFinite(n);
|
|
323
|
-
}
|
|
324
|
-
export function toPlainObject(maybeImmutable) {
|
|
325
|
-
if (maybeImmutable && typeof maybeImmutable.toJS === 'function') {
|
|
326
|
-
return maybeImmutable.toJS();
|
|
327
|
-
}
|
|
328
|
-
return maybeImmutable; // already a plain JS object
|
|
329
|
-
}
|
|
330
|
-
export function isImmutable(maybeImmutable) {
|
|
331
|
-
return !!(maybeImmutable && typeof maybeImmutable.toJS === 'function');
|
|
332
|
-
}
|
|
333
|
-
export function debugUtil() {
|
|
334
|
-
return new Date();
|
|
335
|
-
}
|
|
336
|
-
export var compareSVGRect = function compareSVGRect(value) {
|
|
337
|
-
return value.e <= 10 && value.e + value.a * value.SVGWidth + 10 >= value.viewerWidth && value.f <= 80 && value.f + value.d * value.SVGHeight + 10 >= value.viewerHeight ? true : false;
|
|
338
|
-
};
|
|
339
|
-
export var updateViwer2D = function updateViwer2D(value) {
|
|
340
|
-
var viewer2DActions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
341
|
-
var _zoomValue = parseInt((value.a - 0.5) / ZOOM_VARIABLE);
|
|
342
|
-
if (_zoomValue > MAX_ZOOM_IN_SCALE) return;
|
|
343
|
-
if (_zoomValue < 0 || Number.isNaN(_zoomValue)) return;
|
|
344
|
-
|
|
345
|
-
// modify e, f to fit to SVG
|
|
346
|
-
while (!(value.e <= 10)) {
|
|
347
|
-
value.e -= 0.1;
|
|
348
|
-
}
|
|
349
|
-
while (!(value.e + value.a * value.SVGWidth + 10 >= value.viewerWidth)) {
|
|
350
|
-
value.e += 0.1;
|
|
351
|
-
}
|
|
352
|
-
while (!(value.f <= 80)) {
|
|
353
|
-
value.f -= 0.1;
|
|
354
|
-
}
|
|
355
|
-
while (!(value.f + value.a * value.SVGHeight + 10 >= value.viewerHeight)) {
|
|
356
|
-
value.f += 0.1;
|
|
357
|
-
}
|
|
358
|
-
if (viewer2DActions && compareSVGRect(value)) viewer2DActions.updateCameraView(value);
|
|
359
|
-
};
|
|
360
|
-
export function centering2D(state) {
|
|
361
|
-
var viewer2DActions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
362
|
-
// calculate the bounding box of all elements in plan
|
|
363
|
-
var layer = state.scene.getIn(['layers', state.scene.selectedLayer]);
|
|
364
|
-
var bb = {
|
|
365
|
-
minX: Infinity,
|
|
366
|
-
maxX: -Infinity,
|
|
367
|
-
minY: Infinity,
|
|
368
|
-
maxY: -Infinity
|
|
369
|
-
};
|
|
370
|
-
bb = layer.vertices.reduce(function (pre, cur) {
|
|
371
|
-
pre.minX = Math.min(pre.minX, cur.x);
|
|
372
|
-
pre.maxX = Math.max(pre.maxX, cur.x);
|
|
373
|
-
pre.minY = Math.min(pre.minY, cur.y);
|
|
374
|
-
pre.maxY = Math.max(pre.maxY, cur.y);
|
|
375
|
-
return pre;
|
|
376
|
-
}, bb);
|
|
377
|
-
var w = bb.maxX - bb.minX;
|
|
378
|
-
var h = bb.maxY - bb.minY;
|
|
379
|
-
|
|
380
|
-
// calc scale and offset to fit view
|
|
381
|
-
var viewer = state.getIn(['viewer2D']).toJS();
|
|
382
|
-
if (w != 0 && Math.abs(w) != Infinity && h != 0 && Math.abs(h) != Infinity) {
|
|
383
|
-
// elements are exist && bounding box size > 0
|
|
384
|
-
viewer.a = viewer.viewerHeight < h ? viewer.viewerHeight / h : viewer.viewerHeight / h * 3 / 5 / ZOOM_VARIABLE > MAX_ZOOM_IN_SCALE ? viewer.viewerHeight / h * MAX_ZOOM_IN_SCALE / (viewer.viewerHeight / h / ZOOM_VARIABLE) : viewer.viewerHeight / h * 3 / 5;
|
|
385
|
-
viewer.d = viewer.a;
|
|
386
|
-
viewer.e = (viewer.viewerWidth - (bb.maxX + bb.minX) * viewer.a) / 2;
|
|
387
|
-
viewer.f = (viewer.viewerHeight - (bb.maxY + bb.minY) * viewer.a) / 2;
|
|
388
|
-
} else {
|
|
389
|
-
// there is no any element && bounding box size == 0
|
|
390
|
-
viewer.e = viewer.viewerWidth / 2 - viewer.SVGWidth / 2;
|
|
391
|
-
viewer.f = viewer.viewerHeight / 2 - viewer.SVGHeight / 2;
|
|
392
|
-
viewer.a = 0.99;
|
|
393
|
-
viewer.d = 0.99;
|
|
394
|
-
}
|
|
395
|
-
state = state.merge({
|
|
396
|
-
viewer2D: viewer
|
|
397
|
-
});
|
|
398
|
-
if (viewer2DActions) updateViwer2D(viewer, viewer2DActions);
|
|
399
|
-
return state;
|
|
400
|
-
}
|
|
401
|
-
export function updatePayloadOfInternalEvent(currentObject, layer, catalog) {
|
|
402
|
-
var pointArray = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
403
|
-
if (isEmpty(currentObject)) return null;
|
|
404
|
-
var updatedPayload = currentObject.toJS();
|
|
405
|
-
if (isEmpty(layer) || isEmpty(catalog)) return updatedPayload;
|
|
406
|
-
if ((currentObject === null || currentObject === void 0 ? void 0 : currentObject.prototype) === 'lines') {
|
|
407
|
-
// caculating length of selected line//
|
|
408
|
-
var v_a = layer.vertices.get(currentObject.vertices.get(0));
|
|
409
|
-
var v_b = layer.vertices.get(currentObject.vertices.get(1));
|
|
410
|
-
var distance = GeometryUtils.pointsDistance(v_a.x, v_a.y, v_b.x, v_b.y);
|
|
411
|
-
var _length = convert(distance).from('cm').to(layer.unit);
|
|
412
|
-
updatedPayload.length = _length;
|
|
413
|
-
//////////////////////////////////////
|
|
414
|
-
} else if ((currentObject === null || currentObject === void 0 ? void 0 : currentObject.prototype) === 'items') {
|
|
415
|
-
var _catalog$elements$cur;
|
|
416
|
-
// check this cabinet has warning box
|
|
417
|
-
updatedPayload.isWarning = isWarningItem(currentObject);
|
|
418
|
-
// check this item is available molding
|
|
419
|
-
updatedPayload.isMoldingAvailable = MoldingUtils.isEnableItemForMolding(layer, currentObject);
|
|
420
|
-
// check this item is snapped to wall
|
|
421
|
-
updatedPayload.isAttachedWall = MoldingUtils.isAttachedWall(layer, currentObject);
|
|
422
|
-
// update distArray
|
|
423
|
-
if (pointArray) updatedPayload.distArray = pointArray;
|
|
424
|
-
|
|
425
|
-
// update sku_number using sku_array
|
|
426
|
-
var currentDoorColorId = currentObject.getIn(['doorStyle', 'id']);
|
|
427
|
-
var skuArray = catalog === null || catalog === void 0 || (_catalog$elements$cur = catalog.elements[currentObject.get('name')]) === null || _catalog$elements$cur === void 0 || (_catalog$elements$cur = _catalog$elements$cur.obj) === null || _catalog$elements$cur === void 0 ? void 0 : _catalog$elements$cur.skuArray;
|
|
428
|
-
var correctSKU = skuArray === null || skuArray === void 0 ? void 0 : skuArray.find(function (sku) {
|
|
429
|
-
return sku.door_color_id === currentDoorColorId;
|
|
430
|
-
});
|
|
431
|
-
if (correctSKU) {
|
|
432
|
-
updatedPayload.sku_number = correctSKU.sku;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
return updatedPayload;
|
|
436
|
-
}
|
package/es/utils/history.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Map } from 'immutable';
|
|
2
|
-
import diff from 'immutablediff';
|
|
3
|
-
import patch from 'immutablepatch';
|
|
4
|
-
export var historyPush = function historyPush(historyStructure, item) {
|
|
5
|
-
if (historyStructure.last) {
|
|
6
|
-
if (historyStructure.last.hashCode() !== item.hashCode()) {
|
|
7
|
-
var toPush = new Map({
|
|
8
|
-
time: Date.now(),
|
|
9
|
-
diff: diff(historyStructure.last, item)
|
|
10
|
-
});
|
|
11
|
-
historyStructure = historyStructure.set('last', item).set('list', historyStructure.list.push(toPush));
|
|
12
|
-
}
|
|
13
|
-
} else {
|
|
14
|
-
historyStructure = historyStructure.set('last', item);
|
|
15
|
-
}
|
|
16
|
-
return historyStructure;
|
|
17
|
-
};
|
|
18
|
-
export var historyPop = function historyPop(historyStructure) {
|
|
19
|
-
if (historyStructure.last) {
|
|
20
|
-
if (historyStructure.list.size) {
|
|
21
|
-
var last = historyStructure.first;
|
|
22
|
-
for (var x = 0; x < historyStructure.list.size - 1; x++) {
|
|
23
|
-
last = patch(last, historyStructure.list.get(x).get('diff'));
|
|
24
|
-
}
|
|
25
|
-
historyStructure = historyStructure.set('last', last).set('list', historyStructure.list.pop());
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return historyStructure;
|
|
29
|
-
};
|
package/es/utils/id-broker.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import { nanoid } from 'nanoid';
|
|
4
|
-
export var IDBroker = /*#__PURE__*/function () {
|
|
5
|
-
function IDBroker() {
|
|
6
|
-
_classCallCheck(this, IDBroker);
|
|
7
|
-
}
|
|
8
|
-
return _createClass(IDBroker, null, [{
|
|
9
|
-
key: "acquireID",
|
|
10
|
-
value: function acquireID() {
|
|
11
|
-
return nanoid();
|
|
12
|
-
}
|
|
13
|
-
}]);
|
|
14
|
-
}();
|
|
15
|
-
export default IDBroker;
|