From 43fffc8b0d2ea88f379e8c72385bdfb42bb88108 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 16 三月 2024 16:03:54 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/utils.js | 9 ++++++---
1 files changed, 6 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..58fb2b2 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -411,6 +411,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 +421,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