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/class/vertex.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import { List, Map } from 'immutable';
|
|
5
|
-
import { Vertex as VertexModel } from "../models";
|
|
6
|
-
import { GeometryUtils, IDBroker, SnapSceneUtils, SnapUtils } from "../utils/export";
|
|
7
|
-
import { END_DRAGGING_VERTEX, MODE_DRAGGING_VERTEX } from "../constants";
|
|
8
|
-
import { Layer, Line } from "../class/export";
|
|
9
|
-
import { isEmpty } from "../utils/helper";
|
|
10
|
-
var Vertex = /*#__PURE__*/function () {
|
|
11
|
-
function Vertex() {
|
|
12
|
-
_classCallCheck(this, Vertex);
|
|
13
|
-
}
|
|
14
|
-
return _createClass(Vertex, null, [{
|
|
15
|
-
key: "add",
|
|
16
|
-
value: function add(state, layerID, x, y, relatedPrototype, relatedID) {
|
|
17
|
-
var vertex = state.getIn(['scene', 'layers', layerID, 'vertices']).find(function (vertex) {
|
|
18
|
-
return GeometryUtils.samePoints(vertex, {
|
|
19
|
-
x: x,
|
|
20
|
-
y: y
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
if (vertex) {
|
|
24
|
-
vertex = vertex.update(relatedPrototype, function (related) {
|
|
25
|
-
return related.push(relatedID);
|
|
26
|
-
});
|
|
27
|
-
} else {
|
|
28
|
-
vertex = new VertexModel(_defineProperty({
|
|
29
|
-
id: IDBroker.acquireID(),
|
|
30
|
-
name: 'Vertex',
|
|
31
|
-
x: x,
|
|
32
|
-
y: y
|
|
33
|
-
}, relatedPrototype, new List([relatedID])));
|
|
34
|
-
}
|
|
35
|
-
state = state.setIn(['scene', 'layers', layerID, 'vertices', vertex.id], vertex);
|
|
36
|
-
return {
|
|
37
|
-
updatedState: state,
|
|
38
|
-
vertex: vertex
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
key: "setAttributes",
|
|
43
|
-
value: function setAttributes(state, layerID, vertexID, vertexAttributes) {
|
|
44
|
-
state = state.mergeIn(['scene', 'layers', layerID, 'vertices', vertexID], vertexAttributes);
|
|
45
|
-
return {
|
|
46
|
-
updatedState: state
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
key: "addElement",
|
|
51
|
-
value: function addElement(state, layerID, vertexID, elementPrototype, elementID) {
|
|
52
|
-
state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], function (list) {
|
|
53
|
-
return list.push(elementID);
|
|
54
|
-
});
|
|
55
|
-
return {
|
|
56
|
-
updatedState: state
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}, {
|
|
60
|
-
key: "removeElement",
|
|
61
|
-
value: function removeElement(state, layerID, vertexID, elementPrototype, elementID) {
|
|
62
|
-
var elementIndex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype]).findIndex(function (el) {
|
|
63
|
-
return el === elementID;
|
|
64
|
-
});
|
|
65
|
-
if (elementIndex !== -1) {
|
|
66
|
-
state = state.updateIn(['scene', 'layers', layerID, 'vertices', vertexID, elementPrototype], function (list) {
|
|
67
|
-
return list.remove(elementIndex);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
updatedState: state
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
key: "select",
|
|
76
|
-
value: function select(state, layerID, vertexID) {
|
|
77
|
-
state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], true);
|
|
78
|
-
state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], function (elems) {
|
|
79
|
-
return elems.push(vertexID);
|
|
80
|
-
});
|
|
81
|
-
return {
|
|
82
|
-
updatedState: state
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
key: "unselect",
|
|
87
|
-
value: function unselect(state, layerID, vertexID) {
|
|
88
|
-
state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID, 'selected'], false);
|
|
89
|
-
state = state.updateIn(['scene', 'layers', layerID, 'selected', 'vertices'], function (elems) {
|
|
90
|
-
return elems.filter(function (el) {
|
|
91
|
-
return el.id !== vertexID;
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
return {
|
|
95
|
-
updatedState: state
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "remove",
|
|
100
|
-
value: function remove(state, layerID, vertexID, relatedPrototype, relatedID, forceRemove) {
|
|
101
|
-
var vertex = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID]);
|
|
102
|
-
if (vertex) {
|
|
103
|
-
if (relatedPrototype && relatedID) vertex = vertex.update(relatedPrototype, function (related) {
|
|
104
|
-
var index = related.findIndex(function (ID) {
|
|
105
|
-
return relatedID === ID;
|
|
106
|
-
});
|
|
107
|
-
return related["delete"](index);
|
|
108
|
-
});
|
|
109
|
-
var inUse = vertex.areas.size || vertex.lines.size;
|
|
110
|
-
if (inUse && !forceRemove) {
|
|
111
|
-
state = state.setIn(['scene', 'layers', layerID, 'vertices', vertexID], vertex);
|
|
112
|
-
} else {
|
|
113
|
-
state = state.deleteIn(['scene', 'layers', layerID, 'vertices', vertexID]);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
updatedState: state
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "beginDraggingVertex",
|
|
122
|
-
value: function beginDraggingVertex(state, layerID, vertexID, x, y) {
|
|
123
|
-
var snapElements = SnapSceneUtils.sceneSnapElements(state.scene, new List(), state.snapMask);
|
|
124
|
-
state = state.merge({
|
|
125
|
-
mode: MODE_DRAGGING_VERTEX,
|
|
126
|
-
snapElements: snapElements,
|
|
127
|
-
draggingSupport: Map({
|
|
128
|
-
layerID: layerID,
|
|
129
|
-
vertexID: vertexID,
|
|
130
|
-
previousMode: state.get('mode')
|
|
131
|
-
})
|
|
132
|
-
});
|
|
133
|
-
return {
|
|
134
|
-
updatedState: state
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}, {
|
|
138
|
-
key: "updateDraggingVertex",
|
|
139
|
-
value: function updateDraggingVertex(state, x, y) {
|
|
140
|
-
var _state = state,
|
|
141
|
-
draggingSupport = _state.draggingSupport,
|
|
142
|
-
snapElements = _state.snapElements,
|
|
143
|
-
scene = _state.scene;
|
|
144
|
-
var snap = null;
|
|
145
|
-
if (state.snapMask && !state.snapMask.isEmpty()) {
|
|
146
|
-
snap = SnapUtils.nearestSnap(snapElements, x, y, state.snapMask);
|
|
147
|
-
if (snap) {
|
|
148
|
-
var _snap$point = snap.point;
|
|
149
|
-
x = _snap$point.x;
|
|
150
|
-
y = _snap$point.y;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
var layerID = draggingSupport.get('layerID');
|
|
154
|
-
var vertexID = draggingSupport.get('vertexID');
|
|
155
|
-
state = state.merge({
|
|
156
|
-
activeSnapElement: snap ? snap.snap : null,
|
|
157
|
-
scene: scene.mergeIn(['layers', layerID, 'vertices', vertexID], {
|
|
158
|
-
x: x,
|
|
159
|
-
y: y
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
return {
|
|
163
|
-
updatedState: state
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
}, {
|
|
167
|
-
key: "endDraggingVertex",
|
|
168
|
-
value: function endDraggingVertex(state, x, y) {
|
|
169
|
-
var _state2 = state,
|
|
170
|
-
draggingSupport = _state2.draggingSupport;
|
|
171
|
-
var layerID = draggingSupport.get('layerID');
|
|
172
|
-
var vertexID = draggingSupport.get('vertexID');
|
|
173
|
-
var lines = state.getIn(['scene', 'layers', layerID, 'vertices', vertexID, 'lines']);
|
|
174
|
-
if (!isEmpty(lines)) {
|
|
175
|
-
state = lines.reduce(function (reducedState, lineID) {
|
|
176
|
-
var eachLine = reducedState.getIn(['scene', 'layers', layerID, 'lines', lineID]);
|
|
177
|
-
if (isEmpty(eachLine)) return reducedState;
|
|
178
|
-
reducedState = Layer.removeZeroLengthLines(reducedState, layerID).updatedState;
|
|
179
|
-
reducedState = Layer.mergeEqualsVertices(reducedState, layerID, vertexID).updatedState;
|
|
180
|
-
reducedState = Line.select(reducedState, layerID, eachLine.id).updatedState;
|
|
181
|
-
reducedState = reducedState.setIn(['mode'], MODE_DRAGGING_VERTEX);
|
|
182
|
-
reducedState = Line.applyWallChanges(reducedState, END_DRAGGING_VERTEX).updatedState;
|
|
183
|
-
return reducedState;
|
|
184
|
-
}, state);
|
|
185
|
-
}
|
|
186
|
-
state = state.merge({
|
|
187
|
-
mode: draggingSupport.get('previousMode'),
|
|
188
|
-
draggingSupport: null,
|
|
189
|
-
activeSnapElement: null,
|
|
190
|
-
snapElements: new List()
|
|
191
|
-
});
|
|
192
|
-
return {
|
|
193
|
-
updatedState: state
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}]);
|
|
197
|
-
}();
|
|
198
|
-
export { Vertex as default };
|
package/es/components/content.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
|
-
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
|
-
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
6
|
-
// import CatalogList from './catalog-view/catalog-list';
|
|
7
|
-
// import ProjectConfigurator from './configurator/project-configurator';
|
|
8
|
-
import * as constants from "../constants";
|
|
9
|
-
import Front3D from "./viewer3d/front3D";
|
|
10
|
-
export default function Content(_ref) {
|
|
11
|
-
var width = _ref.width,
|
|
12
|
-
height = _ref.height,
|
|
13
|
-
state = _ref.state,
|
|
14
|
-
customContents = _ref.customContents,
|
|
15
|
-
match = _ref.match,
|
|
16
|
-
setToolbar = _ref.setToolbar,
|
|
17
|
-
replaceCabinet = _ref.replaceCabinet,
|
|
18
|
-
keyDownEnable = _ref.keyDownEnable,
|
|
19
|
-
catalog = _ref.catalog,
|
|
20
|
-
onInternalEvent = _ref.onInternalEvent;
|
|
21
|
-
var mode = state.get('mode');
|
|
22
|
-
|
|
23
|
-
// Internal Event for unselect_all
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
if (state.getIn(['scene', 'layers', 'layer-1', 'selected', 'vertices']).size + state.getIn(['scene', 'layers', 'layer-1', 'selected', 'lines']).size + state.getIn(['scene', 'layers', 'layer-1', 'selected', 'holes']).size + state.getIn(['scene', 'layers', 'layer-1', 'selected', 'areas']).size + state.getIn(['scene', 'layers', 'layer-1', 'selected', 'items']).size < 1) onInternalEvent === null || onInternalEvent === void 0 || onInternalEvent({
|
|
26
|
-
type: constants.INTERNAL_EVENT_UNSELECT_ALL,
|
|
27
|
-
value: null
|
|
28
|
-
});
|
|
29
|
-
}, [state.getIn(['scene', 'layers', 'layer-1', 'selected'])]);
|
|
30
|
-
switch (mode) {
|
|
31
|
-
// this mode is when view elevation
|
|
32
|
-
case constants.MODE_ELEVATION_VIEW:
|
|
33
|
-
return /*#__PURE__*/React.createElement(Front3D, {
|
|
34
|
-
state: state,
|
|
35
|
-
width: width,
|
|
36
|
-
height: height,
|
|
37
|
-
setToolbar: setToolbar,
|
|
38
|
-
replaceCabinet: replaceCabinet,
|
|
39
|
-
keyDownEnable: keyDownEnable,
|
|
40
|
-
catalog: catalog
|
|
41
|
-
});
|
|
42
|
-
case constants.MODE_3D_VIEW:
|
|
43
|
-
return /*#__PURE__*/React.createElement(Viewer3D, {
|
|
44
|
-
id: "viewer3D",
|
|
45
|
-
state: state,
|
|
46
|
-
width: width,
|
|
47
|
-
height: height,
|
|
48
|
-
setToolbar: setToolbar,
|
|
49
|
-
replaceCabinet: replaceCabinet,
|
|
50
|
-
keyDownEnable: keyDownEnable,
|
|
51
|
-
downloadFlag: false,
|
|
52
|
-
onInternalEvent: onInternalEvent
|
|
53
|
-
});
|
|
54
|
-
case constants.MODE_3D_FIRST_PERSON:
|
|
55
|
-
return /*#__PURE__*/React.createElement(Viewer3DFirstPerson, {
|
|
56
|
-
state: state,
|
|
57
|
-
width: width,
|
|
58
|
-
height: height
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// case constants.MODE_VIEWING_CATALOG:
|
|
62
|
-
// return (
|
|
63
|
-
// <CatalogList
|
|
64
|
-
// state={state}
|
|
65
|
-
// param={match}
|
|
66
|
-
// width={width}
|
|
67
|
-
// height={height}
|
|
68
|
-
// categoryData={this.props.categoryData}
|
|
69
|
-
// />
|
|
70
|
-
// );
|
|
71
|
-
|
|
72
|
-
case constants.MODE_IDLE:
|
|
73
|
-
case constants.MODE_2D_ZOOM_IN:
|
|
74
|
-
case constants.MODE_2D_ZOOM_OUT:
|
|
75
|
-
case constants.MODE_2D_PAN:
|
|
76
|
-
case constants.MODE_WAITING_DRAWING_LINE:
|
|
77
|
-
case constants.MODE_DRAGGING_LINE:
|
|
78
|
-
case constants.MODE_DRAGGING_VERTEX:
|
|
79
|
-
case constants.MODE_DRAGGING_ITEM:
|
|
80
|
-
case constants.MODE_DRAWING_LINE:
|
|
81
|
-
case constants.MODE_DRAWING_HOLE:
|
|
82
|
-
case constants.MODE_DRAWING_ITEM:
|
|
83
|
-
case constants.MODE_DRAGGING_HOLE:
|
|
84
|
-
case constants.MODE_ROTATING_ITEM:
|
|
85
|
-
return /*#__PURE__*/React.createElement(Viewer2D, {
|
|
86
|
-
state: state,
|
|
87
|
-
width: width,
|
|
88
|
-
height: height,
|
|
89
|
-
setToolbar: setToolbar,
|
|
90
|
-
replaceCabinet: replaceCabinet,
|
|
91
|
-
onInternalEvent: onInternalEvent
|
|
92
|
-
});
|
|
93
|
-
case constants.MODE_ROTATING_ITEM_3D:
|
|
94
|
-
case constants.MODE_DRAGGING_ITEM_3D:
|
|
95
|
-
case constants.MODE_IDLE_3D:
|
|
96
|
-
case constants.MODE_DRAWING_ITEM_3D:
|
|
97
|
-
case constants.MODE_DRAWING_HOLE_3D:
|
|
98
|
-
case constants.MODE_DRAGGING_HOLE_3D:
|
|
99
|
-
return /*#__PURE__*/React.createElement(Viewer3D, {
|
|
100
|
-
id: "viewer3D",
|
|
101
|
-
state: state,
|
|
102
|
-
width: width,
|
|
103
|
-
height: height,
|
|
104
|
-
setToolbar: setToolbar,
|
|
105
|
-
replaceCabinet: replaceCabinet,
|
|
106
|
-
keyDownEnable: keyDownEnable,
|
|
107
|
-
downloadFlag: false,
|
|
108
|
-
onInternalEvent: onInternalEvent
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
// case constants.MODE_CONFIGURING_PROJECT:
|
|
112
|
-
// return (
|
|
113
|
-
// <ProjectConfigurator width={width} height={height} state={state} />
|
|
114
|
-
// );
|
|
115
|
-
|
|
116
|
-
default:
|
|
117
|
-
if (customContents.hasOwnProperty(mode)) {
|
|
118
|
-
var CustomContent = customContents[mode];
|
|
119
|
-
return /*#__PURE__*/React.createElement(CustomContent, {
|
|
120
|
-
width: width,
|
|
121
|
-
height: height,
|
|
122
|
-
state: state
|
|
123
|
-
});
|
|
124
|
-
} else {
|
|
125
|
-
throw new Error("Mode ".concat(mode, " doesn't have a mapped content"));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
Content.propTypes = {
|
|
130
|
-
state: PropTypes.object.isRequired,
|
|
131
|
-
width: PropTypes.number.isRequired,
|
|
132
|
-
height: PropTypes.number.isRequired,
|
|
133
|
-
replaceCabinet: PropTypes.func.isRequired,
|
|
134
|
-
onInternalEvent: PropTypes.func.isRequired
|
|
135
|
-
};
|
package/es/components/export.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Content from "./content";
|
|
2
|
-
import Viewer2DComponents from "./viewer2d/export";
|
|
3
|
-
import StyleComponents from "./style/export";
|
|
4
|
-
export { Content, Viewer2DComponents, StyleComponents };
|
|
5
|
-
export default {
|
|
6
|
-
Content: Content,
|
|
7
|
-
Viewer2DComponents: Viewer2DComponents,
|
|
8
|
-
StyleComponents: StyleComponents
|
|
9
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
-
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
-
var _excluded = ["type", "style", "styleHover", "children", "size"];
|
|
9
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
-
import React, { Component } from 'react';
|
|
12
|
-
import PropTypes from 'prop-types';
|
|
13
|
-
import * as SharedStyle from "../../shared-style";
|
|
14
|
-
var BASE_STYLE = {
|
|
15
|
-
display: 'inline-block',
|
|
16
|
-
fontWeight: '400',
|
|
17
|
-
lineHeight: '1.25',
|
|
18
|
-
textAlign: 'center',
|
|
19
|
-
whiteSpace: 'nowrap',
|
|
20
|
-
verticalAlign: 'middle',
|
|
21
|
-
cursor: 'pointer',
|
|
22
|
-
WebkitUserSelect: 'none',
|
|
23
|
-
MozUserSelect: 'none',
|
|
24
|
-
MsUserSelect: 'none',
|
|
25
|
-
userSelect: 'none',
|
|
26
|
-
padding: '5px 14px',
|
|
27
|
-
fontSize: '14px',
|
|
28
|
-
color: SharedStyle.COLORS.black,
|
|
29
|
-
fonWeight: '400px',
|
|
30
|
-
transition: 'background-color 175ms ease, border 175ms ease',
|
|
31
|
-
outline: 'none',
|
|
32
|
-
borderRadius: '2px',
|
|
33
|
-
borderWidth: '1px',
|
|
34
|
-
borderType: 'solid',
|
|
35
|
-
width: '100%'
|
|
36
|
-
};
|
|
37
|
-
var BASE_STYLE_SIZE = {
|
|
38
|
-
small: {
|
|
39
|
-
fontSize: '12px',
|
|
40
|
-
padding: '3px 8px'
|
|
41
|
-
},
|
|
42
|
-
normal: {},
|
|
43
|
-
large: {
|
|
44
|
-
padding: '8px 20px'
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var Button = /*#__PURE__*/function (_Component) {
|
|
48
|
-
function Button(props) {
|
|
49
|
-
var _this;
|
|
50
|
-
_classCallCheck(this, Button);
|
|
51
|
-
_this = _callSuper(this, Button, [props]);
|
|
52
|
-
_this.state = {
|
|
53
|
-
hover: false
|
|
54
|
-
};
|
|
55
|
-
return _this;
|
|
56
|
-
}
|
|
57
|
-
_inherits(Button, _Component);
|
|
58
|
-
return _createClass(Button, [{
|
|
59
|
-
key: "render",
|
|
60
|
-
value: function render() {
|
|
61
|
-
var _this2 = this;
|
|
62
|
-
var hover = this.state.hover;
|
|
63
|
-
var _this$props = this.props,
|
|
64
|
-
type = _this$props.type,
|
|
65
|
-
customStyle = _this$props.style,
|
|
66
|
-
customStyleHover = _this$props.styleHover,
|
|
67
|
-
children = _this$props.children,
|
|
68
|
-
size = _this$props.size,
|
|
69
|
-
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
70
|
-
var styleMerged = Object.assign({}, BASE_STYLE, BASE_STYLE_SIZE[size], hover ? customStyleHover : customStyle);
|
|
71
|
-
return /*#__PURE__*/React.createElement("button", _extends({
|
|
72
|
-
type: type,
|
|
73
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
74
|
-
return _this2.setState({
|
|
75
|
-
hover: true
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
79
|
-
return _this2.setState({
|
|
80
|
-
hover: false
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
style: styleMerged
|
|
84
|
-
}, rest), children);
|
|
85
|
-
}
|
|
86
|
-
}]);
|
|
87
|
-
}(Component);
|
|
88
|
-
export { Button as default };
|
|
89
|
-
Button.defaultProps = {
|
|
90
|
-
type: 'button',
|
|
91
|
-
size: 'normal',
|
|
92
|
-
style: {
|
|
93
|
-
backgroundColor: '#e6e6e6',
|
|
94
|
-
borderColor: '#adadad'
|
|
95
|
-
},
|
|
96
|
-
styleHover: {
|
|
97
|
-
backgroundColor: '#d4d4d4',
|
|
98
|
-
borderColor: '#8c8c8c'
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
Button.propTypes = {
|
|
102
|
-
type: PropTypes.string,
|
|
103
|
-
style: PropTypes.object,
|
|
104
|
-
styleHover: PropTypes.object,
|
|
105
|
-
size: PropTypes.oneOf(['large', 'normal', 'small'])
|
|
106
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import Button from "./button";
|
|
6
|
-
var STYLE = {
|
|
7
|
-
borderColor: '#adadad',
|
|
8
|
-
backgroundColor: '#e6e6e6'
|
|
9
|
-
};
|
|
10
|
-
var STYLE_HOVER = {
|
|
11
|
-
backgroundColor: '#d4d4d4',
|
|
12
|
-
borderColor: '#8c8c8c'
|
|
13
|
-
};
|
|
14
|
-
export default function CancelButton(_ref) {
|
|
15
|
-
var children = _ref.children,
|
|
16
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
18
|
-
style: STYLE,
|
|
19
|
-
styleHover: STYLE_HOVER
|
|
20
|
-
}, rest), children);
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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; }
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
var STYLE = {
|
|
7
|
-
padding: '0 20px',
|
|
8
|
-
overflowY: 'auto'
|
|
9
|
-
};
|
|
10
|
-
export default function ContentContainer(_ref) {
|
|
11
|
-
var children = _ref.children,
|
|
12
|
-
width = _ref.width,
|
|
13
|
-
height = _ref.height,
|
|
14
|
-
_ref$style = _ref.style,
|
|
15
|
-
style = _ref$style === void 0 ? {} : _ref$style;
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
style: _objectSpread(_objectSpread({
|
|
18
|
-
width: width,
|
|
19
|
-
height: height
|
|
20
|
-
}, STYLE), style),
|
|
21
|
-
onWheel: function onWheel(event) {
|
|
22
|
-
return event.stopPropagation();
|
|
23
|
-
}
|
|
24
|
-
}, children);
|
|
25
|
-
}
|
|
26
|
-
ContentContainer.propsType = {
|
|
27
|
-
width: PropTypes.number.isRequired,
|
|
28
|
-
height: PropTypes.number.isRequired,
|
|
29
|
-
style: PropTypes.object
|
|
30
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "style"];
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import * as SharedStyle from "../../shared-style";
|
|
10
|
-
var STYLE = {
|
|
11
|
-
color: SharedStyle.PRIMARY_COLOR.alt,
|
|
12
|
-
fontWeight: 300
|
|
13
|
-
};
|
|
14
|
-
export default function ContentTitle(_ref) {
|
|
15
|
-
var children = _ref.children,
|
|
16
|
-
_ref$style = _ref.style,
|
|
17
|
-
style = _ref$style === void 0 ? {} : _ref$style,
|
|
18
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
-
return /*#__PURE__*/React.createElement("h1", _extends({
|
|
20
|
-
style: _objectSpread(_objectSpread({}, STYLE), style)
|
|
21
|
-
}, rest), children);
|
|
22
|
-
}
|
|
23
|
-
ContentTitle.propsType = {
|
|
24
|
-
style: PropTypes.object
|
|
25
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import Button from "./button";
|
|
6
|
-
import * as SharedStyle from "../../shared-style";
|
|
7
|
-
var STYLE = {
|
|
8
|
-
borderColor: '#c12e2a',
|
|
9
|
-
backgroundColor: '#c9302c',
|
|
10
|
-
color: SharedStyle.COLORS.white
|
|
11
|
-
};
|
|
12
|
-
var STYLE_HOVER = {
|
|
13
|
-
backgroundColor: '#972726',
|
|
14
|
-
borderColor: '#c12e2a',
|
|
15
|
-
color: SharedStyle.COLORS.white
|
|
16
|
-
};
|
|
17
|
-
export default function FormDeleteButton(_ref) {
|
|
18
|
-
var children = _ref.children,
|
|
19
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
-
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
21
|
-
style: STYLE,
|
|
22
|
-
styleHover: STYLE_HOVER
|
|
23
|
-
}, rest), children);
|
|
24
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import Button from "./button";
|
|
2
|
-
import CancelButton from "./cancel-button";
|
|
3
|
-
import ContentContainer from "./content-container";
|
|
4
|
-
import ContentTitle from "./content-title";
|
|
5
|
-
import DeleteButton from "./delete-button";
|
|
6
|
-
import FormBlock from "./form-block";
|
|
7
|
-
import FormColorInput from "./form-color-input";
|
|
8
|
-
import FormLabel from "./form-label";
|
|
9
|
-
import FormNumberInput from "./form-number-input";
|
|
10
|
-
import FormSelect from "./form-select";
|
|
11
|
-
import FormSlider from "./form-slider";
|
|
12
|
-
import FormSubmitButton from "./form-submit-button";
|
|
13
|
-
import FormTextInput from "./form-text-input";
|
|
14
|
-
import FormNumberInput2 from "./form-number-input_2";
|
|
15
|
-
export { Button, CancelButton, ContentContainer, ContentTitle, DeleteButton, FormBlock, FormColorInput, FormLabel, FormNumberInput, FormSelect, FormSlider, FormSubmitButton, FormTextInput, FormNumberInput2 };
|
|
16
|
-
export default {
|
|
17
|
-
Button: Button,
|
|
18
|
-
CancelButton: CancelButton,
|
|
19
|
-
ContentContainer: ContentContainer,
|
|
20
|
-
ContentTitle: ContentTitle,
|
|
21
|
-
DeleteButton: DeleteButton,
|
|
22
|
-
FormBlock: FormBlock,
|
|
23
|
-
FormColorInput: FormColorInput,
|
|
24
|
-
FormLabel: FormLabel,
|
|
25
|
-
FormNumberInput: FormNumberInput,
|
|
26
|
-
FormSelect: FormSelect,
|
|
27
|
-
FormSlider: FormSlider,
|
|
28
|
-
FormSubmitButton: FormSubmitButton,
|
|
29
|
-
FormTextInput: FormTextInput,
|
|
30
|
-
FormNumberInput2: FormNumberInput2
|
|
31
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "style"];
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
var BASE_STYLE = {
|
|
9
|
-
marginBottom: '16px'
|
|
10
|
-
};
|
|
11
|
-
export default function FormBlock(_ref) {
|
|
12
|
-
var children = _ref.children,
|
|
13
|
-
style = _ref.style,
|
|
14
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
15
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
16
|
-
style: _objectSpread(_objectSpread({}, BASE_STYLE), {}, {
|
|
17
|
-
style: style
|
|
18
|
-
})
|
|
19
|
-
}, rest), children);
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["onChange"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import FormTextInput from "./form-text-input";
|
|
6
|
-
var STYLE = {
|
|
7
|
-
padding: 0,
|
|
8
|
-
border: 0
|
|
9
|
-
};
|
|
10
|
-
var EREG_NUMBER = /^.*$/;
|
|
11
|
-
export default function FormColorInput(_ref) {
|
|
12
|
-
var onChange = _ref.onChange,
|
|
13
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
-
var onChangeCustom = function onChangeCustom(event) {
|
|
15
|
-
var value = event.target.value;
|
|
16
|
-
if (EREG_NUMBER.test(value)) {
|
|
17
|
-
onChange(event);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
return /*#__PURE__*/React.createElement(FormTextInput, _extends({
|
|
21
|
-
type: "color",
|
|
22
|
-
style: STYLE,
|
|
23
|
-
onChange: onChangeCustom,
|
|
24
|
-
autoComplete: "off"
|
|
25
|
-
}, rest));
|
|
26
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "style"];
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
|
-
import React from 'react';
|
|
8
|
-
var BASE_STYLE = {
|
|
9
|
-
display: 'block',
|
|
10
|
-
marginBottom: '2px',
|
|
11
|
-
fontSize: '12px'
|
|
12
|
-
};
|
|
13
|
-
export default function FormLabel(_ref) {
|
|
14
|
-
var children = _ref.children,
|
|
15
|
-
style = _ref.style,
|
|
16
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
-
return /*#__PURE__*/React.createElement("label", _extends({
|
|
18
|
-
style: _objectSpread(_objectSpread({}, BASE_STYLE), {}, {
|
|
19
|
-
style: style
|
|
20
|
-
})
|
|
21
|
-
}, rest), children);
|
|
22
|
-
}
|