2022-03-04 22:17:32 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
2022-02-19 22:37:57 +08:00
|
|
|
|
namespace XCharts.Runtime
|
2021-06-27 12:26:20 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2022-04-26 08:24:45 +08:00
|
|
|
|
/// The delegate function for LabelStyle‘s formatter.
|
2023-11-11 23:32:24 +08:00
|
|
|
|
/// ||SerieLabel的formatter自定义委托。
|
2021-06-27 12:26:20 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="dataIndex">数据索引</param>
|
|
|
|
|
|
/// <param name="value">数值</param>
|
2022-07-03 21:09:49 +08:00
|
|
|
|
/// <param name="category">类目</param>
|
|
|
|
|
|
/// <param name="content">当前内容</param>
|
2021-06-27 12:26:20 +08:00
|
|
|
|
/// <returns>最终显示的文本内容</returns>
|
2022-07-03 21:09:49 +08:00
|
|
|
|
public delegate string LabelFormatterFunction(int dataIndex, double value, string category, string content);
|
2022-03-04 22:17:32 +08:00
|
|
|
|
public delegate float AnimationDelayFunction(int dataIndex);
|
|
|
|
|
|
public delegate float AnimationDurationFunction(int dataIndex);
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取标记大小的回调。
|
|
|
|
|
|
/// </summary>
|
2025-02-06 21:23:58 +08:00
|
|
|
|
public delegate float SymbolSizeFunction(float defaultSize, SerieData serieData);
|
2022-03-04 22:17:32 +08:00
|
|
|
|
public delegate void CustomDrawGaugePointerFunction(VertexHelper vh, int serieIndex, int dataIndex, float currentAngle);
|
2023-02-26 22:49:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// DataZoom的start和end变更时的委托方法。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="start"></param>
|
|
|
|
|
|
/// <param name="end"></param>
|
|
|
|
|
|
public delegate void CustomDataZoomStartEndFunction(ref float start, ref float end);
|
2021-06-27 12:26:20 +08:00
|
|
|
|
}
|