#
luxiaotao1123
2024-03-16 1276b55d08d2bd7b680ae3c78c63e972acac85b4
#
1个文件已修改
9 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/map/utils.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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();
}