[optimize][legend] support background and padding

This commit is contained in:
monitor1394
2022-06-24 22:15:49 +08:00
parent 8a6253621b
commit 7c07499e44
4 changed files with 56 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace XCharts.Runtime
{
@@ -14,6 +15,7 @@ namespace XCharts.Runtime
/// 运行时图例的总高度
/// </summary>
public float height { get; internal set; }
public Vector2 center { get; internal set; }
/// <summary>
/// the button list of legend.
/// |图例按钮列表。
@@ -27,5 +29,6 @@ namespace XCharts.Runtime
/// 单列高度
/// </summary>
internal float eachHeight { get; set; }
public Image background { get; set; }
}
}