Junjie
2024-04-12 c01f7222dcd48a7263ee414287469c754e7de22c
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js
@@ -200,9 +200,14 @@
        }
    }
    rePerspective = (maxHeight) => {
    rePerspective = (maxHeight, normalHeight) => {
        const height = Math.max(maxHeight, normalHeight)
        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);
    }