From e0f4ed946df2613781ff1e31912fe707ec68edb5 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Thu, 9 Mar 2023 22:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=9E=E8=B0=83API?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/en/api.md | 28 ++++++++++++++++++++++++++++ Documentation~/zh/api.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/Documentation~/en/api.md b/Documentation~/en/api.md index 980de0cd..c212cd11 100644 --- a/Documentation~/en/api.md +++ b/Documentation~/en/api.md @@ -155,6 +155,24 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver |public method|description| |--|--| +| onAxisPointerValueChanged |public Action<Axis, double> onAxisPointerValueChanged
坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue | +| onDraw |public Action<VertexHelper> onDraw
自定义绘制回调。在绘制Serie前调用。 | +| onDrawAfterSerie |public Action<VertexHelper, Serie> onDrawAfterSerie
自定义Serie绘制回调。在每个Serie绘制完后调用。 | +| onDrawBeforeSerie |public Action<VertexHelper, Serie> onDrawBeforeSerie
自定义Serie绘制回调。在每个Serie绘制完前调用。 | +| onDrawTop |public Action<VertexHelper> onDrawTop
自定义Top层绘制回调。在绘制Tooltip前调用。 | +| onDrawUpper |public Action<VertexHelper> onDrawUpper
自定义Upper层绘制回调。在绘制Tooltip前调用。 | +| onInit |public Action onInit
The callback function of chart init. | +| onLegendClick |public Action<Legend, int, string, bool> onLegendClick
the callback function of click legend. | +| onLegendEnter |public Action<Legend, int, string> onLegendEnter
the callback function of enter legend. | +| onLegendExit |public Action<Legend, int, string> onLegendExit
the callback function of exit legend. | +| onPointerClickBar |public Action<PointerEventData, int> onPointerClickBar
the callback function of click bar. | +| onPointerClickPie |public Action<PointerEventData, int, int> onPointerClickPie
the callback function of pointer click pie area. | +| onPointerEnterPie |public Action<int, int> onPointerEnterPie
the callback function of pointer enter pie area. | +| onSerieClick |public Action<SerieEventData> onSerieClick
the callback function of pointer click serie. | +| onSerieDown |public Action<SerieEventData> onSerieDown
the callback function of pointer down serie. | +| onSerieEnter |public Action<SerieEventData> onSerieEnter
the callback function of pointer enter serie. | +| onSerieExit |public Action<SerieEventData> onSerieExit
the callback function of pointer exit serie. | +| onUpdate |public Action onUpdate
The callback function of chart update. | | AddChartComponent() |public MainComponent AddChartComponent(Type type)| | AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent| | AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent| @@ -325,6 +343,15 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandle |public method|description| |--|--| +| onBeginDrag |public Action<PointerEventData, BaseGraph> onBeginDrag
鼠标开始拖拽回调。 | +| onDrag |public Action<PointerEventData, BaseGraph> onDrag
鼠标拖拽回调。 | +| onEndDrag |public Action<PointerEventData, BaseGraph> onEndDrag
鼠标结束拖拽回调。 | +| onPointerClick |public Action<PointerEventData, BaseGraph> onPointerClick
鼠标点击回调。 | +| onPointerDown |public Action<PointerEventData, BaseGraph> onPointerDown
鼠标按下回调。 | +| onPointerEnter |public Action<PointerEventData, BaseGraph> onPointerEnter
鼠标进入回调。 | +| onPointerExit |public Action<PointerEventData, BaseGraph> onPointerExit
鼠标退出回调。 | +| onPointerUp |public Action<PointerEventData, BaseGraph> onPointerUp
鼠标弹起回调。 | +| onScroll |public Action<PointerEventData, BaseGraph> onScroll
鼠标滚动回调。 | | CheckWarning() |public string CheckWarning()
检测警告信息。 | | OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)| | OnDrag() |public virtual void OnDrag(PointerEventData eventData)| @@ -719,6 +746,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic) |public method|description| |--|--| +| onPopulateMesh |public Action<VertexHelper, Painter> onPopulateMesh| | CheckRefresh() |public void CheckRefresh()| | Init() |public void Init()| | Refresh() |public void Refresh()| diff --git a/Documentation~/zh/api.md b/Documentation~/zh/api.md index 42d4dae3..ffb9d368 100644 --- a/Documentation~/zh/api.md +++ b/Documentation~/zh/api.md @@ -155,6 +155,24 @@ Inherits or Implemented: [BaseGraph](#basegraph),[ISerializationCallbackReceiver |public method|description| |--|--| +| onAxisPointerValueChanged |public Action<Axis, double> onAxisPointerValueChanged
坐标轴变更数据索引时回调。参数:axis, dataIndex/dataValue | +| onDraw |public Action<VertexHelper> onDraw
自定义绘制回调。在绘制Serie前调用。 | +| onDrawAfterSerie |public Action<VertexHelper, Serie> onDrawAfterSerie
自定义Serie绘制回调。在每个Serie绘制完后调用。 | +| onDrawBeforeSerie |public Action<VertexHelper, Serie> onDrawBeforeSerie
自定义Serie绘制回调。在每个Serie绘制完前调用。 | +| onDrawTop |public Action<VertexHelper> onDrawTop
自定义Top层绘制回调。在绘制Tooltip前调用。 | +| onDrawUpper |public Action<VertexHelper> onDrawUpper
自定义Upper层绘制回调。在绘制Tooltip前调用。 | +| onInit |public Action onInit
图表的初始化完成回调。 | +| onLegendClick |public Action<Legend, int, string, bool> onLegendClick
点击图例按钮回调。参数:legendIndex, legendName, show | +| onLegendEnter |public Action<Legend, int, string> onLegendEnter
鼠标进入图例回调。参数:legendIndex, legendName | +| onLegendExit |public Action<Legend, int, string> onLegendExit
鼠标退出图例回调。参数:legendIndex, legendName | +| onPointerClickBar |public Action<PointerEventData, int> onPointerClickBar
点击柱形图柱条回调。参数:eventData, dataIndex | +| onPointerClickPie |public Action<PointerEventData, int, int> onPointerClickPie
点击饼图区域回调。参数:PointerEventData,SerieIndex,SerieDataIndex | +| onPointerEnterPie |public Action<int, int> onPointerEnterPie
鼠标进入和离开饼图区域回调,SerieDataIndex为-1时表示离开。参数:PointerEventData,SerieIndex,SerieDataIndex | +| onSerieClick |public Action<SerieEventData> onSerieClick
鼠标点击Serie回调。 | +| onSerieDown |public Action<SerieEventData> onSerieDown
鼠标按下Serie回调。 | +| onSerieEnter |public Action<SerieEventData> onSerieEnter
鼠标进入Serie回调。 | +| onSerieExit |public Action<SerieEventData> onSerieExit
鼠标离开Serie回调。 | +| onUpdate |public Action onUpdate
图表的Update回调。 | | AddChartComponent() |public MainComponent AddChartComponent(Type type)| | AddChartComponent<T>() |public T AddChartComponent<T>() where T : MainComponent| | AddChartComponentWhenNoExist<T>() |public T AddChartComponentWhenNoExist<T>() where T : MainComponent| @@ -325,6 +343,15 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic),[IPointerDownHandle |public method|description| |--|--| +| onBeginDrag |public Action<PointerEventData, BaseGraph> onBeginDrag
鼠标开始拖拽回调。 | +| onDrag |public Action<PointerEventData, BaseGraph> onDrag
鼠标拖拽回调。 | +| onEndDrag |public Action<PointerEventData, BaseGraph> onEndDrag
鼠标结束拖拽回调。 | +| onPointerClick |public Action<PointerEventData, BaseGraph> onPointerClick
鼠标点击回调。 | +| onPointerDown |public Action<PointerEventData, BaseGraph> onPointerDown
鼠标按下回调。 | +| onPointerEnter |public Action<PointerEventData, BaseGraph> onPointerEnter
鼠标进入回调。 | +| onPointerExit |public Action<PointerEventData, BaseGraph> onPointerExit
鼠标退出回调。 | +| onPointerUp |public Action<PointerEventData, BaseGraph> onPointerUp
鼠标弹起回调。 | +| onScroll |public Action<PointerEventData, BaseGraph> onScroll
鼠标滚动回调。 | | CheckWarning() |public string CheckWarning()
检测警告信息。 | | OnBeginDrag() |public virtual void OnBeginDrag(PointerEventData eventData)| | OnDrag() |public virtual void OnDrag(PointerEventData eventData)| @@ -719,6 +746,7 @@ Inherits or Implemented: [MaskableGraphic](#maskablegraphic) |public method|description| |--|--| +| onPopulateMesh |public Action<VertexHelper, Painter> onPopulateMesh| | CheckRefresh() |public void CheckRefresh()| | Init() |public void Init()| | Refresh() |public void Refresh()|