From 16f5e8d67c29b726bf07e790da3214d72eb0e053 Mon Sep 17 00:00:00 2001
From: gtsxc <3272660260@qq.com>
Date: 星期五, 28 二月 2025 08:26:23 +0800
Subject: [PATCH] #搜索空闲小车地图改为DFX,增加车辆有没有被任务绑定判断
---
zy-asrs-flow/src/pages/map/drawer/shelf/shelfThree.js | 9 +++++++--
1 files changed, 7 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 cd5f3ed..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,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);
}
--
Gitblit v1.9.1