mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 22:10:11 +00:00
3.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user