mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-27 19:50:10 +00:00
增加Chart的onSerieClick,onSerieDown,onSerieEnter和onSerieExit回调
This commit is contained in:
@@ -69,6 +69,8 @@ slug: /api
|
||||
- [SerieDataComponentAttribute](#seriedatacomponentattribute)
|
||||
- [SerieDataContext](#seriedatacontext)
|
||||
- [SerieDataExtraFieldAttribute](#seriedataextrafieldattribute)
|
||||
- [SerieEventData](#serieeventdata)
|
||||
- [SerieEventDataPool](#serieeventdatapool)
|
||||
- [SerieHandler](#seriehandler)
|
||||
- [SerieHandler<T>](#seriehandlert)
|
||||
- [SerieHandlerAttribute](#seriehandlerattribute)
|
||||
@@ -870,6 +872,19 @@ Inherits or Implemented: [Attribute](#attribute)
|
||||
| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6)|
|
||||
| SerieDataExtraFieldAttribute() |public SerieDataExtraFieldAttribute(string field1, string field2, string field3, string field4, string field5, string field6, string field7)|
|
||||
|
||||
## SerieEventData
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| Reset() |public void Reset()|
|
||||
|
||||
## SerieEventDataPool
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| Get() |public static SerieEventData Get(Vector3 pos, int serieIndex, int dataIndex, int dimension, double value)|
|
||||
| Release() |public static void Release(SerieEventData toRelease)|
|
||||
|
||||
## SerieHandler
|
||||
|
||||
|public method|description|
|
||||
@@ -896,6 +911,7 @@ Inherits or Implemented: [Attribute](#attribute)
|
||||
| RefreshLabelNextFrame() |public virtual void RefreshLabelNextFrame() { }|
|
||||
| RemoveComponent() |public virtual void RemoveComponent() { }|
|
||||
| Update() |public virtual void Update() { }|
|
||||
| UpdateSerieContext() |public virtual void UpdateSerieContext() { }|
|
||||
|
||||
## SerieHandler<T>
|
||||
|
||||
@@ -904,6 +920,8 @@ Inherits or Implemented: [SerieHandler where T](#seriehandler where t),[Serie](#
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| DrawLabelLineSymbol() |public void DrawLabelLineSymbol(VertexHelper vh, LabelLine labelLine, Vector3 startPos, Vector3 endPos, Color32 defaultColor)|
|
||||
| GetPointerItemDataDimension() |public override int GetPointerItemDataDimension()|
|
||||
| GetPointerItemDataIndex() |public override int GetPointerItemDataIndex()|
|
||||
| GetSerieDataAutoColor() |public virtual Color GetSerieDataAutoColor(SerieData serieData)|
|
||||
| GetSerieDataLabelOffset() |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)|
|
||||
| GetSerieDataLabelPosition() |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)|
|
||||
@@ -912,6 +930,8 @@ Inherits or Implemented: [SerieHandler where T](#seriehandler where t),[Serie](#
|
||||
| OnLegendButtonClick() |public override void OnLegendButtonClick(int index, string legendName, bool show)|
|
||||
| OnLegendButtonEnter() |public override void OnLegendButtonEnter(int index, string legendName)|
|
||||
| OnLegendButtonExit() |public override void OnLegendButtonExit(int index, string legendName)|
|
||||
| OnPointerClick() |public override void OnPointerClick(PointerEventData eventData)|
|
||||
| OnPointerDown() |public override void OnPointerDown(PointerEventData eventData)|
|
||||
| RefreshEndLabelInternal() |public virtual void RefreshEndLabelInternal()|
|
||||
| RefreshLabelInternal() |public override void RefreshLabelInternal()|
|
||||
| RefreshLabelNextFrame() |public override void RefreshLabelNextFrame()|
|
||||
|
||||
@@ -65,6 +65,8 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2023.03.09) 增加`Chart`的`onSerieClick`,`onSerieDown`,`onSerieEnter`和`onSerieExit`回调
|
||||
* (2023.03.09) 修复`Pie`的点击选中偏移不生效的问题
|
||||
* (2023.03.04) 增加`Legend`的`Positions`可自定义图例的位置
|
||||
* (2023.03.03) 修复`Animation`变更动画可能无效的问题
|
||||
* (2023.02.28) 修复`Legend`点击时`Serie`的`Label`不刷新的问题
|
||||
|
||||
Reference in New Issue
Block a user