This commit is contained in:
monitor1394
2022-05-22 22:17:38 +08:00
parent 003f4da9de
commit bafe032bb9
391 changed files with 3718 additions and 2774 deletions

View File

@@ -1,4 +1,3 @@

using System.Collections.Generic;
using UnityEngine;
@@ -57,6 +56,7 @@ namespace XCharts.Runtime
/// </summary>
Percent
}
[SerializeField] private bool m_Enable = true;
[SerializeField] private FilterMode m_FilterMode;
[SerializeField] private List<int> m_XAxisIndexs = new List<int>() { 0 };
@@ -448,11 +448,11 @@ namespace XCharts.Runtime
start = context.y + context.height * m_Start / 100;
end = context.y + context.height * m_End / 100;
return ChartHelper.IsInRect(pos, context.x, context.x + context.width, start, end);
default: return false;
default:
return false;
}
}
public bool IsInSelectedZoom(int totalIndex, int index, bool invert)
{
if (totalIndex <= 0)
@@ -486,7 +486,8 @@ namespace XCharts.Runtime
case Orient.Vertical:
start = context.y + context.height * m_Start / 100;
return ChartHelper.IsInRect(pos, context.x, context.x + context.width, start - 10, start + 10);
default: return false;
default:
return false;
}
}
@@ -507,11 +508,11 @@ namespace XCharts.Runtime
case Orient.Vertical:
end = context.y + context.height * m_End / 100;
return ChartHelper.IsInRect(pos, context.x, context.x + context.width, end - 10, end + 10);
default: return false;
default:
return false;
}
}
public bool IsContainsAxis(Axis axis)
{
if (axis == null)