mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 01:10:08 +00:00
增加运行时和非运行时参数变更自动刷新图表
This commit is contained in:
@@ -13,7 +13,7 @@ namespace XCharts
|
||||
/// Settings related to axis line.
|
||||
/// 坐标轴的分隔线。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
[System.Serializable]
|
||||
public class AxisLine : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show;
|
||||
@@ -29,42 +29,74 @@ namespace XCharts
|
||||
/// Set this to false to prevent the axis line from showing.
|
||||
/// 是否显示坐标轴轴线。
|
||||
/// </summary>
|
||||
public bool show { get { return m_Show; } set { m_Show = value; } }
|
||||
public bool show
|
||||
{
|
||||
get { return m_Show; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// When mutiple axes exists, this option can be used to specify which axis can be "onZero" to.
|
||||
/// X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一个轴为数值轴且包含 0 刻度时有效。
|
||||
/// </summary>
|
||||
public bool onZero { get { return m_OnZero; } set { m_OnZero = value; } }
|
||||
public bool onZero
|
||||
{
|
||||
get { return m_OnZero; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_Show, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// line style line width.
|
||||
/// 坐标轴线线宽。
|
||||
/// </summary>
|
||||
public float width { get { return m_Width; } set { m_Width = value; } }
|
||||
public float width
|
||||
{
|
||||
get { return m_Width; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_Width, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the arrow symbol of axis.
|
||||
/// 是否显示箭头。
|
||||
/// </summary>
|
||||
public bool symbol { get { return m_Symbol; } set { m_Symbol = value; } }
|
||||
public bool symbol
|
||||
{
|
||||
get { return m_Symbol; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_Symbol, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// the width of arrow symbol.
|
||||
/// 箭头宽。
|
||||
/// </summary>
|
||||
public float symbolWidth { get { return m_SymbolWidth; } set { m_SymbolWidth = value; } }
|
||||
public float symbolWidth
|
||||
{
|
||||
get { return m_SymbolWidth; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_SymbolWidth, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// the height of arrow symbol.
|
||||
/// 箭头高。
|
||||
/// </summary>
|
||||
public float symbolHeight { get { return m_SymbolHeight; } set { m_SymbolHeight = value; } }
|
||||
public float symbolHeight
|
||||
{
|
||||
get { return m_SymbolHeight; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_SymbolHeight, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// the offset of arrow symbol.
|
||||
/// 箭头偏移。
|
||||
/// </summary>
|
||||
public float symbolOffset { get { return m_SymbolOffset; } set { m_SymbolOffset = value; } }
|
||||
public float symbolOffset
|
||||
{
|
||||
get { return m_SymbolOffset; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_SymbolOffset, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// the dent of arrow symbol.
|
||||
/// 箭头的凹陷程度。
|
||||
/// </summary>
|
||||
public float symbolDent { get { return m_SymbolDent; } set { m_SymbolDent = value; } }
|
||||
public float symbolDent
|
||||
{
|
||||
get { return m_SymbolDent; }
|
||||
set { if (PropertyUtility.SetStruct(ref m_SymbolDent, value)) SetVerticesDirty(); }
|
||||
}
|
||||
|
||||
public static AxisLine defaultAxisLine
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user