2021-12-12 18:05:26 +08:00
|
|
|
using System;
|
|
|
|
|
|
2022-02-19 22:37:57 +08:00
|
|
|
namespace XCharts.Runtime
|
2021-12-12 18:05:26 +08:00
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
|
|
|
|
public sealed class DefaultAnimationAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public readonly AnimationType type;
|
2023-07-11 13:32:50 +08:00
|
|
|
public readonly bool enableSerieDataAddedAnimation = true;
|
2021-12-12 18:05:26 +08:00
|
|
|
|
|
|
|
|
public DefaultAnimationAttribute(AnimationType handler)
|
|
|
|
|
{
|
|
|
|
|
this.type = handler;
|
|
|
|
|
}
|
2023-07-11 13:32:50 +08:00
|
|
|
|
|
|
|
|
public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)
|
|
|
|
|
{
|
|
|
|
|
this.type = handler;
|
|
|
|
|
this.enableSerieDataAddedAnimation = enableSerieDataAddedAnimation;
|
|
|
|
|
}
|
2021-12-12 18:05:26 +08:00
|
|
|
}
|
|
|
|
|
}
|