mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 20:28:46 +00:00
重构Title相关代码
This commit is contained in:
@@ -159,6 +159,7 @@ slug: /api
|
||||
- [MainComponentContext](#maincomponentcontext)
|
||||
- [MainComponentHandler](#maincomponenthandler)
|
||||
- [MainComponentHandler<T>](#maincomponenthandlert)
|
||||
- [MainComponentHandler<Title>](#maincomponenthandlertitle)
|
||||
- [MarkArea](#markarea)
|
||||
- [MarkAreaData](#markareadata)
|
||||
- [MarkAreaType](#markareatype)
|
||||
@@ -257,6 +258,7 @@ slug: /api
|
||||
- [ThemeStyle](#themestyle)
|
||||
- [ThemeType](#themetype)
|
||||
- [Title](#title)
|
||||
- [TitleHandler](#titlehandler)
|
||||
- [TitleStyle](#titlestyle)
|
||||
- [TitleTheme](#titletheme)
|
||||
- [Tooltip](#tooltip)
|
||||
@@ -2035,10 +2037,6 @@ public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index
|
||||
|
||||
public float GetSerieTotalWidth<T>(float categoryWidth, float gap, int realBarCount, int gridIndex) where T : Serie
|
||||
|
||||
### BaseChart.GetTitlePosition
|
||||
|
||||
public Vector3 GetTitlePosition(Title title)
|
||||
|
||||
### BaseChart.GetVisualMapOfSerie
|
||||
|
||||
public VisualMap GetVisualMapOfSerie(Serie serie)
|
||||
@@ -2558,6 +2556,10 @@ public string warningInfo
|
||||
public string CheckWarning()
|
||||
检测警告信息。
|
||||
|
||||
### BaseGraph.GetTitlePosition
|
||||
|
||||
public Vector3 GetTitlePosition(Title title)
|
||||
|
||||
### BaseGraph.LocalPointToScreenPoint
|
||||
|
||||
public Vector2 LocalPointToScreenPoint(Vector2 localPoint)
|
||||
@@ -2886,6 +2888,14 @@ public static string ColorToStr(Color color)
|
||||
|
||||
public static string FloatToStr(double value, string numericFormatter = "F", int precision = 0)
|
||||
|
||||
### ChartCached.GetAxisLabelName
|
||||
|
||||
public static string GetAxisLabelName(int index)
|
||||
|
||||
### ChartCached.GetComponentObjectName
|
||||
|
||||
public static string GetComponentObjectName(MainComponent component)
|
||||
|
||||
### ChartCached.GetSerieLabelName
|
||||
|
||||
public static string GetSerieLabelName(string prefix, int i, int j)
|
||||
@@ -2894,6 +2904,14 @@ public static string GetSerieLabelName(string prefix, int i, int j)
|
||||
|
||||
public static string GetString(string prefix, int suffix)
|
||||
|
||||
### ChartCached.GetTypeName
|
||||
|
||||
public static string GetTypeName(Type type)
|
||||
|
||||
### ChartCached.GetTypeName<T>
|
||||
|
||||
public static string GetTypeName<T>()
|
||||
|
||||
### ChartCached.IntToStr
|
||||
|
||||
public static string IntToStr(int value, string numericFormatter = "")
|
||||
@@ -5750,6 +5768,10 @@ class in XCharts.Runtime / 继承自: [MainComponentHandler](#maincomponenthandl
|
||||
|
||||
public T component
|
||||
|
||||
## MainComponentHandler<Title>
|
||||
|
||||
class in / 子类: [TitleHandler](#titlehandler)
|
||||
|
||||
## MarkArea
|
||||
|
||||
class in XCharts.Runtime / 继承自: [MainComponent](#maincomponent)
|
||||
@@ -8676,6 +8698,30 @@ public override void ClearComponentDirty()
|
||||
|
||||
public void OnChanged()
|
||||
|
||||
## TitleHandler
|
||||
|
||||
class in XCharts.Runtime / 继承自: [MainComponentHandler<Title>](#maincomponenthandlertitle)
|
||||
|
||||
### TitleHandler.AddSubTitleLabel
|
||||
|
||||
public static ChartLabel AddSubTitleLabel(Transform parent, Title title, ComponentTheme componentTheme, BaseChart chart = null)
|
||||
|
||||
### TitleHandler.AddTitleLabel
|
||||
|
||||
public static ChartLabel AddTitleLabel(Transform parent, Title title, ComponentTheme componentTheme, BaseChart chart = null)
|
||||
|
||||
### TitleHandler.AddTitleObject
|
||||
|
||||
public static GameObject AddTitleObject(BaseGraph graph, Title title, ComponentTheme componentTheme, int titleSiblingIndex, string objectName = null)
|
||||
|
||||
### TitleHandler.InitComponent
|
||||
|
||||
public override void InitComponent()
|
||||
|
||||
### TitleHandler.OnSerieDataUpdate
|
||||
|
||||
public override void OnSerieDataUpdate(int serieIndex)
|
||||
|
||||
## TitleStyle
|
||||
|
||||
class in XCharts.Runtime / 继承自: [LabelStyle](#labelstyle),[ISerieDataComponent](#iseriedatacomponent),[ISerieComponent](#iseriecomponent)
|
||||
|
||||
Reference in New Issue
Block a user