Files
ZHGD_Web/SelfPackages/XCharts/Runtime/Internal/Attributes/DefaultAnimationAttribute.cs

22 lines
648 B
C#
Raw Normal View History

2025-07-13 23:16:20 +08:00
using System;
namespace XCharts.Runtime
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DefaultAnimationAttribute : Attribute
{
public readonly AnimationType type;
public readonly bool enableSerieDataAddedAnimation = true;
public DefaultAnimationAttribute(AnimationType handler)
{
this.type = handler;
}
public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)
{
this.type = handler;
this.enableSerieDataAddedAnimation = enableSerieDataAddedAnimation;
}
}
}