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
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import polylabel from 'polylabel';
|
|
4
|
-
import { areaPolygon } from "./utils";
|
|
5
|
-
import { convert } from "../../utils/convert-units-lite";
|
|
6
|
-
import { formatNumber } from "../../utils/math";
|
|
7
|
-
import { DECIMAL_PLACES_2 } from "../../constants";
|
|
8
|
-
var STYLE_TEXT = {
|
|
9
|
-
textAnchor: 'middle',
|
|
10
|
-
fontSize: '12px',
|
|
11
|
-
fontFamily: '"Courier New", Courier, monospace',
|
|
12
|
-
pointerEvents: 'none',
|
|
13
|
-
fontWeight: 'bold',
|
|
14
|
-
//http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css
|
|
15
|
-
WebkitTouchCallout: 'none' /* iOS Safari */,
|
|
16
|
-
WebkitUserSelect: 'none' /* Chrome/Safari/Opera */,
|
|
17
|
-
MozUserSelect: 'none' /* Firefox */,
|
|
18
|
-
MsUserSelect: 'none' /* Internet Explorer/Edge */,
|
|
19
|
-
userSelect: 'none'
|
|
20
|
-
};
|
|
21
|
-
export default function Area(_ref) {
|
|
22
|
-
var layer = _ref.layer,
|
|
23
|
-
area = _ref.area,
|
|
24
|
-
catalog = _ref.catalog;
|
|
25
|
-
var rendered = catalog.getElement(area.type).render2D(area, layer);
|
|
26
|
-
// let element = catalog.getElement(item.type);
|
|
27
|
-
// let renderedItem = element.render2D(item, layer, scene);
|
|
28
|
-
var renderedAreaSize = null;
|
|
29
|
-
if (area.selected) {
|
|
30
|
-
var polygon = area.vertices.toArray().map(function (vertexID) {
|
|
31
|
-
var _layer$vertices$get = layer.vertices.get(vertexID),
|
|
32
|
-
x = _layer$vertices$get.x,
|
|
33
|
-
y = _layer$vertices$get.y;
|
|
34
|
-
return [x, y];
|
|
35
|
-
});
|
|
36
|
-
var polygonWithHoles = polygon;
|
|
37
|
-
area.holes.forEach(function (holeID) {
|
|
38
|
-
var polygonHole = layer.areas.get(holeID).vertices.toArray().map(function (vertexID) {
|
|
39
|
-
var _layer$vertices$get2 = layer.vertices.get(vertexID),
|
|
40
|
-
x = _layer$vertices$get2.x,
|
|
41
|
-
y = _layer$vertices$get2.y;
|
|
42
|
-
return [x, y];
|
|
43
|
-
});
|
|
44
|
-
polygonWithHoles = polygonWithHoles.concat(polygonHole.reverse());
|
|
45
|
-
});
|
|
46
|
-
var center = polylabel([polygonWithHoles], 1.0);
|
|
47
|
-
var areaSize = areaPolygon(polygon, false);
|
|
48
|
-
//subtract holes area
|
|
49
|
-
area.holes.forEach(function (areaID) {
|
|
50
|
-
var hole = layer.areas.get(areaID);
|
|
51
|
-
var holePolygon = hole.vertices.toArray().map(function (vertexID) {
|
|
52
|
-
var _layer$vertices$get3 = layer.vertices.get(vertexID),
|
|
53
|
-
x = _layer$vertices$get3.x,
|
|
54
|
-
y = _layer$vertices$get3.y;
|
|
55
|
-
return [x, y];
|
|
56
|
-
});
|
|
57
|
-
areaSize -= areaPolygon(holePolygon, false);
|
|
58
|
-
});
|
|
59
|
-
renderedAreaSize = /*#__PURE__*/React.createElement("text", {
|
|
60
|
-
x: "0",
|
|
61
|
-
y: "0",
|
|
62
|
-
transform: "translate(".concat(center[0], " ").concat(center[1], ") scale(1, -1)"),
|
|
63
|
-
style: STYLE_TEXT
|
|
64
|
-
}, formatNumber(convert(areaSize).from('cm2').to('ft2'), DECIMAL_PLACES_2), ' ', "ft", String.fromCharCode(0xb2));
|
|
65
|
-
}
|
|
66
|
-
return /*#__PURE__*/React.createElement("g", {
|
|
67
|
-
"data-element-root": true,
|
|
68
|
-
"data-prototype": area.prototype,
|
|
69
|
-
"data-id": area.id,
|
|
70
|
-
"data-selected": area.selected,
|
|
71
|
-
"data-layer": layer.id,
|
|
72
|
-
style: {
|
|
73
|
-
opacity: 1
|
|
74
|
-
}
|
|
75
|
-
}, rendered, renderedAreaSize);
|
|
76
|
-
}
|
|
77
|
-
Area.propTypes = {
|
|
78
|
-
area: PropTypes.object.isRequired,
|
|
79
|
-
layer: PropTypes.object.isRequired,
|
|
80
|
-
catalog: PropTypes.object.isRequired
|
|
81
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Viewer2D from "./viewer2d";
|
|
2
|
-
import Vertex from "./vertex";
|
|
3
|
-
import State from "./state";
|
|
4
|
-
import Snap from "./snap";
|
|
5
|
-
import Scene from "./scene";
|
|
6
|
-
import Ruler from "./ruler";
|
|
7
|
-
import Line from "./line";
|
|
8
|
-
import Layer from "./layer";
|
|
9
|
-
import Item from "./item";
|
|
10
|
-
import Area from "./area";
|
|
11
|
-
import Grids from "./grids/grids";
|
|
12
|
-
import Group from "./group";
|
|
13
|
-
import RulerX from "./rulerX";
|
|
14
|
-
import RulerY from "./rulerY";
|
|
15
|
-
export { Viewer2D, Vertex, State, Snap, Scene, Ruler, Line, Layer, Item, Area, Grids, Group, RulerX, RulerY };
|
|
16
|
-
export default {
|
|
17
|
-
Viewer2D: Viewer2D,
|
|
18
|
-
Vertex: Vertex,
|
|
19
|
-
State: State,
|
|
20
|
-
Snap: Snap,
|
|
21
|
-
Scene: Scene,
|
|
22
|
-
Ruler: Ruler,
|
|
23
|
-
Line: Line,
|
|
24
|
-
Layer: Layer,
|
|
25
|
-
Item: Item,
|
|
26
|
-
Area: Area,
|
|
27
|
-
Grids: Grids,
|
|
28
|
-
Group: Group,
|
|
29
|
-
RulerX: RulerX,
|
|
30
|
-
RulerY: RulerY
|
|
31
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { List } from 'immutable';
|
|
4
|
-
export default function GridHorizontalStreak(_ref) {
|
|
5
|
-
var width = _ref.width,
|
|
6
|
-
height = _ref.height,
|
|
7
|
-
grid = _ref.grid;
|
|
8
|
-
var step = grid.properties.get('step');
|
|
9
|
-
var colors;
|
|
10
|
-
if (grid.properties.has('color')) {
|
|
11
|
-
colors = new List([grid.properties.get('color')]);
|
|
12
|
-
} else {
|
|
13
|
-
colors = grid.properties.get('colors');
|
|
14
|
-
}
|
|
15
|
-
var rendered = [];
|
|
16
|
-
var i = 0;
|
|
17
|
-
for (var y = 0; y <= height; y += step) {
|
|
18
|
-
var color = colors.get(i % colors.size);
|
|
19
|
-
i++;
|
|
20
|
-
rendered.push(/*#__PURE__*/React.createElement("line", {
|
|
21
|
-
key: y,
|
|
22
|
-
x1: "0",
|
|
23
|
-
y1: y,
|
|
24
|
-
x2: width,
|
|
25
|
-
y2: y,
|
|
26
|
-
strokeWidth: "1",
|
|
27
|
-
stroke: color
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
31
|
-
}
|
|
32
|
-
GridHorizontalStreak.propTypes = {
|
|
33
|
-
width: PropTypes.number.isRequired,
|
|
34
|
-
height: PropTypes.number.isRequired,
|
|
35
|
-
grid: PropTypes.object.isRequired
|
|
36
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { List } from 'immutable';
|
|
4
|
-
export default function GridStreak(_ref) {
|
|
5
|
-
var width = _ref.width,
|
|
6
|
-
height = _ref.height,
|
|
7
|
-
grid = _ref.grid;
|
|
8
|
-
var step = grid.properties.get('step');
|
|
9
|
-
var colors;
|
|
10
|
-
if (grid.properties.has('color')) {
|
|
11
|
-
colors = new List([grid.properties.get('color')]);
|
|
12
|
-
} else {
|
|
13
|
-
colors = grid.properties.get('colors');
|
|
14
|
-
}
|
|
15
|
-
var rendered = [];
|
|
16
|
-
var i = 0;
|
|
17
|
-
for (var y = 0; y <= height; y += step) {
|
|
18
|
-
for (var x = 0; x <= width; x += step) {
|
|
19
|
-
var color = colors.get(i % colors.size);
|
|
20
|
-
i++;
|
|
21
|
-
rendered.push(/*#__PURE__*/React.createElement("circle", {
|
|
22
|
-
key: i,
|
|
23
|
-
cx: x,
|
|
24
|
-
cy: y,
|
|
25
|
-
r: 1.5,
|
|
26
|
-
fill: color
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
31
|
-
}
|
|
32
|
-
GridStreak.propTypes = {
|
|
33
|
-
width: PropTypes.number.isRequired,
|
|
34
|
-
height: PropTypes.number.isRequired,
|
|
35
|
-
grid: PropTypes.object.isRequired
|
|
36
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { List } from 'immutable';
|
|
4
|
-
export default function GridVerticalStreak(_ref) {
|
|
5
|
-
var width = _ref.width,
|
|
6
|
-
height = _ref.height,
|
|
7
|
-
grid = _ref.grid;
|
|
8
|
-
var step = grid.properties.get('step');
|
|
9
|
-
var colors;
|
|
10
|
-
if (grid.properties.has('color')) {
|
|
11
|
-
colors = new List([grid.properties.get('color')]);
|
|
12
|
-
} else {
|
|
13
|
-
colors = grid.properties.get('colors');
|
|
14
|
-
}
|
|
15
|
-
var rendered = [];
|
|
16
|
-
var i = 0;
|
|
17
|
-
for (var x = 0; x <= width; x += step) {
|
|
18
|
-
var color = colors.get(i % colors.size);
|
|
19
|
-
i++;
|
|
20
|
-
rendered.push(/*#__PURE__*/React.createElement("line", {
|
|
21
|
-
key: x,
|
|
22
|
-
x1: x,
|
|
23
|
-
y1: "0",
|
|
24
|
-
x2: x,
|
|
25
|
-
y2: height,
|
|
26
|
-
strokeWidth: "1",
|
|
27
|
-
stroke: color
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
return /*#__PURE__*/React.createElement("g", null, rendered);
|
|
31
|
-
}
|
|
32
|
-
GridVerticalStreak.propTypes = {
|
|
33
|
-
width: PropTypes.number.isRequired,
|
|
34
|
-
height: PropTypes.number.isRequired,
|
|
35
|
-
grid: PropTypes.object.isRequired
|
|
36
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import GridStreak from "./grid-streak";
|
|
5
|
-
var propsAreEqual = function propsAreEqual(oldScene, newScene) {
|
|
6
|
-
return oldScene.scene.width === newScene.scene.width && oldScene.scene.height === newScene.scene.height && oldScene.scene.grids === newScene.scene.grids;
|
|
7
|
-
};
|
|
8
|
-
var drawGrid = function drawGrid(_ref) {
|
|
9
|
-
var scene = _ref.scene;
|
|
10
|
-
var width = scene.width,
|
|
11
|
-
height = scene.height,
|
|
12
|
-
grids = scene.grids;
|
|
13
|
-
var renderedGrids = grids.entrySeq().map(function (_ref2) {
|
|
14
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
15
|
-
gridID = _ref3[0],
|
|
16
|
-
grid = _ref3[1];
|
|
17
|
-
return /*#__PURE__*/React.createElement(GridStreak, {
|
|
18
|
-
key: gridID,
|
|
19
|
-
width: width,
|
|
20
|
-
height: height,
|
|
21
|
-
grid: grid
|
|
22
|
-
});
|
|
23
|
-
}).toList();
|
|
24
|
-
return /*#__PURE__*/React.createElement("g", null, renderedGrids);
|
|
25
|
-
};
|
|
26
|
-
var Grids = /*#__PURE__*/memo(drawGrid, propsAreEqual);
|
|
27
|
-
Grids.propTypes = {
|
|
28
|
-
scene: PropTypes.object.isRequired
|
|
29
|
-
};
|
|
30
|
-
export default Grids;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import If from "../../utils/react-if";
|
|
4
|
-
import * as sharedStyles from "../../shared-style";
|
|
5
|
-
import AppContext from "../../AppContext";
|
|
6
|
-
var cx = 0;
|
|
7
|
-
var cy = 0;
|
|
8
|
-
var radius = 5;
|
|
9
|
-
var STYLE_CIRCLE = {
|
|
10
|
-
fill: sharedStyles.MATERIAL_COLORS[500].orange,
|
|
11
|
-
stroke: sharedStyles.MATERIAL_COLORS[500].orange,
|
|
12
|
-
cursor: 'default'
|
|
13
|
-
};
|
|
14
|
-
export default function Group(_ref) {
|
|
15
|
-
var layer = _ref.layer,
|
|
16
|
-
group = _ref.group;
|
|
17
|
-
var _useContext = useContext(AppContext),
|
|
18
|
-
translator = _useContext.translator;
|
|
19
|
-
return /*#__PURE__*/React.createElement("g", {
|
|
20
|
-
"data-element-root": true,
|
|
21
|
-
"data-prototype": group.prototype,
|
|
22
|
-
"data-id": group.id,
|
|
23
|
-
"data-selected": group.selected,
|
|
24
|
-
"data-layer": layer.id,
|
|
25
|
-
style: group.selected ? {
|
|
26
|
-
cursor: 'move'
|
|
27
|
-
} : {},
|
|
28
|
-
transform: "translate(".concat(group.x, ",").concat(group.y, ") rotate(").concat(group.rotation, ")")
|
|
29
|
-
}, /*#__PURE__*/React.createElement(If, {
|
|
30
|
-
condition: group.selected
|
|
31
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
32
|
-
"data-element-root": true,
|
|
33
|
-
"data-prototype": group.prototype,
|
|
34
|
-
"data-id": group.id,
|
|
35
|
-
"data-selected": group.selected,
|
|
36
|
-
"data-layer": layer.id,
|
|
37
|
-
"data-part": "rotation-anchor"
|
|
38
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
39
|
-
cx: cx,
|
|
40
|
-
cy: cy,
|
|
41
|
-
r: radius,
|
|
42
|
-
style: STYLE_CIRCLE
|
|
43
|
-
}, /*#__PURE__*/React.createElement("title", null, translator.t("Group's Barycenter"))))));
|
|
44
|
-
}
|
|
45
|
-
Group.propTypes = {
|
|
46
|
-
group: PropTypes.object.isRequired,
|
|
47
|
-
layer: PropTypes.object.isRequired
|
|
48
|
-
};
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import RulerDist from "./rulerDist";
|
|
5
|
-
import { convert } from "../../utils/convert-units-lite";
|
|
6
|
-
import { MODE_ROTATING_ITEM, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
7
|
-
import { isWarningItem } from "./utils";
|
|
8
|
-
import { calcDistancesFromItemToWalls } from "../../utils/geometry";
|
|
9
|
-
import AppContext from "../../AppContext";
|
|
10
|
-
var stableKeyForPointArray = function stableKeyForPointArray(arr) {
|
|
11
|
-
if (!Array.isArray(arr)) return '';
|
|
12
|
-
return arr.map(function (_ref) {
|
|
13
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
14
|
-
d = _ref2[0],
|
|
15
|
-
dir = _ref2[1];
|
|
16
|
-
return "".concat(Math.round(d * 1000) / 1000, ":").concat(dir);
|
|
17
|
-
}).join('|');
|
|
18
|
-
};
|
|
19
|
-
export default function Item(_ref3) {
|
|
20
|
-
var _element$render2D;
|
|
21
|
-
var layer = _ref3.layer,
|
|
22
|
-
item = _ref3.item,
|
|
23
|
-
scene = _ref3.scene,
|
|
24
|
-
catalog = _ref3.catalog,
|
|
25
|
-
mode = _ref3.mode;
|
|
26
|
-
var _useContext = useContext(AppContext),
|
|
27
|
-
itemsActions = _useContext.itemsActions;
|
|
28
|
-
var _useState = useState(false),
|
|
29
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
30
|
-
clockRotateState = _useState2[0],
|
|
31
|
-
setClockRotateState = _useState2[1];
|
|
32
|
-
var _useState3 = useState(false),
|
|
33
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
34
|
-
antiClockRotateState = _useState4[0],
|
|
35
|
-
setAntiClockRotateState = _useState4[1];
|
|
36
|
-
var x = item.x,
|
|
37
|
-
y = item.y,
|
|
38
|
-
rotation = item.rotation,
|
|
39
|
-
id = item.id;
|
|
40
|
-
var element = catalog.getElement(item.type);
|
|
41
|
-
var showBaseCabinetMeasure = scene.get('showBaseCabinetMeasure');
|
|
42
|
-
var showWallCabinetMeasure = scene.get('showWallCabinetMeasure');
|
|
43
|
-
|
|
44
|
-
// --- compute width/height exactly like you had ---
|
|
45
|
-
var width, height;
|
|
46
|
-
var tempWidth = item.properties.get('width');
|
|
47
|
-
var tempHeight = item.properties.get('depth');
|
|
48
|
-
if (tempWidth || tempHeight) {
|
|
49
|
-
width = convert(tempWidth.get('_length')).from(tempWidth.get('_unit')).to('cm');
|
|
50
|
-
height = convert(tempHeight.get('_length')).from(tempHeight.get('_unit')).to('cm');
|
|
51
|
-
} else {
|
|
52
|
-
width = convert(element.info.sizeinfo.width).from('in').to('cm');
|
|
53
|
-
height = convert(element.info.sizeinfo.depth).from('in').to('cm');
|
|
54
|
-
}
|
|
55
|
-
var nw = width / 2;
|
|
56
|
-
var nh = height / 2;
|
|
57
|
-
|
|
58
|
-
// --- compute PointArray (pure) ---
|
|
59
|
-
var pointArray = useMemo(function () {
|
|
60
|
-
var _res$PointArray;
|
|
61
|
-
var res = calcDistancesFromItemToWalls(item, layer);
|
|
62
|
-
return (_res$PointArray = res === null || res === void 0 ? void 0 : res.PointArray) !== null && _res$PointArray !== void 0 ? _res$PointArray : [];
|
|
63
|
-
}, [item, layer]);
|
|
64
|
-
|
|
65
|
-
// ✅ Immutable access
|
|
66
|
-
var layerID = scene.get('selectedLayer');
|
|
67
|
-
var lastKeyRef = useRef('');
|
|
68
|
-
useEffect(function () {
|
|
69
|
-
if (!Array.isArray(pointArray)) return;
|
|
70
|
-
var key = stableKeyForPointArray(pointArray);
|
|
71
|
-
if (key === lastKeyRef.current) return;
|
|
72
|
-
lastKeyRef.current = key;
|
|
73
|
-
itemsActions.storeDistArray(layerID, id, pointArray);
|
|
74
|
-
}, [itemsActions, layerID, id, pointArray]);
|
|
75
|
-
var catid = item.type;
|
|
76
|
-
var cat = catalog.elements[catid];
|
|
77
|
-
|
|
78
|
-
// --- rulers ---
|
|
79
|
-
var renderedRuler = [];
|
|
80
|
-
var ep = 0.1;
|
|
81
|
-
if (item.selected) {
|
|
82
|
-
pointArray.forEach(function (el, key) {
|
|
83
|
-
var itemDistanceFromLine = el[0];
|
|
84
|
-
var dir = el[1];
|
|
85
|
-
if (itemDistanceFromLine > ep || itemDistanceFromLine < -ep) {
|
|
86
|
-
renderedRuler.push(/*#__PURE__*/React.createElement("g", {
|
|
87
|
-
"data-element-root": true,
|
|
88
|
-
"data-prototype": "rulerDist",
|
|
89
|
-
"data-id": item.id,
|
|
90
|
-
"data-selected": item.selected,
|
|
91
|
-
"data-layer": layer.id,
|
|
92
|
-
key: key,
|
|
93
|
-
"data-length": itemDistanceFromLine,
|
|
94
|
-
"data-direct": dir
|
|
95
|
-
}, /*#__PURE__*/React.createElement(RulerDist, {
|
|
96
|
-
layer: layer,
|
|
97
|
-
unit: scene.get('unit'),
|
|
98
|
-
rulerUnit: scene.get('rulerUnit'),
|
|
99
|
-
length: itemDistanceFromLine,
|
|
100
|
-
angle: rotation,
|
|
101
|
-
rotation: dir,
|
|
102
|
-
transform: "translate(".concat(dir === 180 ? -nw : dir === 0 ? nw : 0, ", ").concat(dir === 90 ? nh : dir === -90 ? cat.info.is_corner !== 1 ? -(nh + 4) : -nh : 0, ") rotate(").concat(dir, ", 0, 0)")
|
|
103
|
-
})));
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
var renderedItem = element === null || element === void 0 || (_element$render2D = element.render2D) === null || _element$render2D === void 0 ? void 0 : _element$render2D.call(element, item, layer, scene);
|
|
108
|
-
|
|
109
|
-
// --- selection controls (same as you had) ---
|
|
110
|
-
var parts = [];
|
|
111
|
-
if (item.selected) {
|
|
112
|
-
parts = [/*#__PURE__*/React.createElement("g", {
|
|
113
|
-
key: "rotation-anchor",
|
|
114
|
-
"data-element-root": true,
|
|
115
|
-
"data-prototype": item.prototype,
|
|
116
|
-
"data-id": item.id,
|
|
117
|
-
"data-selected": item.selected,
|
|
118
|
-
"data-layer": layer.id,
|
|
119
|
-
"data-part": "rotation-anchor",
|
|
120
|
-
style: {
|
|
121
|
-
cursor: 'w-resize'
|
|
122
|
-
}
|
|
123
|
-
}, /*#__PURE__*/React.createElement("image", {
|
|
124
|
-
href: clockRotateState ? '/assets/img/svg/rotate.png' : '/assets/img/svg/blank_div.svg',
|
|
125
|
-
style: {
|
|
126
|
-
transform: "scale(-1, -1) translate(".concat(width / 2, "px, ").concat(height / 2, "px) rotate(25deg)")
|
|
127
|
-
},
|
|
128
|
-
height: "20",
|
|
129
|
-
width: "20",
|
|
130
|
-
onMouseEnter: function onMouseEnter() {
|
|
131
|
-
setClockRotateState(true);
|
|
132
|
-
setAntiClockRotateState(false);
|
|
133
|
-
},
|
|
134
|
-
onMouseLeave: function onMouseLeave() {
|
|
135
|
-
return setClockRotateState(mode === MODE_ROTATING_ITEM);
|
|
136
|
-
}
|
|
137
|
-
}), /*#__PURE__*/React.createElement("image", {
|
|
138
|
-
href: antiClockRotateState ? '/assets/img/svg/rotate.png' : '/assets/img/svg/blank_div.svg',
|
|
139
|
-
style: {
|
|
140
|
-
transform: "scale(1, -1) translate(".concat(width / 2, "px, ").concat(height / 2, "px) rotate(25deg)")
|
|
141
|
-
},
|
|
142
|
-
height: "20",
|
|
143
|
-
width: "20",
|
|
144
|
-
onMouseEnter: function onMouseEnter() {
|
|
145
|
-
setAntiClockRotateState(true);
|
|
146
|
-
setClockRotateState(false);
|
|
147
|
-
},
|
|
148
|
-
onMouseLeave: function onMouseLeave() {
|
|
149
|
-
return setAntiClockRotateState(mode === MODE_ROTATING_ITEM);
|
|
150
|
-
}
|
|
151
|
-
})), /*#__PURE__*/React.createElement("g", {
|
|
152
|
-
key: "duplicate",
|
|
153
|
-
style: {
|
|
154
|
-
cursor: 'pointer',
|
|
155
|
-
transform: "rotate(".concat(360 - item.rotation, "deg) translate(").concat(-width / 2 - 27, "px, 0px)")
|
|
156
|
-
},
|
|
157
|
-
"data-element-root": true,
|
|
158
|
-
"data-prototype": item.prototype,
|
|
159
|
-
"data-id": item.id,
|
|
160
|
-
"data-selected": item.selected,
|
|
161
|
-
"data-layer": layer.id,
|
|
162
|
-
"data-part": "duplicate"
|
|
163
|
-
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("filter", {
|
|
164
|
-
id: "shadow"
|
|
165
|
-
}, /*#__PURE__*/React.createElement("feDropShadow", {
|
|
166
|
-
dx: "0",
|
|
167
|
-
dy: "0",
|
|
168
|
-
stdDeviation: "0.6"
|
|
169
|
-
}))), /*#__PURE__*/React.createElement("rect", {
|
|
170
|
-
rx: "4",
|
|
171
|
-
ry: "4",
|
|
172
|
-
height: "22",
|
|
173
|
-
width: "22",
|
|
174
|
-
fill: "white",
|
|
175
|
-
filter: "url(#shadow)"
|
|
176
|
-
}), /*#__PURE__*/React.createElement("image", {
|
|
177
|
-
href: "/assets/img/svg/duplicate.svg",
|
|
178
|
-
x: "3",
|
|
179
|
-
y: "-19",
|
|
180
|
-
height: "16",
|
|
181
|
-
width: "16",
|
|
182
|
-
style: isWarningItem(item) ? {
|
|
183
|
-
transform: 'rotateX(180deg)',
|
|
184
|
-
opacity: 0.5
|
|
185
|
-
} : {
|
|
186
|
-
transform: 'rotateX(180deg)'
|
|
187
|
-
}
|
|
188
|
-
})), /*#__PURE__*/React.createElement("g", {
|
|
189
|
-
key: "remove",
|
|
190
|
-
style: {
|
|
191
|
-
cursor: 'pointer',
|
|
192
|
-
transform: "rotate(".concat(360 - item.rotation, "deg) translate(").concat(-width / 2 - 27, "px, -27px)")
|
|
193
|
-
},
|
|
194
|
-
"data-element-root": true,
|
|
195
|
-
"data-prototype": item.prototype,
|
|
196
|
-
"data-id": item.id,
|
|
197
|
-
"data-selected": item.selected,
|
|
198
|
-
"data-layer": layer.id,
|
|
199
|
-
"data-part": "remove"
|
|
200
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
201
|
-
rx: "4",
|
|
202
|
-
ry: "4",
|
|
203
|
-
height: "22",
|
|
204
|
-
width: "22",
|
|
205
|
-
fill: "white",
|
|
206
|
-
filter: "url(#shadow)"
|
|
207
|
-
}), /*#__PURE__*/React.createElement("image", {
|
|
208
|
-
href: "/assets/img/svg/delete.svg",
|
|
209
|
-
x: "3",
|
|
210
|
-
y: "-19",
|
|
211
|
-
height: "16",
|
|
212
|
-
width: "16",
|
|
213
|
-
style: {
|
|
214
|
-
transform: 'rotateX(180deg)'
|
|
215
|
-
}
|
|
216
|
-
}))];
|
|
217
|
-
}
|
|
218
|
-
var measure = item.layoutpos === WALL_CABINET_LAYOUTPOS ? showWallCabinetMeasure : showBaseCabinetMeasure;
|
|
219
|
-
return /*#__PURE__*/React.createElement("g", {
|
|
220
|
-
"data-element-root": true,
|
|
221
|
-
"data-prototype": item.prototype,
|
|
222
|
-
"data-id": item.id,
|
|
223
|
-
"data-selected": item.selected,
|
|
224
|
-
"data-layer": layer.id,
|
|
225
|
-
style: item.selected ? {
|
|
226
|
-
cursor: 'move'
|
|
227
|
-
} : {}
|
|
228
|
-
}, renderedItem, /*#__PURE__*/React.createElement("g", {
|
|
229
|
-
transform: "translate(".concat(x, ",").concat(y, ") rotate(").concat(rotation, ")"),
|
|
230
|
-
style: {
|
|
231
|
-
cursor: 'initial'
|
|
232
|
-
}
|
|
233
|
-
}, measure ? renderedRuler : null, parts));
|
|
234
|
-
}
|
|
235
|
-
Item.propTypes = {
|
|
236
|
-
item: PropTypes.object.isRequired,
|
|
237
|
-
layer: PropTypes.object.isRequired,
|
|
238
|
-
scene: PropTypes.object.isRequired,
|
|
239
|
-
// Immutable Map is still object
|
|
240
|
-
catalog: PropTypes.object.isRequired,
|
|
241
|
-
mode: PropTypes.any
|
|
242
|
-
};
|