From f4e24d6cf7c76d55a87f969d93ff54d2707db3cd Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 09 四月 2024 08:38:43 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/utils.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js
index 3d68464..4dfd41e 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -650,14 +650,13 @@
pathLine = new PIXI.Graphics();
pathLine.name = pathLineName;
- pathLine.lineStyle(3 * (1 / mapContainer.scale.x), 0x3498db, 1);
+ pathLine.lineStyle(2 * (1 / mapContainer.scale.x), 0x3498db, 0.8);
pathLine.zIndex = SENSOR_ZINDEX.TRAVEL_PATH;
let firstNode = true;
- for (let i = path.indexOf(curLocNo) - 1; i < path.length; i++) {
+ for (let i = Math.max(0, path.indexOf(curLocNo) - 1); i < path.length; i++) {
const { row, bay, lev } = parseLocNo(path[i]);
if (Number(lev) !== curFloor) { continue }
const shelf = querySprite(SENSOR_TYPE.SHELF, row + '-' + bay);
-
if (!shelf) { continue };
let position = shelf.position;
let x = position.x;
@@ -690,7 +689,7 @@
mapContainer.addChild(shuttle);
viewFeature(shuttle, setCurSPrite);
}
-
+
new TWEEDLE.Tween(shuttle?.position).easing(TWEEDLE.Easing.Linear.None).to({
x: shelf.position.x,
y: shelf.position.y
--
Gitblit v1.9.1