整理和重构代码

This commit is contained in:
monitor1394
2022-12-07 13:16:06 +08:00
parent 84a8e6ca19
commit d67a922a74
11 changed files with 33 additions and 160 deletions

View File

@@ -18,6 +18,7 @@ namespace XCharts.Runtime
[SerializeField] protected string m_ChartName;
[SerializeField] protected ThemeStyle m_Theme = new ThemeStyle();
[SerializeField] protected Settings m_Settings;
[SerializeField] protected DebugInfo m_DebugInfo = new DebugInfo();
#pragma warning disable 0414
[SerializeField][ListForComponent(typeof(AngleAxis))] private List<AngleAxis> m_AngleAxes = new List<AngleAxis>();
@@ -67,6 +68,8 @@ namespace XCharts.Runtime
public List<MainComponent> components { get { return m_Components; } }
public List<Serie> series { get { return m_Series; } }
public DebugInfo debug { get { return m_DebugInfo; } }
public override HideFlags chartHideFlags { get { return m_DebugInfo.showAllChartObject ? HideFlags.None : HideFlags.HideInHierarchy; } }
protected float m_ChartWidth;
protected float m_ChartHeight;