From 69db61c7b64d35db5ebbccfd16b8c785cc30b19e Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 26 Nov 2022 12:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`LineChart`=E5=9C=A8`XY`?= =?UTF-8?q?=E9=83=BD=E4=B8=BA=E6=95=B0=E5=80=BC=E8=BD=B4=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=97=A0=E5=BA=8F=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Component/Animation/AnimationStyle.cs | 2 -- Runtime/Internal/BaseChart.API.cs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Component/Animation/AnimationStyle.cs b/Runtime/Component/Animation/AnimationStyle.cs index 367f880c..6eb71216 100644 --- a/Runtime/Component/Animation/AnimationStyle.cs +++ b/Runtime/Component/Animation/AnimationStyle.cs @@ -275,8 +275,6 @@ namespace XCharts.Runtime { if (m_IsInit || m_IsEnd) return; - if (curr > dest) - return; m_IsInit = true; m_TotalDetailProgress = dest - curr; diff --git a/Runtime/Internal/BaseChart.API.cs b/Runtime/Internal/BaseChart.API.cs index 5a3330ee..84847cca 100644 --- a/Runtime/Internal/BaseChart.API.cs +++ b/Runtime/Internal/BaseChart.API.cs @@ -360,8 +360,10 @@ namespace XCharts.Runtime /// fadeIn animation. /// |开始渐入动画。 /// - public void AnimationFadeIn() + public void AnimationFadeIn(bool reset = true) { + if (reset) + AnimationReset(); foreach (var serie in m_Series) serie.AnimationFadeIn(); }