mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 18:30:14 +00:00
[doc] update doc
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
- [MainComponentHandler](#MainComponentHandler)
|
||||
- [MainComponentHandler<T>](#MainComponentHandler<T>)
|
||||
- [MathUtil](#MathUtil)
|
||||
- [ObjectPool<T> where T](#ObjectPool<T> where T)
|
||||
- [Painter](#Painter)
|
||||
- [ParallelChart](#ParallelChart)
|
||||
- [ParallelCoordContext](#ParallelCoordContext)
|
||||
@@ -123,7 +124,7 @@ Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
|
||||
| `GetAxisPositionValue()` |public static double GetAxisPositionValue(float xy, float axisLength, double axisRange, float axisStart, float axisOffset)</br> |
|
||||
| `GetAxisPositionValue()` |public static double GetAxisPositionValue(GridCoord grid, Axis axis, Vector3 pos)</br> |
|
||||
| `GetAxisValueDistance()` |public static float GetAxisValueDistance(GridCoord grid, Axis axis, float scaleWidth, double value)</br>获得数值value在坐标轴上相对起点的距离 |
|
||||
| `GetAxisValueLength()` |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)</br>获得数值value在坐标轴上对于的长度 |
|
||||
| `GetAxisValueLength()` |public static float GetAxisValueLength(GridCoord grid, Axis axis, float scaleWidth, double value)</br>获得数值value在坐标轴上对应的长度 |
|
||||
| `GetAxisValuePosition()` |public static float GetAxisValuePosition(GridCoord grid, Axis axis, float scaleWidth, double value)</br>获得数值value在坐标轴上的坐标位置 |
|
||||
| `GetDataWidth()` |public static float GetDataWidth(Axis axis, float coordinateWidth, int dataCount, DataZoom dataZoom)</br>获得一个类目数据在坐标系中代表的宽度 |
|
||||
| `GetEachWidth()` |public static float GetEachWidth(Axis axis, float coordinateWidth, DataZoom dataZoom = null)</br> |
|
||||
@@ -180,6 +181,8 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
|
||||
| `GetDataZoomOfSerie()` |public void GetDataZoomOfSerie(Serie serie, out DataZoom xDataZoom, out DataZoom yDataZoom)</br> |
|
||||
| `GetGrid()` |public GridCoord GetGrid(Vector2 local)</br> |
|
||||
| `GetGridOfDataZoom()` |public GridCoord GetGridOfDataZoom(DataZoom dataZoom)</br> |
|
||||
| `GetItemColor()` |public Color32 GetItemColor(Serie serie, bool highlight = false)</br> |
|
||||
| `GetItemColor()` |public Color32 GetItemColor(Serie serie, SerieData serieData, bool highlight = false)</br> |
|
||||
| `GetLegendRealShowNameColor()` |public Color32 GetLegendRealShowNameColor(string name)</br> |
|
||||
| `GetLegendRealShowNameIndex()` |public int GetLegendRealShowNameIndex(string name)</br> |
|
||||
| `GetPainter()` |public Painter GetPainter(int index)</br> |
|
||||
@@ -223,6 +226,8 @@ Inherits or Implemented: [BaseGraph](#BaseGraph),[ISerializationCallbackReceiver
|
||||
| `OnScroll()` |public override void OnScroll(PointerEventData eventData)</br> |
|
||||
| `RefreshBasePainter()` |public void RefreshBasePainter()</br> |
|
||||
| `RefreshChart()` |public void RefreshChart()</br>Redraw chart in next frame. |
|
||||
| `RefreshChart()` |public void RefreshChart(int serieIndex)</br>Redraw chart serie in next frame. |
|
||||
| `RefreshChart()` |public void RefreshChart(Serie serie)</br>Redraw chart serie in next frame. |
|
||||
| `RefreshDataZoom()` |public void RefreshDataZoom()</br>在下一帧刷新DataZoom |
|
||||
| `RefreshPainter()` |public void RefreshPainter(int index)</br> |
|
||||
| `RefreshPainter()` |public void RefreshPainter(Serie serie)</br> |
|
||||
@@ -371,9 +376,11 @@ Inherits or Implemented: [Image](#Image)
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| `GetHeight()` |public float GetHeight()</br> |
|
||||
| `GetPosition()` |public Vector3 GetPosition()</br> |
|
||||
| `GetTextHeight()` |public float GetTextHeight()</br> |
|
||||
| `GetTextWidth()` |public float GetTextWidth()</br> |
|
||||
| `GetWidth()` |public float GetWidth()</br> |
|
||||
| `SetActive()` |public void SetActive(bool flag)</br> |
|
||||
| `SetIcon()` |public void SetIcon(Image image)</br> |
|
||||
| `SetIconActive()` |public void SetIconActive(bool flag)</br> |
|
||||
@@ -594,6 +601,18 @@ Inherits or Implemented: [MainComponentHandler](#MainComponentHandler)
|
||||
| `Clamp01()` |public static double Clamp01(double value)</br> |
|
||||
| `Lerp()` |public static double Lerp(double a, double b, double t)</br> |
|
||||
|
||||
## `ObjectPool<T> where T`
|
||||
|
||||
Inherits or Implemented: [new()](#new())
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| `ClearAll()` |public void ClearAll()</br> |
|
||||
| `Get()` |public T Get()</br> |
|
||||
| `new()` |public class ObjectPool<T> where T : new()</br> |
|
||||
| `ObjectPool()` |public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool newIfEmpty = true)</br> |
|
||||
| `Release()` |public void Release(T element)</br> |
|
||||
|
||||
## `Painter`
|
||||
|
||||
Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|
||||
@@ -726,6 +745,7 @@ Inherits or Implemented: [SerieHandler where T](#SerieHandler where T),[Serie](#
|
||||
|
||||
|public method|description|
|
||||
|--|--|
|
||||
| `GetSerieDataLabelOffset()` |public virtual Vector3 GetSerieDataLabelOffset(SerieData serieData, LabelStyle label)</br> |
|
||||
| `GetSerieDataLabelPosition()` |public virtual Vector3 GetSerieDataLabelPosition(SerieData serieData, LabelStyle label)</br> |
|
||||
| `GetSerieDataTitlePosition()` |public virtual Vector3 GetSerieDataTitlePosition(SerieData serieData, TitleStyle titleStyle)</br> |
|
||||
| `InitComponent()` |public override void InitComponent()</br> |
|
||||
@@ -776,7 +796,7 @@ Inherits or Implemented: [Attribute](#Attribute)
|
||||
| `GetSerieEmphasisLabel()` |public static LabelStyle GetSerieEmphasisLabel(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieLabel()` |public static LabelStyle GetSerieLabel(Serie serie, SerieData serieData, bool highlight = false)</br> |
|
||||
| `GetSerieLabelLine()` |public static LabelLine GetSerieLabelLine(Serie serie, SerieData serieData, bool highlight = false)</br> |
|
||||
| `GetSerieSymbol()` |public static SymbolStyle GetSerieSymbol(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSerieSymbol()` |public static SerieSymbol GetSerieSymbol(Serie serie, SerieData serieData)</br> |
|
||||
| `GetSymbolBorder()` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)</br> |
|
||||
| `GetSymbolBorder()` |public static float GetSymbolBorder(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight, float defaultWidth)</br> |
|
||||
| `GetSymbolBorderColor()` |public static Color32 GetSymbolBorderColor(Serie serie, SerieData serieData, ThemeStyle theme, bool highlight)</br> |
|
||||
@@ -930,6 +950,8 @@ Inherits or Implemented: [MaskableGraphic](#MaskableGraphic)
|
||||
| `GetVertialDire()` |public static Vector3 GetVertialDire(Vector3 dire)</br> |
|
||||
| `IsClearColor()` |public static bool IsClearColor(Color color)</br> |
|
||||
| `IsClearColor()` |public static bool IsClearColor(Color32 color)</br> |
|
||||
| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List<Vector2> polyons)</br> |
|
||||
| `IsPointInPolygon()` |public static bool IsPointInPolygon(Vector3 p, List<Vector3> polyons)</br> |
|
||||
| `IsPointInTriangle()` |public static bool IsPointInTriangle(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 check)</br> |
|
||||
| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color color1, Color color2)</br> |
|
||||
| `IsValueEqualsColor()` |public static bool IsValueEqualsColor(Color32 color1, Color32 color2)</br> |
|
||||
|
||||
Reference in New Issue
Block a user