mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
[feature][axis] support Settings.axisMaxSplitNumber
This commit is contained in:
@@ -23,6 +23,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField][Range(1, 10)] protected float m_CicleSmoothness = 2f;
|
||||
[SerializeField] protected float m_LegendIconLineWidth = 2;
|
||||
[SerializeField] private float[] m_LegendIconCornerRadius = new float[] { 0.25f, 0.25f, 0.25f, 0.25f };
|
||||
[SerializeField][Since("v3.1.0")] protected float m_AxisMaxSplitNumber = 20;
|
||||
|
||||
public bool show { get { return m_Show; } }
|
||||
/// <summary>
|
||||
@@ -137,6 +138,16 @@ namespace XCharts.Runtime
|
||||
set { if (PropertyUtil.SetClass(ref m_LegendIconCornerRadius, value, true)) SetVerticesDirty(); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the max splitnumber of axis.
|
||||
/// |坐标轴最大分隔段数。段数过大时可能会生成较多的label节点。
|
||||
/// </summary>
|
||||
public float axisMaxSplitNumber
|
||||
{
|
||||
get { return m_AxisMaxSplitNumber; }
|
||||
set { if (PropertyUtil.SetStruct(ref m_AxisMaxSplitNumber, value)) SetVerticesDirty(); }
|
||||
}
|
||||
|
||||
public void Copy(Settings settings)
|
||||
{
|
||||
m_ReversePainter = settings.reversePainter;
|
||||
|
||||
Reference in New Issue
Block a user