Browse Source

地图所有设备图标 缩放比例修改

zhaojijng 2 years ago
parent
commit
0f14b229c3
3 changed files with 9 additions and 7 deletions
  1. 3 0
      src/pages/Environment/index.tsx
  2. 3 7
      src/pages/Equipment/index.tsx
  3. 3 0
      src/pages/Runtime/index.tsx

+ 3 - 0
src/pages/Environment/index.tsx

@@ -357,6 +357,9 @@ const Environment: React.FC = () => {
                       >
                         {item.localName}
                       </div>
+                      {getSpaceFunc(item.roomFuncType) && (item.width < 40 || item.height < 40) && (
+                        <div>.</div>
+                      )}
                     </div>
                   </div>
                 </div>

+ 3 - 7
src/pages/Equipment/index.tsx

@@ -563,14 +563,8 @@ const Environment: React.FC = () => {
                           transform:
                             scale == maxScale
                               ? 'scale(1)'
-                              : item.width < 30 || item.height < 20
+                              : item.width < 47 || item.height < 20
                               ? 'scale(0.3)'
-                              : item.width < 40 || item.height < 30
-                              ? 'scale(0.5)'
-                              : item.width < 55 || item.height < 40
-                              ? 'scale(0.6)'
-                              : item.width < 75 || item.height < 50
-                              ? 'scale(0.8)'
                               : 'scale(1)',
                         }}
                       >
@@ -641,6 +635,8 @@ const Environment: React.FC = () => {
                         >
                           {item.localName}
                         </div>
+                        {getSpaceFunc(item.roomFuncType) &&
+                          (item.width < 40 || item.height < 40) && <div>.</div>}
                       </div>
                     </div>
                   </div>

+ 3 - 0
src/pages/Runtime/index.tsx

@@ -345,6 +345,9 @@ const Runtime: React.FC = () => {
                     >
                       {item.localName}
                     </div>
+                    {getSpaceFunc(item.roomFuncType) && (item.width < 40 || item.height < 40) && (
+                      <div>.</div>
+                    )}
                   </div>
                 </div>
               </div>