From a62ffbff96b2a851c605525ccf7eee3346b31a89 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 十一月 2024 09:12:47 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index 08939c6..3afce6a 100644
--- a/zy-acs-flow/src/map/tool.js
+++ b/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();
 }

--
Gitblit v1.9.1