增加TooltiptriggerOn指定触发条件

This commit is contained in:
monitor1394
2024-03-20 13:34:21 +08:00
parent 99b1624b54
commit 0990b11c1c
17 changed files with 284 additions and 60 deletions

View File

@@ -43,16 +43,21 @@ namespace XCharts.Runtime
public Vector2 graphMaxAnchor { get { return m_GraphMaxAnchor; } }
public Vector2 graphAnchoredPosition { get { return m_GraphAnchoredPosition; } }
/// <summary>
/// The postion of pointer.
/// The postion of pointer move.
/// ||鼠标位置。
/// </summary>
public Vector2 pointerPos { get; protected set; }
public Vector2 clickPos { get; protected set; }
/// <summary>
/// Whether the mouse pointer is in the chart.
/// ||鼠标是否在图表内。
/// </summary>
public bool isPointerInChart
{ get { return m_PointerEventData != null; } }
public bool isPointerInChart { get { return pointerMoveEventData != null; } }
/// <summary>
/// Whether the mouse click the chart.
/// ||鼠标是否点击了图表。
/// </summary>
public bool isPointerClick { get { return pointerClickEventData != null; } }
/// <summary>
/// 警告信息。
/// </summary>