mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 02:10:16 +00:00
增加Background的borderStyle,给图表默认设置圆角
This commit is contained in:
@@ -18,6 +18,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private Image.Type m_ImageType;
|
||||
[SerializeField] private Color m_ImageColor = Color.white;
|
||||
[SerializeField] private bool m_AutoColor = true;
|
||||
[SerializeField][Since("v3.10.0")] private BorderStyle m_BorderStyle = new BorderStyle();
|
||||
|
||||
/// <summary>
|
||||
/// Whether to enable the background component.
|
||||
@@ -67,6 +68,16 @@ namespace XCharts.Runtime
|
||||
set { if (PropertyUtil.SetStruct(ref m_AutoColor, value)) SetVerticesDirty(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the border style of background.
|
||||
/// ||背景边框样式。
|
||||
/// </summary>
|
||||
public BorderStyle borderStyle
|
||||
{
|
||||
get { return m_BorderStyle; }
|
||||
set { if (PropertyUtil.SetClass(ref m_BorderStyle, value)) SetComponentDirty(); }
|
||||
}
|
||||
|
||||
public override void SetDefaultValue()
|
||||
{
|
||||
m_Show = true;
|
||||
|
||||
Reference in New Issue
Block a user