From 9d0acfb65c80c4948c305ca01338f894b87346a0 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 四月 2024 09:44:37 +0800 Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack --- 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