暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LegendContext.cs 1.0KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. namespace XCharts.Runtime
  5. {
  6. public class LegendContext : MainComponentContext
  7. {
  8. /// <summary>
  9. /// 运行时图例的总宽度
  10. /// </summary>
  11. public float width { get; internal set; }
  12. /// <summary>
  13. /// 运行时图例的总高度
  14. /// </summary>
  15. public float height { get; internal set; }
  16. public Vector2 center { get; internal set; }
  17. /// <summary>
  18. /// the button list of legend.
  19. /// |图例按钮列表。
  20. /// </summary>
  21. internal Dictionary<string, LegendItem> buttonList = new Dictionary<string, LegendItem>();
  22. /// <summary>
  23. /// 多列时每列的宽度
  24. /// </summary>
  25. internal Dictionary<int, float> eachWidthDict = new Dictionary<int, float>();
  26. /// <summary>
  27. /// 单列高度
  28. /// </summary>
  29. internal float eachHeight { get; set; }
  30. public Image background { get; set; }
  31. }
  32. }