#
luxiaotao1123
2024-11-13 a62ffbff96b2a851c605525ccf7eee3346b31a89
zy-acs-flow/src/map/tool.js
@@ -9,6 +9,7 @@
    DEVICE_SELECTED_EFFECT_COLOR,
    POINT_ROUTE_DIRECTION,
    DEVICE_SPRITE_TINT_DARK,
    ANIMATE_DURING_TIME,
} from './constants';
import { getRouteList } from './http';
import PointRoute from "./PointRoute";
@@ -111,8 +112,8 @@
            if (texture) {
                sprite = new PIXI.Sprite(PIXI.Texture.from(texture, { resourceOptions: { scale: 1 } }));
            }
            sprite.width = 800;
            sprite.height = 1500;
            sprite.width = 750;
            sprite.height = 1300;
            sprite.zIndex = DEVICE_Z_INDEX.AGV;
            break
        case DEVICE_TYPE.POINT:
@@ -564,7 +565,7 @@
    const endRotation = sprite.rotation + rotationDifference;
    new TWEEDLE.Tween(sprite)
        .to({ rotation: endRotation }, 1000)
        .to({ rotation: endRotation }, ANIMATE_DURING_TIME)
        .easing(TWEEDLE.Easing.Linear.None)
        .onUpdate(() => {
            // agv
@@ -721,7 +722,7 @@
        .to({
            x: codeSprite.position.x,
            y: codeSprite.position.y
        }, 1000)
        }, ANIMATE_DURING_TIME)
        .easing(TWEEDLE.Easing.Linear.None)
        .start();
}