using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace XCharts.Runtime { public class SerieDataContext { public Vector3 labelPosition { get; set; } /// /// 开始角度 /// public float startAngle { get; internal set; } /// /// 结束角度 /// public float toAngle { get; internal set; } /// /// 一半时的角度 /// public float halfAngle { get; internal set; } /// /// 当前角度 /// public float currentAngle { get; internal set; } /// /// 饼图数据项的内半径 /// public float insideRadius { get; internal set; } /// /// 饼图数据项的偏移半径 /// public float offsetRadius { get; internal set; } public float outsideRadius { get; set; } public Vector3 position { get; set; } public List dataPoints = new List(); public List children = new List(); /// /// 绘制区域。 /// public Rect rect { get; set; } public Rect subRect { get; set; } public int level { get; set; } public SerieData parent { get; set; } public Color32 color { get; set; } public double area { get; set; } public float angle { get; set; } public Vector3 offsetCenter { get; set; } public float stackHeight { get; set; } public bool isClip { get; set; } public bool canShowLabel = true; public Image symbol { get; set; } /// /// Whether the data item is highlighted. /// 该数据项是否被高亮,一般由鼠标悬停或图例悬停触发高亮。 /// public bool highlight { get; set; } } }