From 48eefc082760c3f859656e5375f5a71b04f38054 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 十一月 2024 08:11:57 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/tool.js b/zy-acs-flow/src/map/tool.js
index ab5e99f..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";
@@ -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