From be77701b29d225a6f9668a1fc87cb4dd0b44ec00 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 11 四月 2024 16:04:10 +0800 Subject: [PATCH] # --- zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js | 7 ++++++- 1 files changed, 6 insertions(+), 1 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 cd5f3ed..930578e 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,13 @@ } rePerspective = (maxHeight) => { + const height = Math.max(maxHeight, 600) const cameraPosScale = 0.7; - this.camera.position.set(-maxHeight * cameraPosScale, maxHeight * cameraPosScale, maxHeight * cameraPosScale); + this.camera.position.set( + -height * cameraPosScale, + height * cameraPosScale, + height * cameraPosScale + ); this.controls.target = new THREE.Vector3(0, maxHeight * 0.53, 0); } -- Gitblit v1.9.1