From 991d8f88fc4644ec42f1d9febef2a11ef36dedd0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 16 十月 2024 08:31:12 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/tool.js |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index 8eab20d..de1f008 100644
--- a/zy-acs-flow/src/map/tool.js
+++ b/zy-acs-flow/src/map/tool.js
@@ -272,7 +272,7 @@
         return;
     }
 
-    mapContainer.scale.set(1);
+    mapContainer.scale.set(0.3);
     mapContainer.position.set(0, 0);
 
     let bounds = sprite.getBounds();
@@ -282,12 +282,16 @@
     };
 
     let targetPos = {
-        x: app.renderer.width / 3 - focusPoint.x * mapContainer.scale.x,
-        y: app.renderer.height / 3 - focusPoint.y * mapContainer.scale.y
+        x: app.renderer.width / 4 - focusPoint.x,
+        y: app.renderer.height / 2 - focusPoint.y
     };
 
-    new TWEEDLE.Tween(mapContainer.position).easing(TWEEDLE.Easing.Quadratic.Out)
-        .to(targetPos, 500).start();
+    new TWEEDLE.Tween(mapContainer.position)
+        .easing(TWEEDLE.Easing.Quadratic.Out)
+        .to(targetPos, 500)
+        .onComplete(() => {
+        })
+        .start();
 }
 
 export const clearMapData = () => {

--
Gitblit v1.9.1