mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-29 20:58:47 +00:00
修复Overlay模式下不显示Tooltip的问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
* (2019.12.16) 修复`Overlay`模式下不显示`Tooltip`的问题
|
||||||
* (2019.12.15) 增加`Title`的`TextStyle`支持
|
* (2019.12.15) 增加`Title`的`TextStyle`支持
|
||||||
* (2019.12.11) 修复`Legend`都隐藏时`Value轴`还显示数值的问题
|
* (2019.12.11) 修复`Legend`都隐藏时`Value轴`还显示数值的问题
|
||||||
* (2019.12.11) 修复`Series->Data->Size`重置为0后设置无效的问题
|
* (2019.12.11) 修复`Series->Data->Size`重置为0后设置无效的问题
|
||||||
|
|||||||
@@ -459,8 +459,9 @@ namespace XCharts
|
|||||||
{
|
{
|
||||||
if (canvas == null) return;
|
if (canvas == null) return;
|
||||||
Vector2 local;
|
Vector2 local;
|
||||||
|
var cam = canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : canvas.worldCamera;
|
||||||
if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform,
|
if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform,
|
||||||
Input.mousePosition, canvas.worldCamera, out local))
|
Input.mousePosition, cam, out local))
|
||||||
{
|
{
|
||||||
pointerPos = Vector2.zero;
|
pointerPos = Vector2.zero;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace XCharts
|
|||||||
public class XChartsMgr : MonoBehaviour
|
public class XChartsMgr : MonoBehaviour
|
||||||
{
|
{
|
||||||
public const string version = "1.0.5";
|
public const string version = "1.0.5";
|
||||||
public const int date = 20191215;
|
public const int date = 20191216;
|
||||||
|
|
||||||
[SerializeField] private string m_NowVersion;
|
[SerializeField] private string m_NowVersion;
|
||||||
[SerializeField] private string m_NewVersion;
|
[SerializeField] private string m_NewVersion;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"date": "20191215",
|
"date": "20191216",
|
||||||
"checkdate": "20191215",
|
"checkdate": "20191216",
|
||||||
"desc": "欢迎 Github 上点 Star 支持,非常感谢!",
|
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
|
||||||
"homepage": "https://github.com/monitor1394/unity-ugui-XCharts"
|
"homepage": "https://github.com/monitor1394/unity-ugui-XCharts"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user