From 124393622cf39640cb0094f3b2bfeacbdb30eab9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 11 四月 2024 16:05:54 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js | 4 ++--
zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
index 930578e..fde4550 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -200,8 +200,8 @@
}
}
- rePerspective = (maxHeight) => {
- const height = Math.max(maxHeight, 600)
+ rePerspective = (maxHeight, normalHeight) => {
+ const height = Math.max(maxHeight, normalHeight)
const cameraPosScale = 0.7;
this.camera.position.set(
-height * cameraPosScale,
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
index d020f2a..6ff71d5 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -107,7 +107,7 @@
Promise.all(promises).then(() => {
shelfThree.setNewSelectedMesh(locNo);
- shelfThree.rePerspective(singleHeight * res.data.length);
+ shelfThree.rePerspective(singleHeight * res.data.length, 500);
}).catch(error => {
console.error(error);
});
--
Gitblit v1.9.1