mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 05:50:09 +00:00
3.0
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
@@ -12,6 +11,7 @@ namespace XCharts.Runtime
|
||||
public virtual bool vertsDirty { get { return m_VertsDirty; } }
|
||||
public virtual bool componentDirty { get { return m_ComponentDirty; } }
|
||||
public virtual bool useDataNameForColor { get { return false; } }
|
||||
public virtual bool titleJustForSerie { get { return false; } }
|
||||
public virtual bool useSortData { get { return false; } }
|
||||
public bool anyDirty { get { return vertsDirty || componentDirty; } }
|
||||
public Painter painter { get { return m_Painter; } set { m_Painter = value; } }
|
||||
@@ -26,7 +26,6 @@ namespace XCharts.Runtime
|
||||
|
||||
public SerieHandler handler { get; set; }
|
||||
|
||||
|
||||
public virtual void SetVerticesDirty()
|
||||
{
|
||||
m_VertsDirty = true;
|
||||
@@ -48,8 +47,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
|
||||
public virtual void ClearData()
|
||||
{
|
||||
}
|
||||
{ }
|
||||
|
||||
public virtual void ClearDirty()
|
||||
{
|
||||
@@ -70,12 +68,10 @@ namespace XCharts.Runtime
|
||||
}
|
||||
|
||||
public virtual void OnDataUpdate()
|
||||
{
|
||||
}
|
||||
{ }
|
||||
|
||||
public virtual void OnBeforeSerialize()
|
||||
{
|
||||
}
|
||||
{ }
|
||||
|
||||
public virtual void OnAfterDeserialize()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -8,10 +7,11 @@ namespace XCharts.Runtime
|
||||
public class ChildComponent
|
||||
{
|
||||
public virtual int index { get; set; }
|
||||
|
||||
[NonSerialized] protected bool m_VertsDirty;
|
||||
[NonSerialized] protected bool m_ComponentDirty;
|
||||
[NonSerialized] protected Painter m_Painter;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 图表重绘标记。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
@@ -11,6 +9,5 @@ namespace XCharts.Runtime
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public abstract class CoordSystem : MainComponent
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
@@ -53,13 +52,9 @@ namespace XCharts.Runtime
|
||||
m_ComponentDirty = false;
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
}
|
||||
public virtual void Reset() { }
|
||||
|
||||
public virtual void ClearData()
|
||||
{
|
||||
}
|
||||
public virtual void ClearData() { }
|
||||
|
||||
public virtual void ClearDirty()
|
||||
{
|
||||
@@ -73,9 +68,7 @@ namespace XCharts.Runtime
|
||||
SetComponentDirty();
|
||||
}
|
||||
|
||||
public virtual void SetDefaultValue()
|
||||
{
|
||||
}
|
||||
public virtual void SetDefaultValue() { }
|
||||
|
||||
public virtual void OnRemove()
|
||||
{
|
||||
@@ -104,6 +97,7 @@ namespace XCharts.Runtime
|
||||
public virtual void Update() { }
|
||||
public virtual void DrawBase(VertexHelper vh) { }
|
||||
public virtual void DrawTop(VertexHelper vh) { }
|
||||
public virtual void OnSerieDataUpdate(int serieIndex) { }
|
||||
public virtual void OnPointerClick(PointerEventData eventData) { }
|
||||
public virtual void OnPointerDown(PointerEventData eventData) { }
|
||||
public virtual void OnPointerUp(PointerEventData eventData) { }
|
||||
@@ -117,13 +111,13 @@ namespace XCharts.Runtime
|
||||
}
|
||||
|
||||
public abstract class MainComponentHandler<T> : MainComponentHandler
|
||||
where T : MainComponent
|
||||
where T : MainComponent
|
||||
{
|
||||
public T component { get; internal set; }
|
||||
|
||||
internal override void SetComponent(MainComponent component)
|
||||
{
|
||||
this.component = (T)component;
|
||||
this.component = (T) component;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
namespace XCharts.Runtime
|
||||
{
|
||||
public class MainComponentContext
|
||||
|
||||
Reference in New Issue
Block a user