优化结构,分离为XCharts和XChartsDemo两部分

This commit is contained in:
monitor1394
2019-11-09 07:00:58 +08:00
parent aef05a53ef
commit d45e2695a5
17 changed files with 6392 additions and 46 deletions

View File

@@ -1,6 +1,8 @@
# 更新日志 # 更新日志
* (2019.11.09) 优化结构,分离为`XCharts``XChartsDemo`两部分
* (2019.11.05) 发布`v1.0.4`版本
* (2019.11.05) 增加`Radar`雷达组件文本样式参数配置支持 * (2019.11.05) 增加`Radar`雷达组件文本样式参数配置支持
* (2019.11.04) 修复`Unity2018.3`以下版本代码不兼容的问题 * (2019.11.04) 修复`Unity2018.3`以下版本代码不兼容的问题
* (2019.11.04) 优化`SerieLabel`过多时引起的性能问题 * (2019.11.04) 优化`SerieLabel`过多时引起的性能问题

View File

@@ -1,8 +1,6 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 5e6b0fb015bc6524d8bab146b6f2ba3a guid: 5e6b0fb015bc6524d8bab146b6f2ba3a
folderAsset: yes folderAsset: yes
timeCreated: 1553641866
licenseType: Free
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@@ -1,17 +0,0 @@
{
"name": "XCharts.Editor.Demo",
"references": [
"XCharts.Demo.Runtime",
"XCharts.Runtime"
],
"optionalUnityReferences": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": []
}

8
Assets/XChartsDemo.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 926cd5f4d8406451cb0c54e3ae6f71cd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 05b7d15b7a92f4c1eb56dbf47522bf6c guid: e7c05fe198b1e46eabc5896450bf9cec
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@@ -8,7 +8,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace XCharts namespace XChartsDemo
{ {
[CustomPropertyDrawer(typeof(ChartModule), true)] [CustomPropertyDrawer(typeof(ChartModule), true)]
public class ChartModuleDrawer : PropertyDrawer public class ChartModuleDrawer : PropertyDrawer

View File

@@ -8,7 +8,7 @@
using UnityEditor; using UnityEditor;
namespace XCharts namespace XChartsDemo
{ {
/// <summary> /// <summary>
/// Editor class used to edit UI BaseChart. /// Editor class used to edit UI BaseChart.

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7a51c10c0ca30408fba6f8e59145ce69
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -9,8 +9,9 @@ using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using XCharts;
namespace XCharts namespace XChartsDemo
{ {
[System.Serializable] [System.Serializable]
public class ChartModule public class ChartModule
@@ -34,7 +35,7 @@ namespace XCharts
[SerializeField] private Color m_ButtonNormalColor; [SerializeField] private Color m_ButtonNormalColor;
[SerializeField] private Color m_ButtonSelectedColor; [SerializeField] private Color m_ButtonSelectedColor;
[SerializeField] private Color m_ButtonHighlightColor; [SerializeField] private Color m_ButtonHighlightColor;
[SerializeField] private List<ChartModule> m_ChartModule; [SerializeField] private List<ChartModule> m_ChartModule = new List<ChartModule>();
private GameObject m_BtnClone; private GameObject m_BtnClone;
private Theme m_SelectedTheme; private Theme m_SelectedTheme;

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 85bc0178fe453471fb2706bf81a09235 guid: f81ca580204024b8db33b4646c549c4f
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 2d3606aaaf73f468984f4615b496f408 guid: fdfb9e4f5faa4431d936da787c337fc9
AssemblyDefinitionImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:

View File

@@ -132,25 +132,21 @@ XCharts的图表由组件和数据组成。不同的组件和数据可以组合
``` js ``` js
<root> <root>
├── Demo // Demo ├── Demo // Demo
── Editor ── Runtime
├── ChartModuleDrawer.cs ├── Demo_Dynamic.cs
── DemoEditor.cs ── Demo_LargeData.cs
├── Runtime ├── Demo_PieChart.cs
├── Demo_Dynamic.cs ├── Demo_Test.cs
├── Demo_LargeData.cs ├── Demo.cs
├── Demo_PieChart.cs ├── Demo00_CheatSheet.cs
├── Demo_Test.cs ├── Demo10_LineChart.cs
├── Demo.cs ├── Demo11_AddSinCurve.cs
├── Demo00_CheatSheet.cs ├── Demo12_CustomDrawing.cs
├── Demo10_LineChart.cs ├── Demo13_LineSimple.cs
├── Demo11_AddSinCurve.cs ├── Demo20_BarChart.cs
├── Demo12_CustomDrawing.cs ├── Demo30_PieChart.cs
├── Demo13_LineSimple.cs ├── Demo50_Scatter.cs
── Demo20_BarChart.cs ── Demo60_Heatmap.cs
│ │ ├── Demo30_PieChart.cs
│ │ ├── Demo50_Scatter.cs
│ │ ├── Demo60_Heatmap.cs
│ └── demo-xchart.unity
├── Editor // Editor相关代码 ├── Editor // Editor相关代码
│ ├── PropertyDrawers // 组件Drawer │ ├── PropertyDrawers // 组件Drawer
│ │ ├── AnimationDrawer.cs │ │ ├── AnimationDrawer.cs