From b91a579bc9267c6cf3e3457eb34c9e28859b6e82 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 19 十月 2024 13:36:27 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/MapPage.jsx |   50 ++++++++++++++++----------------------------------
 1 files changed, 16 insertions(+), 34 deletions(-)

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index b2a887a..47c1efd 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -5,19 +5,9 @@
     MenuItem,
     Button,
     Box,
-    SpeedDial,
-    SpeedDialAction,
     useTheme,
     Fab,
 } from '@mui/material';
-import {
-    MoreVert as MoreVertIcon,
-    Edit as EditIcon,
-    FileCopy as FileCopyIcon,
-    Save as SaveIcon,
-    Print as PrintIcon,
-    Share as ShareIcon,
-} from '@mui/icons-material';
 import { MAP_MODE } from "./constants";
 import Player from './player';
 import * as Tool from './tool';
@@ -90,8 +80,8 @@
             }
 
             setTimeout(() => {
-                player.adaptScreen();
                 notify.info(translate('page.map.welcome'));
+                player.adaptScreen();
                 setDataFetched(true);
                 setMode(MAP_MODE.OBSERVER_MODE);
             }, 200)
@@ -215,6 +205,7 @@
             }
         } else {
             Tool.removeSelectedEffect();
+            setInsightVisible(false)
         }
     }, [curSprite]);
     const prevCurSprite = prevCurSpriteRef.current;
@@ -231,14 +222,6 @@
             setBatchSelectionVisible(false)
         }
     }, [batchSprites])
-
-    const actions = [
-        { icon: <FileCopyIcon />, name: '澶嶅埗' },
-        { icon: <SaveIcon />, name: '淇濆瓨' },
-        { icon: <PrintIcon />, name: '鎵撳嵃' },
-        { icon: <ShareIcon />, name: '鍒嗕韩' },
-        { icon: <EditIcon />, name: '缂栬緫' },
-    ];
 
     return (
         <Box
@@ -363,6 +346,20 @@
                     flexGrow: 1,    // fill remaining of map space 
                     position: 'relative',
                     backgroundColor: '#fff',
+                    ...(mode === MAP_MODE.SETTINGS_MODE && {
+                        animation: 'settingsPulse 1.5s infinite',
+                        '@keyframes settingsPulse': {
+                            '0%': {
+                                boxShadow: `0 0 3px 1px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.1)`)}`,
+                            },
+                            '50%': {
+                                boxShadow: `0 0 8px 3px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.5)`)}`,
+                            },
+                            '100%': {
+                                boxShadow: `0 0 3px 1px ${theme.palette.primary.main.replace('rgb', 'rgba').replace(')', `, 0.1)`)}`,
+                            },
+                        },
+                    })
                 }}
             >
                 <Box
@@ -383,20 +380,6 @@
                         height: '100%',
                     }} />
                 </Box>
-
-                {/* <SpeedDial
-                    ariaLabel="SpeedDial 绀轰緥"
-                    sx={{ position: 'absolute', bottom: 16, right: 16 }}
-                    icon={<MoreVertIcon />}
-                >
-                    {actions.map((action) => (
-                        <SpeedDialAction
-                            key={action.name}
-                            icon={action.icon}
-                            tooltipTitle={action.name}
-                        />
-                    ))}
-                </SpeedDial> */}
 
                 <Box
                     sx={{
@@ -426,7 +409,6 @@
                 open={insightVisible}
                 onCancel={() => {
                     setCurSprite(null);
-                    setInsightVisible(false);
                 }}
                 sprite={curSprite}
                 width={570}

--
Gitblit v1.9.1