mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
整理代码
This commit is contained in:
@@ -510,37 +510,5 @@ namespace XCharts
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
internal virtual void SetVerticesDirty()
|
||||
{
|
||||
m_VertsDirty = true;
|
||||
}
|
||||
|
||||
internal virtual void ClearVerticesDirty()
|
||||
{
|
||||
m_VertsDirty = false;
|
||||
}
|
||||
|
||||
internal virtual void SetComponentDirty()
|
||||
{
|
||||
m_ComponentDirty = true;
|
||||
}
|
||||
|
||||
internal virtual void ClearComponentDirty()
|
||||
{
|
||||
m_ComponentDirty = false;
|
||||
}
|
||||
|
||||
public virtual void ClearDirty()
|
||||
{
|
||||
ClearVerticesDirty();
|
||||
ClearComponentDirty();
|
||||
}
|
||||
|
||||
public virtual void SetAllDirty()
|
||||
{
|
||||
SetVerticesDirty();
|
||||
SetComponentDirty();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -389,7 +389,6 @@ namespace XCharts
|
||||
}
|
||||
UpdateSerieGridIndex();
|
||||
RefreshSeriePainterByGridIndex(grid.index);
|
||||
var category = tempAxis.GetData(index, dataZoom);
|
||||
var content = TooltipHelper.GetFormatterContent(tooltip, index, this, dataZoom, isCartesian);
|
||||
TooltipHelper.SetContentAndPosition(tooltip, content, chartRect);
|
||||
tooltip.SetActive(true);
|
||||
@@ -645,7 +644,6 @@ namespace XCharts
|
||||
{
|
||||
if (axis.type != Axis.AxisType.Category) return;
|
||||
if (axis.data.Count > 0) return;
|
||||
var isYAxis = axis is YAxis;
|
||||
if (this is GanttChart)
|
||||
{
|
||||
axis.runtimeData.Clear();
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace XCharts
|
||||
float barGap = GetBarGap();
|
||||
float barWidth = serie.GetBarWidth(categoryWidth);
|
||||
float space = (categoryWidth - barWidth) / 2;
|
||||
float barGapWidth = barWidth + barWidth * barGap;
|
||||
int maxCount = serie.maxShow > 0
|
||||
? (serie.maxShow > showData.Count ? showData.Count : serie.maxShow)
|
||||
: showData.Count;
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace XCharts
|
||||
var grid = GetSerieGridOrDefault(serie);
|
||||
var xCategoryWidth = AxisHelper.GetDataWidth(xAxis, grid.runtimeWidth, showData.Count, dataZoom);
|
||||
var yCategoryWidth = AxisHelper.GetDataWidth(yAxis, grid.runtimeHeight, showData.Count, dataZoom);
|
||||
var barGap = GetBarGap();
|
||||
var barWidth = serie.GetBarWidth(yCategoryWidth);
|
||||
var space = (yCategoryWidth - barWidth) / 2;
|
||||
var dataChanging = false;
|
||||
|
||||
@@ -205,7 +205,6 @@ namespace XCharts
|
||||
serie.showDataName = true;
|
||||
serie.showDataDimension = 2;
|
||||
var timestamp = DateTimeUtil.GetTimestamp();
|
||||
var now = DateTimeUtil.GetDateTime(timestamp);
|
||||
for (int i = 0; i < dataCount; i++)
|
||||
{
|
||||
var start = timestamp + Random.Range(1, 6) * 3600 * 24;
|
||||
|
||||
@@ -386,7 +386,7 @@ namespace XCharts
|
||||
{
|
||||
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
foreach (var assembly in CompilationPipeline.GetAssemblies(AssembliesType.Player))
|
||||
foreach (var assembly in UnityEditor.Compilation.CompilationPipeline.GetAssemblies(UnityEditor.Compilation.AssembliesType.Player))
|
||||
{
|
||||
if (assembly.name.Equals("Unity.TextMeshPro")) return true;
|
||||
}
|
||||
@@ -414,7 +414,6 @@ namespace XCharts
|
||||
Debug.LogError("AddTMPRefence ERROR: can't find: " + asmdefPath);
|
||||
return false;
|
||||
}
|
||||
var oldText = File.ReadAllText(asmdefPath);
|
||||
try
|
||||
{
|
||||
var dest = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user