整理组件结构

This commit is contained in:
monitor1394
2019-10-14 18:13:08 +08:00
parent 63ad7fc620
commit e753089787
34 changed files with 111 additions and 31 deletions

View File

@@ -8,7 +8,7 @@ namespace XCharts
/// 动画表现。
/// </summary>
[System.Serializable]
public class Animation
public class Animation : SubComponent
{
public enum Easing
{

View File

@@ -8,7 +8,7 @@ namespace XCharts
/// 区域填充样式。
/// </summary>
[System.Serializable]
public class AreaStyle
public class AreaStyle : SubComponent
{
/// <summary>
/// Origin position of area.

View File

@@ -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;

View File

@@ -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;

View File

@@ -8,7 +8,7 @@ namespace XCharts
/// 坐标轴名称。
/// </summary>
[Serializable]
public class AxisName
public class AxisName : SubComponent
{
/// <summary>
/// the location of axis name.

View File

@@ -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;

View File

@@ -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;

View File

@@ -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();

View File

@@ -7,7 +7,7 @@ namespace XCharts
/// 图形样式。
/// </summary>
[System.Serializable]
public class ItemStyle
public class ItemStyle : SubComponent
{
/// <summary>
/// 线的类型。

View File

@@ -6,7 +6,7 @@ namespace XCharts
/// <summary>
/// </summary>
[Serializable]
public class LineArrow
public class LineArrow : SubComponent
{
public enum Position
{

View File

@@ -9,7 +9,7 @@ namespace XCharts
/// 注: 修改 lineStyle 中的颜色不会影响图例颜色,如果需要图例颜色和折线图颜色一致,需修改 itemStyle.color线条颜色默认也会取改颜色。
/// </summary>
[System.Serializable]
public class LineStyle
public class LineStyle : SubComponent
{
/// <summary>
/// 线的类型。

View File

@@ -8,7 +8,7 @@ namespace XCharts
/// 位置类型。通过Align快速设置大体位置再通过leftrighttopbottom微调具体位置。
/// </summary>
[Serializable]
public class Location : IPropertyChanged, IEquatable<Location>
public class Location : SubComponent, IPropertyChanged, IEquatable<Location>
{
/// <summary>
/// 对齐方式

View File

@@ -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;

View File

@@ -7,7 +7,7 @@ namespace XCharts
/// 图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等。
/// </summary>
[System.Serializable]
public class SerieLabel
public class SerieLabel : SubComponent
{
/// <summary>
/// The position of label.

View File

@@ -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;