mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 22:40:10 +00:00
修复LineChart渐出动画绘制异常的问题#79
This commit is contained in:
@@ -1116,8 +1116,11 @@ namespace XCharts
|
||||
{
|
||||
if (smoothStartPosDn != Vector3.zero && smoothStartPosUp != Vector3.zero)
|
||||
{
|
||||
CheckClipAndDrawTriangle(vh, smoothStartPosUp, startUp, lp, lineColor, serie.clip);
|
||||
CheckClipAndDrawTriangle(vh, smoothStartPosDn, startDn, lp, lineColor, serie.clip);
|
||||
if (!serie.animation.IsInFadeOut())
|
||||
{
|
||||
CheckClipAndDrawTriangle(vh, smoothStartPosUp, startUp, lp, lineColor, serie.clip);
|
||||
CheckClipAndDrawTriangle(vh, smoothStartPosDn, startDn, lp, lineColor, serie.clip);
|
||||
}
|
||||
smoothPoints.Add(smoothStartPosUp);
|
||||
smoothDownPoints.Add(smoothStartPosDn);
|
||||
}
|
||||
@@ -1352,6 +1355,7 @@ namespace XCharts
|
||||
for (int i = 1; i < linePointList.Count; i++)
|
||||
{
|
||||
ep = linePointList[i];
|
||||
if (serie.animation.CheckDetailBreak(ep, isYAxis)) return false;
|
||||
CheckClipAndDrawLine(vh, sp, ep, lineWidth, lineColor, serie.clip);
|
||||
sp = ep;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user