[bug] fix editor auto refresh bug

This commit is contained in:
monitor1394
2022-09-09 13:19:22 +08:00
parent dd6833d322
commit ac7628ce68
4 changed files with 9 additions and 3 deletions

View File

@@ -58,7 +58,8 @@
## master ## master
* (2022.09.06) 增加`RingChart`可设置`LabelLine`引导线的支持 * (2022.09.09) 修复`Editor`下编辑参数部分组件可能不会实时刷新的问题
* (2022.09.08) 增加`RingChart`可设置`LabelLine`引导线的支持
* (2022.09.06) 增加`SerieSymbol``minSize``maxSize`参数设置最大最小尺寸的支持 * (2022.09.06) 增加`SerieSymbol``minSize``maxSize`参数设置最大最小尺寸的支持
* (2022.09.06) 增加`AxisSplitLine``showStartLine``showEndLine`参数设置是否显示首位分割线的支持 * (2022.09.06) 增加`AxisSplitLine``showStartLine``showEndLine`参数设置是否显示首位分割线的支持
* (2022.09.06) 增加`Heatmap`通过`symbol`设置不同的图案的支持 * (2022.09.06) 增加`Heatmap`通过`symbol`设置不同的图案的支持

View File

@@ -157,6 +157,11 @@ namespace XCharts.Runtime
if (m_PainterTop) m_PainterTop.Refresh(); if (m_PainterTop) m_PainterTop.Refresh();
} }
public override void RefreshGraph()
{
RefreshChart();
}
/// <summary> /// <summary>
/// Redraw chart serie in next frame. /// Redraw chart serie in next frame.
/// |在下一帧刷新图表的指定serie。 /// |在下一帧刷新图表的指定serie。

View File

@@ -120,7 +120,7 @@ namespace XCharts.Runtime
/// Redraw graph in next frame. /// Redraw graph in next frame.
/// |在下一帧刷新图形。 /// |在下一帧刷新图形。
/// </summary> /// </summary>
public void RefreshGraph() public virtual void RefreshGraph()
{ {
m_RefreshChart = true; m_RefreshChart = true;
} }

View File

@@ -80,9 +80,9 @@ namespace XCharts.Runtime
if (m_IsOnValidate) if (m_IsOnValidate)
{ {
m_IsOnValidate = false; m_IsOnValidate = false;
m_RefreshChart = true;
CheckTextMeshPro(); CheckTextMeshPro();
InitComponent(); InitComponent();
RefreshGraph();
} }
else else
{ {