using System.Collections.Generic; using UnityEngine; namespace XCharts.Runtime { public struct PointInfo { public Vector3 position; public bool isIgnoreBreak; public PointInfo(Vector3 pos, bool ignore) { this.position = pos; this.isIgnoreBreak = ignore; } } public class SerieContext { /// /// 鼠标是否进入serie /// public bool pointerEnter; /// /// 鼠标当前指示的数据项索引(单个) /// public int pointerItemDataIndex = -1; /// /// 鼠标所在轴线上的数据项索引(可能有多个) /// public List pointerAxisDataIndexs = new List(); public bool isTriggerByAxis = false; /// /// 中心点 /// public Vector3 center; /// /// 线段终点 /// public Vector3 lineEndPostion; public double lineEndValue; /// /// 内半径 /// public float insideRadius; /// /// 外半径 /// public float outsideRadius; public float startAngle; /// /// 最大值 /// public double dataMax; /// /// 最小值 /// public double dataMin; public double checkValue; /// /// 左下角坐标X /// public float x; /// /// 左下角坐标Y /// public float y; /// /// 宽 /// public float width; /// /// 高 /// public float height; /// /// 矩形区域 /// public Rect rect; /// /// 绘制顶点数 /// public int vertCount; /// /// 数据对应的位置坐标。 /// public List dataPoints = new List(); /// /// 数据对应的位置坐标是否忽略(忽略时连线是透明的),dataIgnore 和 dataPoints 一一对应。 /// public List dataIgnores = new List(); /// /// 排序后的数据 /// public List sortedData = new List(); public List rootData = new List(); /// /// theme的颜色索引 /// public int colorIndex; /// /// 绘制点 /// public List drawPoints = new List(); public SerieParams param = new SerieParams(); public ChartLabel titleObject { get; set; } } }