开启部分Serie的MaxCache设置

This commit is contained in:
monitor1394
2023-09-03 21:43:38 +08:00
parent 910b9194ac
commit 367844a86c
5 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ namespace XCharts.Editor
PropertyField("m_AvoidLabelOverlap");
PropertyFiledMore(() =>
{
PropertyField("m_MaxCache");
PropertyField("m_MinAngle");
PropertyField("m_MinRadius");
PropertyField("m_RoundCap");

View File

@@ -10,6 +10,7 @@ namespace XCharts.Editor
PropertyField("m_ColorBy");
PropertyField("m_RadarType");
PropertyField("m_RadarIndex");
PropertyField("m_MaxCache");
PropertyField("m_Smooth");
PropertyField("m_Symbol");

View File

@@ -12,6 +12,7 @@ namespace XCharts.Editor
PropertyTwoFiled("m_Radius");
PropertyField("m_StartAngle");
PropertyField("m_Gap");
PropertyField("m_MaxCache");
PropertyField("m_RoundCap");
PropertyField("m_Clockwise");
PropertyField("m_AvoidLabelOverlap");

View File

@@ -16,6 +16,7 @@ namespace XCharts.Editor
PropertyField("m_XAxisIndex");
PropertyField("m_YAxisIndex");
}
PropertyField("m_MaxCache");
PropertyField("m_Clip");
PropertyField("m_Symbol");

View File

@@ -248,7 +248,11 @@ namespace XCharts.Runtime
public List<MainComponent> GetChartComponents<T>() where T : MainComponent
{
return m_ComponentMaps[typeof(T)];
var type = typeof(T);
if (m_ComponentMaps.ContainsKey(type))
return m_ComponentMaps[type];
else
return null;
}
[Obsolete("'GetOrAddChartComponent' is obsolete, Use 'EnsureChartComponent' instead.")]