mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 04:20:09 +00:00
[add][VisualMap] add workOnLine and workOnArea (#191)
This commit is contained in:
@@ -98,6 +98,9 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private bool m_AutoMinMax = true;
|
||||
[SerializeField] private Orient m_Orient = Orient.Horizonal;
|
||||
[SerializeField] private Location m_Location = Location.defaultLeft;
|
||||
[SerializeField] private bool m_WorkOnLine = true;
|
||||
[SerializeField] private bool m_WorkOnArea = false;
|
||||
|
||||
[SerializeField] private List<Color32> m_InRange = new List<Color32>();
|
||||
[SerializeField] private List<Color32> m_OutOfRange = new List<Color32>() { Color.gray };
|
||||
[SerializeField] private List<VisualMapPieces> m_Pieces = new List<VisualMapPieces>();
|
||||
@@ -310,6 +313,24 @@ namespace XCharts.Runtime
|
||||
set { if (PropertyUtil.SetClass(ref m_Location, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the visualmap is work on linestyle of linechart.
|
||||
/// |组件是否对LineChart的LineStyle有效。
|
||||
/// </summary>
|
||||
public bool workOnLine
|
||||
{
|
||||
get { return m_WorkOnLine; }
|
||||
set { if (PropertyUtil.SetStruct(ref m_WorkOnLine, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether the visualmap is work on areaStyle of linechart.
|
||||
/// |组件是否对LineChart的AreaStyle有效。
|
||||
/// </summary>
|
||||
public bool workOnArea
|
||||
{
|
||||
get { return m_WorkOnArea; }
|
||||
set { if (PropertyUtil.SetStruct(ref m_WorkOnArea, value)) SetVerticesDirty(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// Defines the visual color in the selected range.
|
||||
/// |定义 在选中范围中 的视觉颜色。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user