mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
抽离甘特图
This commit is contained in:
@@ -348,14 +348,14 @@ namespace XCharts
|
||||
{
|
||||
get { return m_ComponentDirty || axisName.anyDirty || axisLabel.anyDirty; }
|
||||
}
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
axisName.ClearComponentDirty();
|
||||
axisLabel.ClearComponentDirty();
|
||||
}
|
||||
|
||||
internal override void ClearVerticesDirty()
|
||||
public override void ClearVerticesDirty()
|
||||
{
|
||||
base.ClearVerticesDirty();
|
||||
axisLine.ClearVerticesDirty();
|
||||
@@ -411,9 +411,9 @@ namespace XCharts
|
||||
public float runtimeZeroYOffset { get; internal set; }
|
||||
public int runtimeMinLogIndex { get { return logBaseE ? (int)Mathf.Log(runtimeMinValue) : (int)Mathf.Log(runtimeMinValue, logBase); } }
|
||||
public int runtimeMaxLogIndex { get { return logBaseE ? (int)Mathf.Log(runtimeMaxValue) : (int)Mathf.Log(runtimeMaxValue, logBase); } }
|
||||
internal bool runtimeLastCheckInverse { get; set; }
|
||||
internal double runtimeMinMaxRange { get { return m_MinMaxValueRange; } set { m_MinMaxValueRange = value; } }
|
||||
internal List<string> runtimeData { get { return m_RuntimeData; } }
|
||||
public bool runtimeLastCheckInverse { get; set; }
|
||||
public double runtimeMinMaxRange { get { return m_MinMaxValueRange; } set { m_MinMaxValueRange = value; } }
|
||||
public List<string> runtimeData { get { return m_RuntimeData; } }
|
||||
public float runtimeScaleWidth { get; internal set; }
|
||||
private int filterStart;
|
||||
private int filterEnd;
|
||||
|
||||
@@ -656,6 +656,7 @@ namespace XCharts
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (chart == null) return;
|
||||
foreach (var dataZoom in chart.dataZooms)
|
||||
{
|
||||
CheckDataZoomScale(dataZoom);
|
||||
|
||||
@@ -228,7 +228,7 @@ namespace XCharts
|
||||
get { return m_ComponentDirty || location.componentDirty || textStyle.componentDirty; }
|
||||
}
|
||||
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
location.ClearComponentDirty();
|
||||
|
||||
@@ -65,10 +65,6 @@ namespace XCharts
|
||||
/// </summary>
|
||||
Candlestick,
|
||||
/// <summary>
|
||||
/// 甘特图。甘特图的data至少包含两个数据:[start, end]
|
||||
/// </summary>
|
||||
Gantt,
|
||||
/// <summary>
|
||||
/// 自定义。
|
||||
/// </summary>
|
||||
Custom,
|
||||
@@ -195,6 +191,7 @@ namespace XCharts
|
||||
/// </summary>
|
||||
Single
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 采样类型
|
||||
/// </summary>
|
||||
@@ -799,7 +796,7 @@ namespace XCharts
|
||||
/// <summary>
|
||||
/// 数据项里的数据维数。
|
||||
/// </summary>
|
||||
public int showDataDimension { get { return m_ShowDataDimension; } internal set { m_ShowDataDimension = value; } }
|
||||
public int showDataDimension { get { return m_ShowDataDimension; } set { m_ShowDataDimension = value; } }
|
||||
/// <summary>
|
||||
/// 在Editor的inpsector上是否显示name参数
|
||||
/// </summary>
|
||||
@@ -954,7 +951,7 @@ namespace XCharts
|
||||
}
|
||||
|
||||
public override bool componentDirty { get { return m_ComponentDirty || titleStyle.componentDirty; } }
|
||||
internal override void ClearVerticesDirty()
|
||||
public override void ClearVerticesDirty()
|
||||
{
|
||||
base.ClearVerticesDirty();
|
||||
symbol.ClearVerticesDirty();
|
||||
@@ -969,7 +966,7 @@ namespace XCharts
|
||||
titleStyle.ClearVerticesDirty();
|
||||
}
|
||||
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
symbol.ClearComponentDirty();
|
||||
@@ -1751,7 +1748,6 @@ namespace XCharts
|
||||
|| type == SerieType.Bar
|
||||
|| type == SerieType.Scatter
|
||||
|| type == SerieType.Heatmap
|
||||
|| type == SerieType.Gantt
|
||||
|| type == SerieType.Candlestick;
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace XCharts
|
||||
m_LabelDirty = true;
|
||||
}
|
||||
|
||||
internal override void ClearVerticesDirty()
|
||||
public override void ClearVerticesDirty()
|
||||
{
|
||||
base.ClearVerticesDirty();
|
||||
foreach (var serie in m_Series)
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace XCharts
|
||||
get { return m_ComponentDirty || location.componentDirty || textStyle.componentDirty || subTextStyle.componentDirty; }
|
||||
}
|
||||
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
location.ClearComponentDirty();
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace XCharts
|
||||
get { return m_ComponentDirty || lineStyle.componentDirty || textStyle.componentDirty; }
|
||||
}
|
||||
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
lineStyle.ClearComponentDirty();
|
||||
|
||||
@@ -339,13 +339,13 @@ namespace XCharts
|
||||
}
|
||||
|
||||
public override bool vertsDirty { get { return m_VertsDirty || location.anyDirty; } }
|
||||
internal override void ClearVerticesDirty()
|
||||
public override void ClearVerticesDirty()
|
||||
{
|
||||
base.ClearVerticesDirty();
|
||||
location.ClearVerticesDirty();
|
||||
}
|
||||
|
||||
internal override void ClearComponentDirty()
|
||||
public override void ClearComponentDirty()
|
||||
{
|
||||
base.ClearComponentDirty();
|
||||
location.ClearComponentDirty();
|
||||
@@ -676,16 +676,18 @@ namespace XCharts
|
||||
|
||||
public void Draw(VertexHelper vh)
|
||||
{
|
||||
var visualMap = chart.visualMap;
|
||||
if (!visualMap.enable || !visualMap.show) return;
|
||||
switch (visualMap.type)
|
||||
foreach (var visualMap in chart.visualMaps)
|
||||
{
|
||||
case VisualMap.Type.Continuous:
|
||||
DrawContinuousVisualMap(vh, visualMap);
|
||||
break;
|
||||
case VisualMap.Type.Piecewise:
|
||||
//DrawPiecewiseVisualMap(vh, visualMap);
|
||||
break;
|
||||
if (!visualMap.enable || !visualMap.show) continue;
|
||||
switch (visualMap.type)
|
||||
{
|
||||
case VisualMap.Type.Continuous:
|
||||
DrawContinuousVisualMap(vh, visualMap);
|
||||
break;
|
||||
case VisualMap.Type.Piecewise:
|
||||
//DrawPiecewiseVisualMap(vh, visualMap);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user