using System.Collections.Generic; using UnityEngine; namespace XCharts.Runtime { public class LegendContext : MainComponentContext { /// /// 运行时图例的总宽度 /// public float width { get; internal set; } /// /// 运行时图例的总高度 /// public float height { get; internal set; } /// /// the button list of legend. /// |图例按钮列表。 /// internal Dictionary buttonList = new Dictionary(); /// /// 多列时每列的宽度 /// internal Dictionary eachWidthDict = new Dictionary(); /// /// 单列高度 /// internal float eachHeight { get; set; } } }