mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
3.0 - unitypackage
This commit is contained in:
32
Runtime/Component/Legend/LegendContext.cs
Normal file
32
Runtime/Component/Legend/LegendContext.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace XCharts
|
||||
{
|
||||
|
||||
public class LegendContext : MainComponentContext
|
||||
{
|
||||
/// <summary>
|
||||
/// 运行时图例的总宽度
|
||||
/// </summary>
|
||||
public float width { get; internal set; }
|
||||
/// <summary>
|
||||
/// 运行时图例的总高度
|
||||
/// </summary>
|
||||
public float height { get; internal set; }
|
||||
/// <summary>
|
||||
/// the button list of legend.
|
||||
/// 图例按钮列表。
|
||||
/// </summary>
|
||||
internal Dictionary<string, LegendItem> buttonList = new Dictionary<string, LegendItem>();
|
||||
/// <summary>
|
||||
/// 多列时每列的宽度
|
||||
/// </summary>
|
||||
internal Dictionary<int, float> eachWidthDict = new Dictionary<int, float>();
|
||||
/// <summary>
|
||||
/// 单列高度
|
||||
/// </summary>
|
||||
internal float eachHeight { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user