mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
3.0
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -6,6 +5,5 @@ namespace XCharts.Runtime
|
||||
{
|
||||
[UnityEngine.Scripting.Preserve]
|
||||
internal sealed class CalendarCoordHandler : MainComponentHandler<CalendarCoord>
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using XUGL;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
/// |是否显示极坐标。
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
@@ -6,6 +5,5 @@ namespace XCharts.Runtime
|
||||
[Serializable]
|
||||
[ComponentHandler(null)]
|
||||
public class SingleAxisCoord : CoordSystem
|
||||
{
|
||||
}
|
||||
{ }
|
||||
}
|
||||
Reference in New Issue
Block a user