This commit is contained in:
monitor1394
2022-05-22 22:17:38 +08:00
parent 003f4da9de
commit bafe032bb9
391 changed files with 3718 additions and 2774 deletions

View File

@@ -1,4 +1,3 @@
using System;
using UnityEngine;
@@ -14,7 +13,6 @@ namespace XCharts.Runtime
}
public void UpdateRuntimeData(float chartX, float chartY, float chartWidth, float chartHeight)
{
}
{ }
}
}

View File

@@ -1,4 +1,3 @@
using System;
using UnityEngine;
@@ -6,6 +5,5 @@ namespace XCharts.Runtime
{
[UnityEngine.Scripting.Preserve]
internal sealed class CalendarCoordHandler : MainComponentHandler<CalendarCoord>
{
}
{ }
}

View File

@@ -1,4 +1,3 @@

using System;
using UnityEngine;
using XUGL;

View File

@@ -1,4 +1,3 @@
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,4 +1,3 @@
using System;
using System.Text;
using UnityEngine;
@@ -14,7 +13,7 @@ namespace XCharts.Runtime
{
var grid = component;
grid.painter = chart.painter;
grid.refreshComponent = delegate ()
grid.refreshComponent = delegate()
{
grid.UpdateRuntimeData(chart.chartX, chart.chartY, chart.chartWidth, chart.chartHeight);
chart.OnCoordinateChanged();
@@ -80,9 +79,9 @@ namespace XCharts.Runtime
if (grid.showBorder)
{
var borderWidth = grid.borderWidth == 0 ? chart.theme.axis.lineWidth * 2 : grid.borderWidth;
var borderColor = ChartHelper.IsClearColor(grid.borderColor)
? chart.theme.axis.lineColor
: grid.borderColor;
var borderColor = ChartHelper.IsClearColor(grid.borderColor) ?
chart.theme.axis.lineColor :
grid.borderColor;
UGL.DrawBorder(vh, grid.context.center, grid.context.width - borderWidth,
grid.context.height - borderWidth, borderWidth, borderColor);
}

View File

@@ -1,4 +1,3 @@
using System;
using UnityEngine;

View File

@@ -1,4 +1,3 @@
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Text;
using UnityEngine;
@@ -19,7 +18,7 @@ namespace XCharts.Runtime
{
var grid = component;
grid.painter = chart.painter;
grid.refreshComponent = delegate ()
grid.refreshComponent = delegate()
{
grid.UpdateRuntimeData(chart.chartX, chart.chartY, chart.chartWidth, chart.chartHeight);
chart.OnCoordinateChanged();
@@ -154,10 +153,10 @@ namespace XCharts.Runtime
var tempMinValue = m_SerieDimMin[i];
var tempMaxValue = m_SerieDimMax[i];
if (tempMinValue != axis.context.minValue
|| tempMaxValue != axis.context.maxValue
|| m_LastInterval != axis.interval
|| m_LastSplitNumber != axis.splitNumber)
if (tempMinValue != axis.context.minValue ||
tempMaxValue != axis.context.maxValue ||
m_LastInterval != axis.interval ||
m_LastSplitNumber != axis.splitNumber)
{
m_LastSplitNumber = axis.splitNumber;
m_LastInterval = axis.interval;

View File

@@ -1,4 +1,3 @@

using System;
using UnityEngine;
@@ -20,7 +19,6 @@ namespace XCharts.Runtime
public PolarCoordContext context = new PolarCoordContext();
/// <summary>
/// Whether to show the polor component.
/// |是否显示极坐标。

View File

@@ -1,4 +1,3 @@
using System;
using UnityEngine;

View File

@@ -1,4 +1,3 @@
using System;
using UnityEngine;
using UnityEngine.UI;
@@ -24,7 +23,6 @@ namespace XCharts.Runtime
DrawPolar(vh, component);
}
private void DrawPolar(VertexHelper vh, PolarCoord polar)
{
PolarHelper.UpdatePolarCenter(polar, chart.chartPosition, chart.chartWidth, chart.chartHeight);

View File

@@ -1,4 +1,3 @@
using UnityEngine;
namespace XCharts.Runtime

View File

@@ -1,4 +1,3 @@
using System;
namespace XCharts.Runtime
@@ -6,6 +5,5 @@ namespace XCharts.Runtime
[Serializable]
[ComponentHandler(null)]
public class SingleAxisCoord : CoordSystem
{
}
{ }
}