From cef84b3bdff4625965eac92b6550ed04936d6b23 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 15 十月 2024 16:12:34 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/tool.js | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js index 8eab20d..094c2af 100644 --- a/zy-acs-flow/src/map/tool.js +++ b/zy-acs-flow/src/map/tool.js @@ -282,12 +282,17 @@ }; 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 * mapContainer.scale.x, + y: app.renderer.height / 2 - focusPoint.y * mapContainer.scale.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(() => { + // mapContainer.scale.set(.3); + }) + .start(); } export const clearMapData = () => { -- Gitblit v1.9.1