mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 05:10:12 +00:00
整理组件结构
This commit is contained in:
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 动画表现。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class Animation
|
||||
public class Animation : SubComponent
|
||||
{
|
||||
public enum Easing
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 区域填充样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AreaStyle
|
||||
public class AreaStyle : SubComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// Origin position of area.
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 坐标轴刻度标签的相关设置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisLabel
|
||||
public class AxisLabel : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show = true;
|
||||
[SerializeField] private string m_Formatter;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts
|
||||
/// 坐标轴的分隔线。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AxisLine
|
||||
public class AxisLine : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show;
|
||||
[SerializeField] private bool m_OnZero;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 坐标轴名称。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisName
|
||||
public class AxisName : SubComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// the location of axis name.
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace XCharts
|
||||
/// 坐标轴在 grid 区域中的分隔区域,默认不显示。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class AxisSplitArea
|
||||
public class AxisSplitArea : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show;
|
||||
[SerializeField] private List<Color> m_Color;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 坐标轴刻度相关设置。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class AxisTick
|
||||
public class AxisTick : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show;
|
||||
[SerializeField] private bool m_AlignWithLabel;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts
|
||||
/// 高亮的图形样式和文本标签样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class Emphasis
|
||||
public class Emphasis : SubComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show;
|
||||
[SerializeField] private SerieLabel m_Label = new SerieLabel();
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts
|
||||
/// 图形样式。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class ItemStyle
|
||||
public class ItemStyle : SubComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// 线的类型。
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace XCharts
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LineArrow
|
||||
public class LineArrow : SubComponent
|
||||
{
|
||||
public enum Position
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace XCharts
|
||||
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color,线条颜色默认也会取改颜色。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class LineStyle
|
||||
public class LineStyle : SubComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// 线的类型。
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace XCharts
|
||||
/// 位置类型。通过Align快速设置大体位置,再通过left,right,top,bottom微调具体位置。
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class Location : IPropertyChanged, IEquatable<Location>
|
||||
public class Location : SubComponent, IPropertyChanged, IEquatable<Location>
|
||||
{
|
||||
/// <summary>
|
||||
/// 对齐方式
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace XCharts
|
||||
/// 系列中的一个数据项。可存储数据名和1-n维的数据。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class SerieData
|
||||
public class SerieData : SubComponent
|
||||
{
|
||||
[SerializeField] private string m_Name;
|
||||
[SerializeField] private bool m_Selected;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace XCharts
|
||||
/// 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class SerieLabel
|
||||
public class SerieLabel : SubComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// The position of label.
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace XCharts
|
||||
/// 系列数据项的标记的图形
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class SerieSymbol
|
||||
public class SerieSymbol : SubComponent
|
||||
{
|
||||
[SerializeField] private SerieSymbolType m_Type = SerieSymbolType.EmptyCircle;
|
||||
[SerializeField] private SerieSymbolSizeType m_SizeType = SerieSymbolSizeType.Custom;
|
||||
|
||||
Reference in New Issue
Block a user