#
luxiaotao1123
2024-10-15 5597c4413562fe202c393f79398ddee224b4bd4a
#
1个文件已修改
7 ■■■■■ 已修改文件
zy-acs-flow/src/map/tool.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,15 +282,14 @@
    };
    let targetPos = {
        x: app.renderer.width / 4 - focusPoint.x * mapContainer.scale.x,
        y: app.renderer.height / 2 - 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)
        .onComplete(() => {
            // mapContainer.scale.set(.3);
        })
        .start();
}