From 3ef1788f712ea37a127bdea0cefd677ca3691f4a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 19 三月 2024 11:05:54 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/utils.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js
index 64b1d49..bf7a16f 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -28,6 +28,7 @@
export const SENSOR_TYPE = Object.freeze({
SHELF: "SHELF",
+ POINT: "POINT",
AGV: "AGV",
})
@@ -411,6 +412,9 @@
return;
}
+ mapContainer.scale.set(1);
+ mapContainer.position.set(0, 0);
+
let bounds = sprite.getBounds();
let centerPoint = {
x: bounds.x + bounds.width / 2,
@@ -418,10 +422,10 @@
};
let targetPos = {
- x: app.renderer.width / 2 - centerPoint.x * mapContainer.scale.x,
- y: app.renderer.height / 2 - centerPoint.y * mapContainer.scale.y
+ x: app.renderer.width / 3 - centerPoint.x * mapContainer.scale.x,
+ y: app.renderer.height / 3 - centerPoint.y * mapContainer.scale.y
};
new TWEEDLE.Tween(mapContainer.position).easing(TWEEDLE.Easing.Quadratic.Out)
- .to(targetPos, 200).start();
+ .to(targetPos, 500).start();
}
\ No newline at end of file
--
Gitblit v1.9.1