From 79603e53c78e535dba4bfbc69b8c3b5c184012c5 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期一, 08 四月 2024 09:16:05 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js | 5 +++--
1 files changed, 3 insertions(+), 2 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 5c2913e..019533c 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -201,8 +201,9 @@
}
rePerspective = (maxHeight) => {
- this.camera.position.set(-maxHeight * 0.8, maxHeight * 0.8, maxHeight * 0.8);
- this.controls.target = new THREE.Vector3(0, maxHeight * 0.55, 0);
+ const cameraPosScale = 0.7;
+ this.camera.position.set(-maxHeight * cameraPosScale, maxHeight * cameraPosScale, maxHeight * cameraPosScale);
+ this.controls.target = new THREE.Vector3(0, maxHeight * 0.53, 0);
}
destroy = () => {
--
Gitblit v1.9.1