Compare commits

...

138 Commits

Author SHA1 Message Date
monitor1394
9c26716e7c 3.7.0 2023-06-08 08:18:01 +08:00
monitor1394
c8a5560a67 修复Serie的名字带_线导致Legend无法触发的问题 (#252) 2023-06-07 08:05:57 +08:00
monitor1394
ad707ec14d Merge pull request #260 from svr2kos2/master
修复Serie名中包含下划线时,会导致Legend组件无法点击的问题
2023-06-04 22:28:53 +08:00
monitor1394
b6c0962ff3 更新文档 2023-06-04 21:52:37 +08:00
monitor1394
86e66984d4 增加HelpDoc帮助文档跳转 2023-06-04 21:52:23 +08:00
svr2kos2
04d646ed8c 修复Serie名中包含下划线时,会导致Legend组件无法点击的问题
由于实现方法是index和name使用下划线合并到物体名称中, 之后在接受事件时用下划线分割后获取index和name. 修改限制分割为2部分
2023-05-30 14:16:57 +08:00
monitor1394
0f83a70b54 更新文档 2023-05-30 07:32:24 +08:00
monitor1394
6b6bf9d9da 更新文档 2023-05-28 22:42:49 +08:00
monitor1394
4c1432a535 Line支持Clip 2023-05-20 08:52:02 +08:00
monitor1394
bab788d4cb Line支持Clip 2023-05-11 08:34:04 +08:00
monitor1394
fab683f5e1 增加AxisMinMaxAuto范围类型 2023-05-10 23:29:31 +08:00
monitor1394
29c9f59762 Line支持Clip 2023-05-09 13:25:42 +08:00
monitor1394
c29a22c576 Line支持Clip 2023-05-09 07:17:27 +08:00
monitor1394
5568c2fd76 3.7.0 2023-05-08 23:31:03 +08:00
monitor1394
5c231514a5 Line支持Clip 2023-05-08 23:24:50 +08:00
monitor1394
93abffaaaa DataZoom的minShowNum默认设置为2 2023-05-08 23:23:11 +08:00
monitor1394
a9c801c077 优化AxisMinMax类型范围计算 2023-05-04 23:33:45 +08:00
monitor1394
2d35f77740 修复AxisLabel在数据都是小于1的浮点数时显示Label格式不对的问题 2023-05-04 13:25:29 +08:00
monitor1394
529c784ee2 修复Theme在修改默认主题的参数后运行被重置的问题 2023-05-04 08:14:41 +08:00
monitor1394
fdd686b038 增加Symbol选择Custom类型时的Warning提示 2023-05-04 07:57:04 +08:00
monitor1394
36d629b29a 修复DataZoom在多个图表时可能异常的问题 (#252) 2023-04-15 08:45:27 +08:00
monitor1394
59335786df 修复Tooltip在只有一个数据时可能异常的问题 2023-04-14 20:53:31 +08:00
monitor1394
0af76517e1 增加BaseChartTriggerTooltip()接口尝试触发ToolTip 2023-04-14 13:35:45 +08:00
monitor1394
674d937104 优化RadarCood设置startAngle时文本也跟随调整位置 2023-04-12 22:57:12 +08:00
monitor1394
a038317c6e 增加Radar对通配符{b}的支持 2023-04-12 22:50:05 +08:00
monitor1394
5fe12dcde7 修复动态添加组件时Inspector可能异常的问题 2023-04-11 23:05:10 +08:00
monitor1394
f00eb2147d 修复动态添加组件时Inspector可能异常的问题 2023-04-11 08:00:06 +08:00
monitor1394
76238d7d7e 3.6.0 2023-04-02 09:23:25 +08:00
monitor1394
c53be4b5f9 3.6.0 2023-04-01 23:05:47 +08:00
monitor1394
8b320e9bc9 调整Serie的smoothLimit默认为false 2023-03-31 07:12:42 +08:00
monitor1394
5757049e74 完善Pyramid的Tooltip检测 2023-03-21 08:12:20 +08:00
monitor1394
d196551756 3.6.0 2023-03-20 22:00:02 +08:00
monitor1394
d7223f6790 3.6.0 2023-03-20 21:59:12 +08:00
monitor1394
a50b58d48e 增加UI组件支持 2023-03-20 21:56:56 +08:00
monitor1394
a0db57bdf2 支持数据的循环变更动画 2023-03-20 21:38:58 +08:00
monitor1394
3dfa5487ee 修复TooltiptitleFormater设置{b}可能不生效的问题 2023-03-15 13:04:48 +08:00
monitor1394
bddbe600ce Merge pull request #250 from Ambitroc/master
修复BarChart在数据为0时,Bar背景不绘制问题
2023-03-14 21:37:01 +08:00
Ambitroc
3073926d73 修复BarChart在数据为0时,Bar背景不绘制问题 2023-03-14 13:31:40 +08:00
monitor1394
49e9066334 增加LabelStyleautoRotate可设置有角度的竖版文本的自动旋转 2023-03-13 07:21:00 +08:00
monitor1394
372ed1de58 增加LabelStyleautoRotate可设置有角度的竖版文本的自动旋转 2023-03-12 22:57:37 +08:00
monitor1394
dbb867e0ab 增加LabelStyleautoRotate可设置有角度的竖版文本的自动旋转 2023-03-12 22:56:36 +08:00
monitor1394
adbd88c411 Merge pull request #248 from Ambitroc/master
支持除鼠标以外其他输入方式的Point位置获取,比如VR项目
2023-03-10 11:46:13 +08:00
Ambitroc
99b3d24366 支持除鼠标以外其他输入方式的Point位置获取,比如VR项目 2023-03-10 10:43:47 +08:00
monitor1394
6f69af3945 增加API文档的since 2023-03-09 22:51:09 +08:00
monitor1394
c6e38f2003 增加API文档的since 2023-03-09 22:49:07 +08:00
monitor1394
e0f4ed946d 增加回调API文档 2023-03-09 22:39:05 +08:00
monitor1394
465af108aa 增加ChartonSerieClickonSerieDownonSerieEnteronSerieExit回调 2023-03-09 21:31:26 +08:00
monitor1394
bf152a3a71 增加LegendPositions可自定义图例的位置 2023-03-04 21:09:50 +08:00
monitor1394
64c9b97eb9 修复Animation变更动画可能无效的问题 2023-03-03 22:41:00 +08:00
monitor1394
c42ca0f097 修复Legend点击时SerieLabel不刷新的问题 2023-02-28 13:11:18 +08:00
monitor1394
8c6d013341 增加DataZoomstartEndFunction委托 2023-02-26 22:49:19 +08:00
monitor1394
398fee2d97 修复TMP下报错 2023-02-22 22:08:40 +08:00
monitor1394
33246c2a1f update doc 2023-02-15 21:47:08 +08:00
monitor1394
b102fed9fe update doc 2023-02-14 13:18:39 +08:00
monitor1394
9c069296ed update doc 2023-02-13 07:22:07 +08:00
monitor1394
9f94541b9e 转移inputsystem文档到主站仓库 2023-02-13 07:21:48 +08:00
monitor1394
7a367d24ab 重构ChartHelper.GetOrAddComponent接口 2023-02-13 07:20:50 +08:00
monitor1394
4964bca341 重构Component相关代码,调整API接口 2023-02-12 21:22:53 +08:00
monitor1394
22b167981b update doc 2023-02-10 13:41:37 +08:00
monitor1394
80d9087084 优化Axis的数值Label的默认显示格式 2023-02-10 13:23:38 +08:00
monitor1394
d6630ef5bf update doc 2023-02-08 08:28:21 +08:00
monitor1394
5e3bc3ff15 增加DataZoomstartLockendLock参数支持锁定 2023-02-08 08:22:39 +08:00
monitor1394
3d09d82abd 修复DataZoom开启时X轴Label可能会显示在图表外的问题 2023-02-02 08:31:15 +08:00
monitor1394
22715dab95 优化SerieDataignore设置时的忽略数据判断 2023-02-02 07:58:50 +08:00
monitor1394
ace8537650 修复XChartsMgr.ContainsChart()接口异常 2023-02-01 21:00:37 +08:00
monitor1394
d7c6bf59ef Merge pull request #242 from Bian-Sh/master
增加`InputSystem`支持
2023-01-31 08:12:50 +08:00
边上海
c9cd4ee38a 同步更新部分示例代码对按键的读取逻辑
简化了部分协同程序的使用逻辑
2023-01-30 21:31:40 +08:00
边上海
633456ada0 将 inputsystem 支持功能添加到 xchart 菜单
顺便简化了 tmp 支持相关逻辑
2023-01-30 21:31:40 +08:00
边上海
7fbaf7af70 新增对 InputSystem 的支持
Update BaseGraph.cs

Update XCharts.Runtime.asmdef
2023-01-30 19:15:14 +08:00
monitor1394
e90d7d61d9 修复Inspector上移除Component后图表没有及时刷新的问题 (#241) 2023-01-11 08:12:42 +08:00
monitor1394
bda6fc7978 修复Pie在最后的几个数据都为0时Label显示不正常的问题 (#240) 2023-01-06 22:51:02 +08:00
monitor1394
8288e75445 优化gameObject被Destory后的判断 2023-01-06 08:35:16 +08:00
monitor1394
6ace71f8db 删除SerieMarkColor,增加ItemStyleMarkColor 2023-01-03 21:07:28 +08:00
monitor1394
a4aabb5bbe 3.6.0 2022-12-30 22:30:42 +08:00
monitor1394
d90a0d69b2 增加EditorList+添加编辑功能 2022-12-30 22:13:03 +08:00
monitor1394
c17d83ae6d 修复UpdateXYData()接口影响数据精度的问题 (#238) 2022-12-29 20:57:56 +08:00
monitor1394
317ffc4d99 修复Pie只有一个数据时设置border后显示异常的问题 (#237) 2022-12-28 18:17:56 +08:00
monitor1394
bc6c387db3 调整Covert重命名为Convert 2022-12-22 22:26:10 +08:00
monitor1394
d9053db2e3 修复Covert XY Axis后Y轴的Label显示异常的问题 2022-12-22 22:15:58 +08:00
monitor1394
d7cfda2521 代码优化 2022-12-22 21:51:08 +08:00
monitor1394
a5aa630b74 修复AxisValue轴在某些情况下计算数值范围不准确的问题 2022-12-12 13:41:04 +08:00
monitor1394
ce1691e1ce 优化Legendformatter支持{h}通配符 2022-12-12 13:15:29 +08:00
monitor1394
a3a25fe7c6 修复Legendformatter设置为固定值时显示不正常的问题 2022-12-12 07:29:30 +08:00
monitor1394
d4a3886530 增加AreaStyletoTop参数可设置折线图渐变色是到顶部还是到实际位置 2022-12-08 07:32:33 +08:00
monitor1394
927644fb10 增加Formatter的文本通配符{h}支持设置当前颜色值 2022-12-07 13:19:06 +08:00
monitor1394
d67a922a74 整理和重构代码 2022-12-07 13:16:06 +08:00
monitor1394
84a8e6ca19 v3.5.0 2022-12-01 21:43:46 +08:00
monitor1394
858ad55a35 v3.5.0 2022-12-01 21:29:38 +08:00
monitor1394
bfc4ff39fb v3.5.0 2022-12-01 21:05:56 +08:00
monitor1394
7603d60ea0 publish v3.5.0 2022-12-01 08:35:14 +08:00
monitor1394
8078e1c54f 更新文档 2022-11-30 20:42:12 +08:00
monitor1394
59c9d758e1 增加SeriebarMaxWidth可设置Bar的最大宽度 2022-11-30 09:39:41 +08:00
monitor1394
7ea0fbd66d 优化TooltipShadow绘制不超出图表范围 2022-11-30 09:31:39 +08:00
monitor1394
5f11f7d6e3 修复Tooltip指示的Serie数据项索引异常的问题 2022-11-29 22:38:08 +08:00
monitor1394
5879c99995 优化AxisAxisName的偏移设置 2022-11-28 09:26:52 +08:00
monitor1394
4356111e0c 优化AxisAxisName的偏移设置 2022-11-27 17:40:56 +08:00
monitor1394
f2001fbc82 优化Comment的位置,用Location代替Position 2022-11-27 17:28:37 +08:00
monitor1394
906b6ed4c7 update doc 2022-11-27 16:54:32 +08:00
monitor1394
32f98b6d5a 优化TooltipLineStyle支持设置Shadow时的颜色 2022-11-27 16:54:09 +08:00
monitor1394
b6702be558 优化LabelLinesymbol默认不显示 2022-11-26 12:10:59 +08:00
monitor1394
69db61c7b6 修复LineChartXY都为数值轴时添加无序数据显示异常的问题 2022-11-26 12:02:56 +08:00
monitor1394
da10188c6b 修复DataZoom从右往左框选时异常的问题 2022-11-26 10:40:12 +08:00
monitor1394
5593210cc6 [doc] update doc 2022-11-20 22:25:19 +08:00
monitor1394
8abd486fcd 调整UdpateXAxisIcon()接口重命名为UpdateXAxisIcon() (#235) 2022-11-20 20:24:22 +08:00
monitor1394
051dbb50b1 [doc] update doc 2022-11-20 20:18:20 +08:00
monitor1394
30e6e6908c [doc] update doc 2022-11-19 21:33:46 +08:00
monitor1394
be2e8f14cf [doc] update doc 2022-11-19 21:29:47 +08:00
monitor1394
56f0ff64b9 [doc] update doc 2022-11-19 21:24:08 +08:00
monitor1394
8a7f0c6533 增加PieLabelLine支持Symbol 2022-11-14 21:49:53 +08:00
monitor1394
8c0eb970d3 [feature][datazoom] 增加DataZoomMarqueeStyle支持框选区域 2022-11-12 21:32:08 +08:00
monitor1394
5e234dc408 [feature][datazoom] 增加DataZoomMarqueeStyle支持框选区域 2022-11-12 21:27:52 +08:00
monitor1394
26ef85ce6f [fix][comment] fix null error for comment 2022-11-12 08:19:51 +08:00
monitor1394
6d287f6678 优化Radar在类型为Single时的区域颜色填充效果 2022-11-10 07:12:22 +08:00
monitor1394
15eddd21d5 [doc] update doc 2022-11-06 10:23:28 +08:00
monitor1394
29722998e4 修复TooltipitemFormatter设置通配符{d}后异常的问题 2022-11-04 19:02:55 +08:00
monitor1394
faa5bc7cd8 check null 2022-11-02 07:20:00 +08:00
monitor1394
eb2c3d8560 v3.4.0 2022-11-01 07:21:06 +08:00
monitor1394
0c91f46aeb v3.4.0 2022-11-01 07:03:14 +08:00
monitor1394
7d16cb2017 更新教程 2022-10-30 20:56:18 +08:00
monitor1394
bdb171c4e6 增加API:AddData(),ClearSerieData(),ClearComponentData() 2022-10-30 20:56:05 +08:00
monitor1394
d7ebfb1f41 [feature] 增加AxisindicatorLabel,移除TooltipindicatorLabelStyle (#226) 2022-10-30 10:37:10 +08:00
monitor1394
c9d554d184 [feature] 增加AxisindicatorLabel,移除TooltipindicatorLabelStyle (#226) 2022-10-30 10:28:17 +08:00
monitor1394
e0974fffbe [feature] 增加SeriemarkColor可设置标识颜色用于LegendTooltip的展示 (#229) 2022-10-29 18:25:20 +08:00
monitor1394
cc63764eef v3.4.0 2022-10-28 07:20:20 +08:00
monitor1394
687fc0d495 update README.md 2022-10-27 07:27:07 +08:00
monitor1394
ce4e88c51c 增加RadarCoordstartAngle可设置Radar起始角度 2022-10-26 08:04:44 +08:00
monitor1394
42a77a9439 [fix] 修复ChartLayout布局下时Label显示不正常的问题 (#231) 2022-10-21 22:56:16 +08:00
monitor1394
bbab8d9b75 修复Unity2019.2上的兼容问题 2022-10-21 12:37:00 +08:00
monitor1394
b1eae7045b [improve][axis] improve max value and division of y axis 2022-10-18 08:33:12 +08:00
monitor1394
a78eed9c5c [fix] fix axis label error when datazoom enable (#227) 2022-10-15 23:00:20 +08:00
monitor1394
a9fefae642 [feature][datazoom] datazoom support value axis 2022-10-14 07:10:04 +08:00
monitor1394
f6ad852a44 [fix][pie] fix pie draw error when set border (#225) 2022-10-13 13:26:25 +08:00
monitor1394
53610b53ca [fix] Fixed Download interface caused the iOS platform to fail to build 2022-10-13 07:52:47 +08:00
monitor1394
e1f20e0796 [feature][animation] add UnscaledTime for animation #223 2022-10-12 08:35:23 +08:00
monitor1394
ab8ced4aed update doc 2022-10-11 07:00:35 +08:00
monitor1394
0662f62cd1 [feature] Add smoothLimit for Line 2022-10-10 07:07:57 +08:00
monitor1394
5ed6ee1d2a [fix] fix tooltip display error when serie is hide 2022-10-05 16:27:40 +08:00
monitor1394
99769da035 [fix] fix divide by zero exception 2022-09-30 16:35:53 +08:00
265 changed files with 11735 additions and 8816 deletions

2
.github/FUNDING.yml vendored
View File

@@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['https://www.paypal.me/monitor1394','https://github.com/XCharts-Team/XCharts/blob/master/Documentation/res/alipay.png','https://github.com/XCharts-Team/XCharts/blob/master/Documentation/res/wechat.png']
custom: ['https://www.paypal.me/monitor1394','https://github.com/XCharts-Team/XCharts/blob/master/Documentation~/img/support_alipay.png','https://github.com/XCharts-Team/XCharts/blob/master/Documentation~/img/support_wechat.png']

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e66d91d4c396b46bf87034c47ca3b43d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 56516e67d6e88401e949d4e63792c638
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 40051c210ea1244a99317f3264ac567f
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 002217c6b4b5348bd86b5a6b881d2622
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2c38d275e62c6471ea2f4ef69b87b220
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1fdd2e77324c84364bf033ffefa41123
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1d5cdb90dc99540768bfb21ea8243d04
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: e803ae0ae73794ec6891fed7551fe01d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 4df833a2a1e6c4a7da37a08379dd2e18
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: a772f2d2a3f994d439db4a07365b9554
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 2ab7eabdc796a45aea5bc457dc9e27f8
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 9619faeb62a184c94b83e389fd22f692
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 1e91cbf448b1c44769054375b1686439
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 172962e9e20c74c8a8428f507843b6d3
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: e610f9feea0064345909b632bba12e2e
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: ba7e7b5180b354b26baf5314d5da59f6
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 42bd080b0812b4bdcb8685adad22cd1e
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 52450d00759b44e678862b5ca8895072
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: c7e8baa3a53ba41e9bb63d02176b87ff
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 4fa12bb2901d144b88abb5f304979291
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: b1eb790b2091e4df380350030c6d8d8d
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 1ca6fe245906a453284b526f09c44eff
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 9031f7bed8c7f4350affc32cc7016b5e
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: 1777b9bc4f1df446eaf01931cb0b07ed
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: c62c735b2989c4367b8c97b8ca75c216
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,76 +0,0 @@
fileFormatVersion: 2
guid: d824662da0d024d1f95c8d10c870e3ca
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

1412
Documentation~/en/api.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -2,66 +2,195 @@
# 更新日志
[master](#master)
[v3.3.0](#v3.3.0)
[v3.2.0](#v3.2.0)
[v3.1.0](#v3.1.0)
[v3.0.1](#v3.0.1)
[v3.0.0](#v3.0.0)
[v3.0.0-preivew9](#v3.0.0-preivew9)
[v3.0.0-preivew8](#v3.0.0-preivew8)
[v3.0.0-preivew7](#v3.0.0-preivew7)
[v3.0.0-preivew6](#v3.0.0-preivew6)
[v3.0.0-preivew5](#v3.0.0-preivew5)
[v3.0.0-preivew4](#v3.0.0-preivew4)
[v3.0.0-preivew3](#v3.0.0-preivew3)
[v3.0.0-preivew2](#v3.0.0-preivew2)
[v3.0.0-preivew1](#v3.0.0-preivew1)
[v2.8.1](#v2.8.1)
[v2.8.0](#v2.8.0)
[v2.7.0](#v2.7.0)
[v2.6.0](#v2.6.0)
[v2.5.0](#v2.5.0)
[v2.4.0](#v2.4.0)
[v2.3.0](#v2.3.0)
[v2.2.3](#v2.2.3)
[v2.2.2](#v2.2.2)
[v2.2.1](#v2.2.1)
[v2.2.0](#v2.2.0)
[v2.1.1](#v2.1.1)
[v2.1.0](#v2.1.0)
[v2.0.1](#v2.0.1)
[v2.0.0](#v2.0.0)
[v2.0.0-preview.2](#v2.0.0-preview.2)
[v2.0.0-preview.1](#v2.0.0-preview.1)
[v1.6.3](#v1.6.3)
[v1.6.1](#v1.6.1)
[v1.6.0](#v1.6.0)
[v1.5.2](#v1.5.2)
[v1.5.1](#v1.5.1)
[v1.5.0](#v1.5.0)
[v1.4.0](#v1.4.0)
[v1.3.1](#v1.3.1)
[v1.3.0](#v1.3.0)
[v1.2.0](#v1.2.0)
[v1.1.0](#v1.1.0)
[v1.0.5](#v1.0.5)
[v1.0.4](#v1.0.4)
[v1.0.3](#v1.0.3)
[v1.0.2](#v1.0.2)
[v1.0.1](#v1.0.1)
[v1.0.0](#v1.0.0)
[v0.8.3](#v0.8.3)
[v0.8.2](#v0.8.2)
[v0.8.1](#v0.8.1)
[v0.8.0](#v0.8.0)
[v0.5.0](#v0.5.0)
[v0.1.0](#v0.1.0)
[v3.7.0](#v370)
[v3.6.0](#v360)
[v3.5.0](#v350)
[v3.4.0](#v340)
[v3.3.0](#v330)
[v3.2.0](#v320)
[v3.1.0](#v310)
[v3.0.1](#v301)
[v3.0.0](#v300)
[v3.0.0-preview9](#v300-preview9)
[v3.0.0-preview8](#v300-preview8)
[v3.0.0-preview7](#v300-preview7)
[v3.0.0-preview6](#v300-preview6)
[v3.0.0-preview5](#v300-preview5)
[v3.0.0-preview4](#v300-preview4)
[v3.0.0-preview3](#v300-preview3)
[v3.0.0-preview2](#v300-preview2)
[v3.0.0-preview1](#v300-preview1)
[v2.8.1](#v281)
[v2.8.0](#v280)
[v2.7.0](#v270)
[v2.6.0](#v260)
[v2.5.0](#v250)
[v2.4.0](#v240)
[v2.3.0](#v230)
[v2.2.3](#v223)
[v2.2.2](#v222)
[v2.2.1](#v221)
[v2.2.0](#v220)
[v2.1.1](#v211)
[v2.1.0](#v210)
[v2.0.1](#v201)
[v2.0.0](#v200)
[v2.0.0-preview.2](#v200-preview2)
[v2.0.0-preview.1](#v200-preview1)
[v1.6.3](#v163)
[v1.6.0](#v160)
[v1.5.2](#v152)
[v1.5.1](#v151)
[v1.5.0](#v150)
[v1.4.0](#v140)
[v1.3.1](#v131)
[v1.3.0](#v130)
[v1.2.0](#v120)
[v1.1.0](#v110)
[v1.0.5](#v105)
[v1.0.4](#v104)
[v1.0.3](#v103)
[v1.0.2](#v102)
[v1.0.1](#v101)
[v1.0.0](#v100)
[v0.8.3](#v083)
[v0.8.2](#v082)
[v0.8.1](#v081)
[v0.8.0](#v080)
[v0.5.0](#v050)
[v0.1.0](#v010)
## master
## v3.7.0
Highlights:
* Added `HelpDoc` official website help document redirection
* Added support for `Clip` for `Line`
* Optimize the range Settings of `Axis`
* Other optimizations and fixes
Log details:
* (2022.06.08) Release v3.7.0
* (2023.06.04) Added `HelpDoc` help document skip
* (2023.05.30) Fix to Serie name with `_` line causing `Legend` to not fire (#252) (by __svr2kos2__)
* (2023.05.10) Added `MinMaxAuto` range type for `Axis`
* (2023.05.10) Added support for `Clip` for `Line`
* (2023.05.04) Fixed `Axis` setting` CeilRate `not taking effect in range -1 to 1
* (2023.05.04) Optimizes MinMax type range calculations for Axis
* (2023.05.04) Fix to AxisLabel displaying `Label` formatting incorrectly when the data is all floating point numbers less than 1
* (2023.05.04) Fix to `Theme` being reset after modifying default theme parameters
* (2023.05.04) Added `Warning` when `Symbol` selects `Custom` type
* (2023.04.15) Fix to `DataZoom` may be abnormal in multiple charts (#252)
* (2023.04.14) Fix to `Tooltip` may be abnormal when there is only one data
* (2023.04.14) added `BaseChart`s `TriggerTooltip()` interface to try to trigger `ToolTip`
* (2023.04.12) Optimizes` RadarCood `setting` startAngle `with text following the adjustment position
* (2023.04.12) Added `Radar` support for wildcard `{b}`
* (2023.04.11) Fixed an issue where Inspector could be abnormal when dynamically adding components
## v3.6.0
* (2023.04.01) Release `v3.6.0` version
* (2023.03.14) Fix for Tooltip's `titleFormater` setting `{b}` may not take effect
* (2023.03.14) Fix for `BarChart` not drawing bar background when data is 0 (#250) (by __Ambitroc__)
* (2023.03.12) Added `LabelStyle` `autoRotate` to set automatic rotation of angled vertical text
* (2023.03.10) Added `VR` and other non-mouse input for Point location acquisition (#248) (by __Ambitroc__)
* (2023.03.09) Adds callbacks to Chart's `onSerieClick`, `onSerieDown`, `onSerieEnter` and `onSerieExit`
* (2023.03.09) Fixed click-check offset for `Pie` not taking effect
* (2023.03.04) Added Positions for Legend to customize legend positions
* (2023.03.03) Fixed `Animation` changing animation that might not work
* (2023.02.28) Fixed issue with Serie's Label not refreshing when `Legend` is clicked
* (2023.02.26) Adds DataZoom's `startEndFunction` delegate
* (2023.02.12) Refactor the Component code and adjust the API
* (2023.02.10) Fix `Axis` with incorrect minimum in `Log` axis in some cases
* (2023.02.10) Optimizes the default display format of Axis's value Label
* (2023.02.08) Added startLock and endLock for DataZoom
* (2023.02.02) Fixed bug where datazoom xaxis label could be displayed off-chart when datazoom is turned on
* (2023.02.02) Optimizes the `ignore` setting of `SerieData` to ignore data
* (2023.02.01) Fix `XChartsMgr.ContainsChart()` interface exception
* (2023.01.31) Added support for `InputSystem` (#242) (by __Bian-Sh__)
* (2023.01.11) Fixed chart not refreshing after removing Component from Inspector (#241)
* (2023.01.06) Fixed bug with `Pie` displaying abnormal Label when the last few values are 0 (#240)
* (2023.01.03) deletes serie `MarkColor` and adds ItemStyle `MarkColor`
* (2022.12.29) Added `+` to list editor
* (2022.12.29) Fixed `UpdateXYData()` interface affecting data accuracy (#238)
* (2022.12.28) Fixed abnormal display when setting `border` when `Pie` has only one data (#237)
* (2022.12.22) Adjust `Covert` rename to `Convert`, involving interfaces such as: `ConvertXYAxis()`, `CovertSerie()`, etc
* (2022.12.22) Fixed abnormal display of `Label` after `Convert XY Axis`
* (2022.12.12) Fixed an issue where the `Value` Axis of `axis` calculated the value range incorrectly in some cases
* (2022.12.12) Optimized legend's formatter to support `{h}` wildcards
* (2022.12.12) Fixed abnormal display of Legend's formatter when set to a fixed value
* (2022.12.08) Added `AreaStyle` `toTop` parameter to set whether the line graph gradient goes to the top or to the actual position
* (2022.12.07) Adds text wildcard `{h}` for `Formatter` to support setting current color values
## v3.5.0
Highlights:
* Updated documentation structure, added [Official XCharts Homepage](https://xcharts-team.github.io)
* Added support for the DataZoom box selected.
* Added support for maximum width Settings for bars.
* Other optimizations.
Upgrade Note:
* Due to the adjustment of the document directory structure, it is recommended to back up the files before upgrading and delete the original XCharts before upgrading them.
Log details:
* (2022.12.01) Release v3.5.0
* (2022.11.30) Increase `Serie` `barMaxWidth` can set the maximum width of `Bar`
* (2022.11.30) Optimize `Tooltip`s` Shadow `drawing to stay within chart scope
* (2022.11.29) Fix an issue with `Serie` data item index exception indicated by `Tooltip`
* (2022.11.27) Optimizes the offset Settings for `Axis` `AxisName`
* (2022.11.27) Optimize the Position of `Comment` by replacing position with `Location`
* (2022.11.27) Optimizes` Tooltip ` `LineStyle` to support setting `Shadow` when using color
* (2022.11.27) Adjust the Documentation structure
* (2022.11.26) Optimizes LabelLine's `symbol` not to be displayed by default
* (2022.11.26) Fixed `LineChart` adding unordered data display exception when `XY` is numeric axis
* (2022.11.26) Fixed an exception when selecting `DataZoom` from right to left
* (2022.11.20) Rename `UdpateXAxisIcon()` interface to `UpdateXAxisIcon()` (#235)
* (2022.11.12) Added `Pie` `LabelLine` support `Symbol`
* (2022.11.12) added `DataZoom` `MarqueeStyle` support box selection area
* (2022.11.10) Optimized area color fill effect for `Radar` when type is` Single `
* (2022.11.04) Fixed exception after itemFormatter `Tooltip` set wildcard `{d}`
## v3.4.0
Highlights:
* Added `indicatorLabel` of `Axis` to set different indicator text styles separately
* Add `markColor` of `Serie` to set the logo color
* Add `startAngle` of `RadarCoord` to set the starting Angle of `Radar`
* Optimize the numerical interval representation of `Axis`
* Added `DataZoom` support for numeric axes
* Add `SmoothLimit` of `Line` to control different effects of smoothing curves
Details:
* (2022.11.01) Release `v3.4.0` version
* (2022.10.30) adds API: `AddData()`, `ClearSerieData()`, `ClearComponentData()`
* (2022.10.30) Added `Axis`'s `indicatorLabel`, removed `Tooltip`'s `indicatorLabelStyle` (#226)
* (2022.10.29) Add `Serie` `markColor` to set logo colors for display of `Legend` and `Tooltip` (#229)
* (2022.10.26) increase the startAngle of RadarCoord to set the startAngle of Radar
* (2022.10.21) Fixed `Chart` not displaying `Label` properly when controlled by `Layout` (#231)
* (2022.10.21) fixed compatibility issues on Unity2019.2
* (2022.10.18) Optimize the numerical performance of `Axis`
* (2022.10.15) Fixed an issue where `Axis` `Label` might not appear properly when `DataZoom` is enabled (#227)
* (2022.10.14) Added `DataZoom` support for numeric axes
* (2022.10.13) Fixed the `Pie` circle with abnormal border Settings (#225)
* (2022.10.13) Fixed the `Download` interface causing the `iOS` platform packaging failure
* (2022.10.12) Added support for `Animation` `UnscaledTime` to set whether the animation is affected by TimeScale (#223)
* (2022.10.10) Optimizes the `Documentation~` format
* (2022.10.10) Add `Line` `SmoothLimit` to control different effects of smoothing curves
* (2022.10.05) Fixed an issue where `Serie` hid information when `Tooltip` was also displayed
* (2022.09.30) Fixed `DivideByZeroException` when Chart `is very small (#230)
## v3.3.0
### Main points
Highlights:
* Optimized chart details to support more functions
* Add lots of Demo examples
@@ -70,7 +199,7 @@
* Added a HeatmapChart type
* Improved Tooltip display
### Log details
Details:
* (2022.09.26) Optimizes the default number of segments for `Axis` at the category Axis
* (2022.09.25) Fixed the problem that some interfaces in the `API` document were not exported
@@ -109,7 +238,7 @@
## v3.2.0
### Main points
Highlights:
* `Serie` supports highlighting, EmphasisStyle, EmphasisStyle, BlurStyle, and SelectStyle
* `Axis` supports sub-scale and sub-partition of coordinate axes:`MinorTick` and `MinorSplitLine`
@@ -119,7 +248,7 @@
* `DataZoom` supports timeline
* Other optimizations and issue fixes
### Log details
Details:
* (2022.08.16) Release `v3.2.0` version
* (2022.08.15) optimized `Smooth` Bezier curve algorithm
@@ -208,23 +337,30 @@
* Added `Widgets`.
* Added multiple extension charts.
## v3.0.0_preview9
## v3.0.0-preview9
## v3.0.0_preview8
## v3.0.0-preview8
## v3.0.0_preview7
## v3.0.0-preview7
## v3.0.0_preview6
## v3.0.0-preview6
## v3.0.0_preview5
## v3.0.0-preview5
## v3.0.0_preview4
## v3.0.0-preview4
## v3.0.0_preview3
## v3.0.0-preview3
## v3.0.0_preview2
## v3.0.0-preview2
## v3.0.0_preview1
## v3.0.0-preview1
## v2.8.2
* (2022.08.15) Release `v2.8.2` version
* (2022.08.15) Added support for the `HeatmapChart` formatter for custom Tooltip
* (2022.07.13) Fixed `SerieLabel` refresh exception #215
* (2022.06.30) Optimize `Radar` so that the `Tooltip` layer is above `Indicator`
## v2.8.1
@@ -274,13 +410,13 @@
## v2.4.0
### Main points
Highlights:
* LineChart support the line of ignore data is disconnected or connected
* LineChart support animation at a constant speed
* Other optimizations and bug fixes
### Details
Details:
* (2021.08.31) Release `v2.4.0` version
* (2021.08.31) Optimized the gradient effect of `RingChart`
@@ -299,7 +435,7 @@
## v2.3.0
### Main points
Highlights:
* Data store upgraded from `float` to `double`
* Added `MarkLine`
@@ -309,11 +445,11 @@
* `PieChart` optimization
* Problem fixes
### Upgrade Note
Upgrade Note:
Since the data type is upgraded to `double`, the implicit conversion of `float` to `double` may have precision problems, so it is recommended that all previous data types of `float` be manually changed to `double`.
* Since the data type is upgraded to `double`, the implicit conversion of `float` to `double` may have precision problems, so it is recommended that all previous data types of `float` be manually changed to `double`.
### Details
Details:
* (2021.07.24) Release `v2.3.0` version
* (2021.07.22) Improved `SerieSymbol` to support `PictorialBarchart` extension
@@ -331,7 +467,7 @@ Since the data type is upgraded to `double`, the implicit conversion of `float`
* (2021.06.27) Added `DataZoom`'s `orient` parameter to set horizontal or vertical styles
* (2021.06.21) Added `iconStyle`'s `AutoHideWhenLabelEmpty` to set whether the icon is automatically hidden when `label` is empty
# # v2.2.3
## v2.2.3
* (2021.06.20) Release `v2.2.3` version
* (2021.06.20) Fixed the default display of `Icon` in `Axis`
@@ -464,7 +600,7 @@ Since the data type is upgraded to `double`, the implicit conversion of `float`
## v1.6.0
* (2020.08.24) Release `v1.6.0` version
* (2020.08.23) Refactor code, replace `Color` with `Color32` for reduce implicit conversion (Can cause custom colors to lose, reference [FAQ 29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation/XChartsFAQ-ZH.md) to upgrade)
* (2020.08.23) Refactor code, replace `Color` with `Color32` for reduce implicit conversion (Can cause custom colors to lose, reference [FAQ 29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation~/fqa.md) to upgrade)
* (2020.08.15) Optimized `PieChart` drawing performance effect #85
* (2020.08.11) Added `LiquidChart` data change animation#83
* (2020.08.11) Optimized `PieChart` text stack and lead line effects#85
@@ -539,7 +675,7 @@ Since the data type is upgraded to `double`, the implicit conversion of `float`
* (2020.04.19) 优化`LineChart`折线图的区域填充渐变效果
* (2020.04.19) 增加`AxisLabel``onZero`参数可将`Label`显示在`0`刻度上
* (2020.04.19) 增加`Serie``AxisLabel``showAsPositiveNumber`参数将负数数值显示为正数
* (2020.04.18) 增加`Covert XY Axis`互换XY轴配置
* (2020.04.18) 增加`Convert XY Axis`互换XY轴配置
* (2020.04.17) 增加`Axis`可通过`inverse`参数设置坐标轴反转
* (2020.04.16) 修复`Check warning``Unity2019.3`上的显示问题
* (2020.04.16) 修复`PieChart`在设置`Space`参数后动画绘制异常的问题

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
# XCharts FAQ
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)</br>
[XCharts API](XChartsAPI-EN.md)</br>
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts API](XChartsAPI-EN.md)<br/>
[XCharts Configuration](XChartsConfiguration-EN.md)
[QA 1: How to adjust the margin between the axis and the background?](#How-to-adjust-the-margin-between-the-axis-and-the=-background)
@@ -145,6 +145,6 @@ A: This is the limit of `UGUI` on the number of vertices for a single `Graphic`.
A: Check whether `RemoveData()` and add new `Serie` in the code. If you want to keep the configuration of `Serie`, you can only `ClearData()` which just clear data and then readd the data to the old serie.
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)</br>
[XCharts API](XChartsAPI-EN.md)</br>
[XCharts Homepage](https://github.com/XCharts-Team/XCharts)<br/>
[XCharts API](XChartsAPI-EN.md)<br/>
[XCharts Configuration](XChartsConfiguration-EN.md)

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -1,10 +1,5 @@
# 教程5分钟上手 XCharts 3.0
[XCharts主页](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFAQ-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)
## 获取和导入 XCharts
XCharts可通过以下任意一种方式导入到项目
@@ -33,40 +28,40 @@ XCharts可通过以下任意一种方式导入到项目
`Hierarchy`视图下右键或菜单栏`GameObject`下拉选择`XCharts->LineChart`,即可快速创建一个默认的折线图出来:
![linechart1](res/linechart1.png)
![linechart1](img/tutorial01_linechart1.png)
## 添加多个Seire
`Inspector`视图,找到`LineChart`的面板,通过`Add Serie`按钮,可以添加第二条`Line`折线:
![op_addserie](res/op_addserie.png)
![linechart2](res/linechart2.png)
![op_addserie](img/tutorial01_addserie.png)
![linechart2](img/tutorial01_linechart2.png)
## 添加其他组件
默认图表没有`Legend`,需要`Legend`组件可通过`Add Component`按钮添加:
![op_addcomponent](res/op_addcomponent.png)
![op_addcomponent](img/tutorial01_addcomponent.png)
## 添加Serie组件
Serie只自带了几个常见的组件其他组件要根据需求额外添加不同的Serie支持不同的额外组件。比如需要给折线图区域填充颜色可单独给`Serie`添加`AreaStyle`组件:
![op_addseriecomponent](res/op_addseriecomponent.png)
![linechart3](res/linechart3.png)
![op_addseriecomponent](img/tutorial01_addseriecomponent.png)
![linechart3](img/tutorial01_linechart3.png)
## 添加SerieData组件
如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加`Component`。比如我们给折线图的第二个数据单独显示`Label`
![op_addseriedatacomponent](res/op_addseriedatacomponent.png)
![linechart4](res/linechart4.png)
![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png)
![linechart4](img/tutorial01_linechart4.png)
## 更多组件和配置参数
功能越丰富就越需要更多的组件和参数支持。XCharts有多达几十种的主组件和子组件每个组件有几个至几十个不等的可配置参数以支持各种灵活而复杂的功能。
首次接触XCharts者可在 `Inspector` 视图下可以添加和调整各个组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件实现的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。
首次接触XCharts者可在 `Inspector` 视图下可以添加和调整各个组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件实现的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。
## 如何快速调整参数
@@ -105,29 +100,29 @@ chart.SetSize(580, 300);//代码动态设置尺寸或直接操作chart.rectTr
设置标题:
```C#
var title = chart.GetOrAddChartComponent<Title>();
var title = chart.EnsureChartComponent<Title>();
title.text = "Simple Line";
```
设置提示框和图例是否显示:
```C#
var tooltip = chart.GetOrAddChartComponent<Tooltip>();
var tooltip = chart.EnsureChartComponent<Tooltip>();
tooltip.show = true;
var legend = chart.GetOrAddChartComponent<Legend>();
var legend = chart.EnsureChartComponent<Legend>();
legend.show = false;
```
设置坐标轴:
```C#
var xAxis = chart.GetOrAddChartComponent<XAxis>();
var xAxis = chart.EnsureChartComponent<XAxis>();
xAxis.splitNumber = 10;
xAxis.boundaryGap = true;
xAxis.type = Axis.AxisType.Category;
var yAxis = chart.GetOrAddChartComponent<YAxis>();
var yAxis = chart.EnsureChartComponent<YAxis>();
yAxis.type = Axis.AxisType.Value;
```
@@ -150,13 +145,13 @@ for (int i = 0; i < 10; i++)
这样一个简单的折线图就出来了:
![linechart-simple](res/linechart-simple.png)
![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png)
如果一个Chart里面有多个系列时则Axis的data只需要加一次不要多个循环加重复了。记住Axis的数据个数要和Serie的数据个数一致。
完整代码请查阅`Examples``Example13_LineSimple.cs`
你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](XChartsConfiguration-ZH.md)里面的所有参数都是可以通过代码控制的。
你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](configuration.md)里面的所有参数都是可以通过代码控制的。
另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关操作部分。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有:
@@ -178,11 +173,11 @@ XCharts内部有自动刷新机制但也是在一定条件下。如果自己
XCharts支持TextMeshPro但默认是不开启的需要自己手动切换。可通过以下方式开启和关闭
![textmeshpro1](res/op_textmeshpro.png)
![textmeshpro1](img/tutorial01_textmeshpro.png)
开启后需要设置好TextMeshPro要用的全局字体也可以在主题Theme里单独设置
![textmeshpro-font](res/op_textmeshpro3.png)
![textmeshpro-font](img/tutorial01_textmeshpro_font.png)
建议在项目初就规划好是否使用TextMeshPro并设置好字体。在已有很多图表的情况下切换TMP时可能某些图表无法自动刷新可以手动点击`Rebuild Chart Object`按钮来重建图表,即可正常初始化。
@@ -200,11 +195,11 @@ XCharts支持TextMeshPro但默认是不开启的需要自己手动切换
需要先获取组件,再修改里面的参数:
```C#
var title = chart.GetOrAddChartComponent<Title>();
var title = chart.EnsureChartComponent<Title>();
title.text = "Simple LineChart";
title.subText = "normal line";
var xAxis = chart.GetOrAddChartComponent<XAxis>();
var xAxis = chart.EnsureChartComponent<XAxis>();
xAxis.splitNumber = 10;
xAxis.boundaryGap = true;
xAxis.type = Axis.AxisType.Category;
@@ -239,9 +234,9 @@ serie.roundCap = true;
给Serie添加额外组件
```C#
serie.AddExtraComponent<AreaStyle>();
serie.EnsureComponent<AreaStyle>();
var label = serie1.AddExtraComponent<LabelStyle>();
var label = serie1.EnsureComponent<LabelStyle>();
label.offset = new Vector3(0,20,0);
```
@@ -252,12 +247,7 @@ var serieData = chart.AddData(0, 20);
//var serieData = serie.GetSerieData(0); //从已有数据中获取
serieData.radius = 10;
var itemStyle = serieData.GetOrAddComponent<ItemStyle>(); //给数据项添加ItemStyle组件
var itemStyle = serieData.EnsureComponent<ItemStyle>(); //给数据项添加ItemStyle组件
itemStyle.color = Color.blue;
```
[XCharts主页](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFAQ-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

View File

@@ -0,0 +1 @@
{}

1412
Documentation~/zh/api.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,67 +1,218 @@
---
sidebar_position: 61
slug: /changelog
---
# 更新日志
[master](#master)
[v3.3.0](#v3.3.0)
[v3.2.0](#v3.2.0)
[v3.1.0](#v3.1.0)
[v3.0.1](#v3.0.1)
[v3.0.0](#v3.0.0)
[v3.0.0-preivew9](#v3.0.0-preivew9)
[v3.0.0-preivew8](#v3.0.0-preivew8)
[v3.0.0-preivew7](#v3.0.0-preivew7)
[v3.0.0-preivew6](#v3.0.0-preivew6)
[v3.0.0-preivew5](#v3.0.0-preivew5)
[v3.0.0-preivew4](#v3.0.0-preivew4)
[v3.0.0-preivew3](#v3.0.0-preivew3)
[v3.0.0-preivew2](#v3.0.0-preivew2)
[v3.0.0-preivew1](#v3.0.0-preivew1)
[v2.8.1](#v2.8.1)
[v2.8.0](#v2.8.0)
[v2.7.0](#v2.7.0)
[v2.6.0](#v2.6.0)
[v2.5.0](#v2.5.0)
[v2.4.0](#v2.4.0)
[v2.3.0](#v2.3.0)
[v2.2.3](#v2.2.3)
[v2.2.2](#v2.2.2)
[v2.2.1](#v2.2.1)
[v2.2.0](#v2.2.0)
[v2.1.1](#v2.1.1)
[v2.1.0](#v2.1.0)
[v2.0.1](#v2.0.1)
[v2.0.0](#v2.0.0)
[v2.0.0-preview.2](#v2.0.0-preview.2)
[v2.0.0-preview.1](#v2.0.0-preview.1)
[v1.6.3](#v1.6.3)
[v1.6.1](#v1.6.1)
[v1.6.0](#v1.6.0)
[v1.5.2](#v1.5.2)
[v1.5.1](#v1.5.1)
[v1.5.0](#v1.5.0)
[v1.4.0](#v1.4.0)
[v1.3.1](#v1.3.1)
[v1.3.0](#v1.3.0)
[v1.2.0](#v1.2.0)
[v1.1.0](#v1.1.0)
[v1.0.5](#v1.0.5)
[v1.0.4](#v1.0.4)
[v1.0.3](#v1.0.3)
[v1.0.2](#v1.0.2)
[v1.0.1](#v1.0.1)
[v1.0.0](#v1.0.0)
[v0.8.3](#v0.8.3)
[v0.8.2](#v0.8.2)
[v0.8.1](#v0.8.1)
[v0.8.0](#v0.8.0)
[v0.5.0](#v0.5.0)
[v0.1.0](#v0.1.0)
[v3.7.0](#v370)
[v3.5.0](#v350)
[v3.4.0](#v340)
[v3.3.0](#v330)
[v3.2.0](#v320)
[v3.1.0](#v310)
[v3.0.1](#v301)
[v3.0.0](#v300)
[v3.0.0-preivew9](#v300-preivew9)
[v3.0.0-preivew8](#v300-preivew8)
[v3.0.0-preivew7](#v300-preivew7)
[v3.0.0-preivew6](#v300-preivew6)
[v3.0.0-preivew5](#v300-preivew5)
[v3.0.0-preivew4](#v300-preivew4)
[v3.0.0-preivew3](#v300-preivew3)
[v3.0.0-preivew2](#v300-preivew2)
[v3.0.0-preivew1](#v300-preivew1)
[v2.8.1](#v281)
[v2.8.0](#v280)
[v2.7.0](#v270)
[v2.6.0](#v260)
[v2.5.0](#v250)
[v2.4.0](#v240)
[v2.3.0](#v230)
[v2.2.3](#v223)
[v2.2.2](#v222)
[v2.2.1](#v221)
[v2.2.0](#v220)
[v2.1.1](#v211)
[v2.1.0](#v210)
[v2.0.1](#v201)
[v2.0.0](#v200)
[v2.0.0-preview.2](#v200-preview2)
[v2.0.0-preview.1](#v200-preview1)
[v1.6.3](#v163)
[v1.6.1](#v161)
[v1.6.0](#v160)
[v1.5.2](#v152)
[v1.5.1](#v151)
[v1.5.0](#v150)
[v1.4.0](#v140)
[v1.3.1](#v131)
[v1.3.0](#v130)
[v1.2.0](#v120)
[v1.1.0](#v110)
[v1.0.5](#v105)
[v1.0.4](#v104)
[v1.0.3](#v103)
[v1.0.2](#v102)
[v1.0.1](#v101)
[v1.0.0](#v100)
[v0.8.3](#v083)
[v0.8.2](#v082)
[v0.8.1](#v081)
[v0.8.0](#v080)
[v0.5.0](#v050)
[v0.1.0](#v010)
## master
## v3.7.0
版本要点:
* 增加`HelpDoc`官网帮助文档跳转
* 增加`Line``Clip`的支持
* 优化`Axis`的范围设置
* 其他优化和修复
日志详情:
* (2023.06.08) 发布`v3.7.0`版本
* (2023.06.04) 增加`HelpDoc`帮助文档跳转
* (2023.05.30) 修复`Serie`的名字带`_`线导致`Legend`无法触发的问题 (#252) (by __svr2kos2__)
* (2023.05.10) 增加`Axis``MinMaxAuto`范围类型
* (2023.05.10) 增加`Line``Clip`的支持
* (2023.05.04) 优化`Axis`在-1到1范围时设置`CeilRate`不生效的问题
* (2023.05.04) 优化`Axis``MinMax`类型范围计算
* (2023.05.04) 修复`AxisLabel`在数据都是小于1的浮点数时显示`Label`格式不对的问题
* (2023.05.04) 修复`Theme`在修改默认主题的参数后运行被重置的问题
* (2023.05.04) 增加`Symbol`选择`Custom`类型时的`Warning`提示
* (2023.04.15) 修复`DataZoom`在多个图表时可能异常的问题 (#252)
* (2023.04.14) 修复`Tooltip`在只有一个数据时可能异常的问题
* (2023.04.14) 增加`BaseChart``TriggerTooltip()`接口尝试触发`ToolTip`
* (2023.04.12) 优化`RadarCood`设置`startAngle`时文本也跟随调整位置
* (2023.04.12) 增加`Radar`对通配符`{b}`的支持
* (2023.04.11) 修复`Inspector`在动态添加组件时可能异常的问题
## v3.6.0
版本要点:
* 增加`InputSystem`支持 (by __Bian-Sh__)
* 增加官网[在线示例](https://xcharts-team.github.io/examples/)多版本支持 (by __SHL-COOL__)
* 完善对`VR`的支持 (by __Ambitroc__)
* 增加`UITable``UIStatistic`等[扩展UI组件](https://xcharts-team.github.io/docs/ui)
* 增加`ItemStyle``MarkColor`
* 增加通配符`{h}`的支持
* 优化`Tooltip``Legend``DataZoom``Axis`等组件
* 重构相关`API`接口,完善回调接口
* 修复若干问题
升级注意:
* 部分接口有调整,可根据提示更换下接口即可。
日志详情:
* (2023.04.01) 发布`v3.6.0`版本
* (2023.03.14) 修复`Tooltip``titleFormater`设置`{b}`可能不生效的问题
* (2023.03.14) 修复`BarChart`在数据为0时不绘制柱条背景的问题 (#250) (by __Ambitroc__)
* (2023.03.12) 增加`LabelStyle``autoRotate`可设置有角度的竖版文本的自动旋转
* (2023.03.10) 增加`VR`等其他非鼠标输入方式的Point位置获取 (#248) (by __Ambitroc__)
* (2023.03.09) 增加`Chart``onSerieClick``onSerieDown``onSerieEnter``onSerieExit`回调
* (2023.03.09) 修复`Pie`的点击选中偏移不生效的问题
* (2023.03.04) 增加`Legend``Positions`可自定义图例的位置
* (2023.03.03) 修复`Animation`变更动画可能无效的问题
* (2023.02.28) 修复`Legend`点击时`Serie``Label`不刷新的问题
* (2023.02.26) 增加`DataZoom``startEndFunction`委托
* (2023.02.12) 重构`Component`相关代码调整API接口
* (2023.02.10) 修复`Axis``Log`轴时某些情况下最小值不正确的问题
* (2023.02.10) 优化`Axis`的数值`Label`的默认显示格式
* (2023.02.08) 增加`DataZoom``startLock``endLock`参数支持锁定
* (2023.02.02) 修复`DataZoom`开启时`X轴``Label`可能会显示在图表外的问题
* (2023.02.02) 优化`SerieData``ignore`设置时的忽略数据判断
* (2023.02.01) 修复`XChartsMgr.ContainsChart()`接口异常
* (2023.01.31) 增加`InputSystem`的支持 (#242) (by __Bian-Sh__)
* (2023.01.11) 修复`Inspector`上移除`Component`后图表没有及时刷新的问题 (#241)
* (2023.01.06) 修复`Pie`在最后的几个数据都为0时`Label`显示不正常的问题 (#240)
* (2023.01.03) 删除`Serie``MarkColor`,增加`ItemStyle``MarkColor`
* (2022.12.29) 增加`Editor``List``+`添加编辑功能
* (2022.12.29) 修复`UpdateXYData()`接口影响数据精度的问题 (#238)
* (2022.12.28) 修复`Pie`只有一个数据时设置`border`后显示异常的问题 (#237)
* (2022.12.22) 调整`Covert`重命名为`Convert`,涉及的接口有:`ConvertXYAxis()``CovertSerie()`
* (2022.12.22) 修复`Convert XY Axis`后Y轴的`Label`显示异常的问题
* (2022.12.12) 修复`Axis``Value`轴在某些情况下计算数值范围不准确的问题
* (2022.12.12) 优化`Legend``formatter`支持`{h}`通配符
* (2022.12.12) 修复`Legend``formatter`设置为固定值时显示不正常的问题
* (2022.12.08) 增加`AreaStyle``toTop`参数可设置折线图渐变色是到顶部还是到实际位置
* (2022.12.07) 增加`Formatter`的文本通配符`{h}`支持设置当前颜色值
## v3.5.0
版本要点:
* 调整文档结构,增加[XCharts官方主页](https://xcharts-team.github.io)
* 增加DataZoom框选支持
* 增加Bar的最大宽度设置支持
* 其他优化
升级注意:
* 由于调整了文档目录结构升级前建议先备份再删除原XCharts后再升级
日志详情:
* (2022.12.01) 发布`v3.5.0`版本
* (2022.11.30) 增加`Serie``barMaxWidth`可设置`Bar`的最大宽度
* (2022.11.30) 优化`Tooltip``Shadow`绘制不超出图表范围
* (2022.11.29) 修复`Tooltip`指示的`Serie`数据项索引异常的问题
* (2022.11.27) 优化`Axis``AxisName`的偏移设置
* (2022.11.27) 优化`Comment`的位置,用`Location代替Position`
* (2022.11.27) 优化`Tooltip``LineStyle`支持设置`Shadow`时的颜色
* (2022.11.27) 调整`Documentation`文档结构
* (2022.11.26) 优化`LabelLine``symbol`默认不显示
* (2022.11.26) 修复`LineChart``XY`都为数值轴时添加无序数据显示异常的问题
* (2022.11.26) 修复`DataZoom`从右往左框选时异常的问题
* (2022.11.20) 调整`UdpateXAxisIcon()`接口重命名为`UpdateXAxisIcon()` (#235)
* (2022.11.12) 增加`Pie``LabelLine`支持`Symbol`
* (2022.11.12) 增加`DataZoom``MarqueeStyle`支持框选区域
* (2022.11.10) 优化`Radar`在类型为`Single`时的区域颜色填充效果
* (2022.11.04) 修复`Tooltip``itemFormatter`设置通配符`{d}`后异常的问题
## v3.4.0
版本要点:
* 增加`Axis``indicatorLabel`,可单独设置不同的指示文本样式
* 增加`Serie``markColor`可设置标识颜色
* 增加`RadarCoord``startAngle`可设置`Radar`起始角度
* 优化`Axis`的数值间隔表现
* 增加`DataZoom`对数值轴的支持
* 增加`Line``SmoothLimit`可控制平滑曲线不同效果
日志详情:
* (2022.11.01) 发布`v3.4.0`版本
* (2022.10.30) 增加`API``AddData()``ClearSerieData()``ClearComponentData()`
* (2022.10.30) 增加`Axis``indicatorLabel`,移除`Tooltip``indicatorLabelStyle` (#226)
* (2022.10.29) 增加`Serie``markColor`可设置标识颜色用于`Legend``Tooltip`的展示 (#229)
* (2022.10.26) 增加`RadarCoord``startAngle`可设置`Radar`起始角度
* (2022.10.21) 修复`Chart`在受`Layout`控制时`Label`显示不正常的问题 (#231)
* (2022.10.21) 修复`Unity2019.2`上的兼容问题
* (2022.10.18) 优化`Axis`的数值表现
* (2022.10.15) 修复`Axis``Label``DataZoom`开启时可能显示不正常的问题 (#227)
* (2022.10.14) 增加`DataZoom`对数值轴的支持
* (2022.10.13) 修复`Pie`的环形饼图设置边框时效果异常的问题 (#225)
* (2022.10.13) 修复`Download`的接口造成`iOS`平台打包失败的问题
* (2022.10.12) 增加`Animation``UnscaledTime`支持设置动画是否受TimeScale的影响 (#223)
* (2022.10.10) 优化`Documentation~`文档格式
* (2022.10.10) 增加`Line``SmoothLimit`可控制平滑曲线不同效果
* (2022.10.05) 修复`Serie`隐藏时`Tooltip`还显示信息的问题
* (2022.09.30) 修复`Chart`在很小尺寸时出现`DivideByZeroException`异常的问题 (#230)
## v3.3.0
### 版本要点
版本要点
* 优化图表细节,支持更多功能
* 增加大量的Demo示例
@@ -70,8 +221,9 @@
* 新增HeatmapChart热力图类型
* 完善Tooltip显示
### 日志详情
日志详情
* (2022.09.28) 发布`v3.3.0`版本
* (2022.09.26) 优化`Axis`在类目轴时的默认分割段数
* (2022.09.25) 修复`API`文档中部分接口没有导出的问题
* (2022.09.24) 优化`FunnelChart`
@@ -109,7 +261,7 @@
## v3.2.0
### 版本要点
版本要点
* `Serie`支持高亮,淡出和选中三状态配置:`EmphasisStyle`,`BlurStyle``SelectStyle`
* `Axis`支持坐标轴次刻度和次分割线:`MinorTick``MinorSplitLine`
@@ -119,7 +271,7 @@
* `DataZoom`支持时间轴
* 其他优化和修复
### 日志详情
日志详情
* (2022.08.16) 发布`v3.2.0`版本
* (2022.08.15) 优化`Smooth`贝塞尔曲线算法
@@ -151,7 +303,7 @@
## v3.1.0
### 版本要点
版本要点
* 优化`Axis`
* 优化`Tooltip`
@@ -160,7 +312,7 @@
* 完善配置项手册
* 修复若干问题
### 日志详情
日志详情
* (2022.07.12) 发布`v3.1.0`版本
* (2022.07.12) 修复`Serie``ignoreLineBreak`不生效的问题
@@ -279,6 +431,13 @@
* (2022.01.07) 发布`v3.0.0-preivew1`版本
## v2.8.2
* (2022.08.15) 发布`v2.8.2`版本
* (2022.08.15) 增加`HeatmapChart`对自定义`Tooltip``formatter`的支持
* (2022.07.13) 修复`SerieLabel`刷新异常的问题 #215
* (2022.06.30) 优化`Radar``Tooltip`的层在`Indicator`之上
## v2.8.1
* (2022.05.06) 发布`v2.8.1`版本
@@ -329,13 +488,13 @@
## v2.4.0
### 版本要点
版本要点
* 折线图支持忽略数据的连线是断开还是连接
* 折线图支持轨迹匀速动画
* 其他优化和问题修复
### 日志详情
日志详情
* (2021.08.31) 发布`v2.4.0`版本
* (2021.08.31) 优化`RingChart`的渐变效果
@@ -354,7 +513,7 @@
## v2.3.0
### 版本要点
版本要点
* 数据存储由`float`升级为`double`
* 新增`MarkLine`标线
@@ -364,11 +523,11 @@
* `PieChart`优化
* 问题修复
### 升级注意
升级注意
由于数据类型升级为了`double``float`隐式转`double`可能有精度问题,所以建议之前为`float`的数据类型都手动改为`double`类型。
* 由于数据类型升级为了`double``float`隐式转`double`可能有精度问题,所以建议之前为`float`的数据类型都手动改为`double`类型。
### 日志详情
日志详情
* (2021.07.24) 发布`v2.3.0`版本
* (2021.07.22) 完善`SerieSymbol`以支持象形柱图`PictorialBarChart`扩展
@@ -521,7 +680,7 @@
## v1.6.0
* (2020.08.24) 发布`v1.6.0`版本
* (2020.08.23) 重构代码,将与绘制相关的`Color`改为`Color32`,减少隐式转换(更新后会导致自定义的颜色丢失,可参考[问答29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation/XChartsFAQ-ZH.md)进行升级)
* (2020.08.23) 重构代码,将与绘制相关的`Color`改为`Color32`,减少隐式转换(更新后会导致自定义的颜色丢失,可参考[问答29](https://github.com/XCharts-Team/XCharts/blob/master/Assets/XCharts/Documentation~/fqa.md)进行升级)
* (2020.08.15) 优化`PieChart`绘制表现效果#85
* (2020.08.11) 增加`LiquidChart`数据变更动画#83
* (2020.08.11) 优化`PieChart`文本堆叠和引线效果#85
@@ -596,7 +755,7 @@
* (2020.04.19) 优化`LineChart`折线图的区域填充渐变效果
* (2020.04.19) 增加`AxisLabel``onZero`参数可将`Label`显示在`0`刻度上
* (2020.04.19) 增加`Serie``AxisLabel``showAsPositiveNumber`参数将负数数值显示为正数
* (2020.04.18) 增加`Covert XY Axis`互换XY轴配置
* (2020.04.18) 增加`Convert XY Axis`互换XY轴配置
* (2020.04.17) 增加`Axis`可通过`inverse`参数设置坐标轴反转
* (2020.04.16) 修复`Check warning``Unity2019.3`上的显示问题
* (2020.04.16) 修复`PieChart`在设置`Space`参数后动画绘制异常的问题

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,9 @@
# XCharts问答
---
sidebar_position: 41
slug: /faq
---
[XCharts主页](https://github.com/XCharts-Team/XCharts)
[XChartsAPI](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md)
# 常见问题
[QA 1如何调整坐标轴与背景的边距](#如何调整坐标轴与背景的边距)
[QA 2如何让初始动画重新播放](#如何让初始动画重新播放)
@@ -110,7 +111,7 @@
## 如何自定义Tooltip的显示内容
答:自定义总的内容可以通过`Tooltip``formatter`。如果只是想调整所有的`serie`的显示格式可以用`itemFormatter``titleFormatter`结合。如果想每个`serie`的显示格式不一样,可以定制`serie``itemStyle`里的`tooltipFormatter`。具体的用法请查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。
答:自定义总的内容可以通过`Tooltip``formatter`。如果只是想调整所有的`serie`的显示格式可以用`itemFormatter``titleFormatter`结合。如果想每个`serie`的显示格式不一样,可以定制`serie``itemStyle`里的`tooltipFormatter`。具体的用法请查阅[XCharts配置项手册](configuration.md)。
## 如何让Y轴显示多位小数
@@ -118,7 +119,7 @@
## 如何用代码动态更新数据
答:请查阅`Example`下的代码,`Example13_LineSimple.cs`就是一个简单添加数据构建折线图的例子,其他`Demo`也都是通过代码控制不同的组件实现不同的功能相关API请查看文档[XChartsAPI接口](XChartsAPI-ZH.md) 。
答:请查阅`Example`下的代码,`Example13_LineSimple.cs`就是一个简单添加数据构建折线图的例子,其他`Demo`也都是通过代码控制不同的组件实现不同的功能相关API请查看文档[XChartsAPI接口](api.md) 。
## 如何显示图例_为什么有时候图例无法显示
@@ -167,6 +168,3 @@
答:`Serie``data``double`类型,所以无法表示空数据。可通过开启`Serie``ignore`和指定`ignoreValue`来达到空数据的效果。也可以每个`SerieData`设置`ignore`参数。忽略数据后断开还是连接可设置`ignoreLineBreak`参数。
[XCharts主页](https://github.com/XCharts-Team/XCharts)
[XChartsAPI](XChartsAPI-ZH.md)
[XCharts配置项手册](XChartsConfiguration-ZH.md)

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -1,25 +1,32 @@
---
title: 订阅服务
sidebar_position: 51
slug: /support
---
# 订阅服务
如需技术支持,可订阅`个人VIP`服务。扫后面的二维码后可加VIP群`867291970`,验证信息请输入付费的账号。
如需技术支持,可订阅`个人VIP`服务。扫后面的二维码付费后可加VIP群`867291970`,验证信息请输入付费的账号。
企业商务合作可联系QQ3525422251XCharts技术支持
## 订阅VIP服务
订阅服务分个人订阅企业订阅:
订阅服务分`个人订阅``企业订阅`
- `个人`订阅:`个人VIP`属于个人,不可转让,`XCharts`团队只服务于订阅当事人。
- `企业`订阅:`企业VIP`属于企业,席位内可安排固定职员,职员离职后席位可重新安排,`XCharts`团队通过专属企业群为企业服务。
- `个人订阅``个人VIP`属于个人,不可转让,`XCharts`团队只服务于订阅当事人。
- `企业订阅``企业VIP`属于企业,席位内可安排固定职员,职员离职后席位可重新安排,`XCharts`团队通过专属企业群为企业服务。
订阅服务优势?
订阅服务有哪些优势?
- 提高工作效率,节省时间成本。一方面,`XCharts`功能强大,相关配置项非常多,`VIP`服务可快速帮您定位,节省去查找和核对的时间;另一方面,`VIP`的即时回答服务可快速为您答疑解惑,避免中断开发流程。总之,订阅`VIP`可让您能快速上手,快速处理问题,至少能提高`10`倍以上的工作效率。
- 提高工作效率,节省时间成本。一方面,`XCharts`功能强大,相关配置项非常多,`VIP`服务可快速帮您定位,节省去查找和核对的时间;另一方面,`VIP`的即时回答服务可快速为您答疑解惑,避免中断开发流程,快速上手,快速处理问题,至少能提高`10`倍以上的工作效率。
- 更多技术交流,更多经验交流。`XCharts`团队成员从业多年,有丰富的技术和工作经验。`VIP`服务不仅可以交流`XCharts`相关的内容,也可以咨询其他方面的技术。`VIP`群也有更多的交流。
- 扩展图表需要订阅`VIP`服务后才能购买扩展图表超过1年后的更新支持也需要持续订阅`VIP`服务。
- `VIP`用户可加入`XCharts``GitHub`组织,参与`XCharts`社区构建,访问专有仓库。
- 扩展图表需要订阅`VIP`服务后才能购买扩展图表超过1年后的更新支持也需要持续订阅`VIP`服务。
- `VIP`用户可加入`XCharts``GitHub`组织,参与`XCharts`社区构建,访问专有仓库。拥有`扩展UI组件`等专属功能。
- 在`XCharts交流群`里拥有`VIP`专属标识,问题会第一时间得到响应,有问即答。
| |免费用户|付费咨询|个人`VIP` | 个人`SVIP` | 企业`VIP` |
| ----- |--|--|--|--|--|
| 订阅费用 | -- | `98`¥ | `298`¥ | 首年`1298`¥</br>后续`298¥`* | `联系我们` |
| 订阅费用 | -- | `98`¥ | `298`¥ | 首年`1298`¥<br/>后续`298¥`* | `联系我们` |
| 订阅时长 | -- | `7`天* | `1`年 | `1`年* | `1`
| 订阅席位 | -- | `1`个席位 | `1`个席位 |`1`个席位|`5`个以上席位|
| __`服务方式:`__|
@@ -29,8 +36,7 @@
| __`服务内容:`__|
| 可商用 | √ | √ | √ | √ | √ |
| 可二次开发 | √ | √ | √ | √ | √ |
| 有问答 | | √ | √ | √ | √ |
| 即时回答 | | √ | √ | √ | √ |
| 有问答 | | √ | √ | √ | √ |
| 新手指导 | | √ | √ | √ | √ |
| 开发指导 | | √ | √ | √ | √ |
| 优化指导 | | √ | √ | √ | √ |
@@ -39,8 +45,8 @@
| 需求优先考虑 | | | √ | √ | √ |
| 可另付费定制 | | | √ | √ | √ |
| 可另付费加急 | | | √ | √ | √ |
| VIP专有功能教程和文档 | | | √待开放 | √待开放 | √待开放 |
| 扩展图表购买 | | | 按需购买 | __全部免费__ | 按需购买 |
| 扩展UI组件 | | | √ | √ | √ |
| 扩展图表购买 | | | 按需购买 | __全部免费__ | __全部免费__ |
| 扩展图表源码 | | | 永久持有 | 永久持有 | 永久持有 |
| 扩展图表更新 | | | 1年更新支持 | 1年更新支持 | 1年更新支持 |
@@ -48,7 +54,7 @@
扩展图表为另付费购买图表,只对订阅了`VIP`服务的用户开放购买。对于`SVIP`的订阅用户,所有扩展图表仓库可免费使用,不用再单独购买。
对所有已购买的扩展图表,源码可永久持有,并获得持续一年的更新支持,一年后如需更新支持服务,可继续订阅`VIP`服务。
对所有已购买的扩展图表,源码可永久持有,并获得持续一年的更新支持,一年后如需更新支持服务,可继续订阅`VIP`服务。
|编号|扩展图表|价格|备注|
|--|--|--|--|
@@ -65,13 +71,17 @@
## 备注说明
1. __`付费定制`__ 是指用户可根据自己的需求定制不同的图表或新功能,只有`VIP`用户才享有`付费定制`权利。
2. __`付费加急`__ 是指用户可对自己非常紧急的需求进行付费,将开发优先级提到最高,并可要求在`Deadline`内交付,只有`VIP`用户才享有`付费加急`权利。
2. __`付费加急`__ 是指用户可对自己非常紧急的需求进行付费,将开发优先级提到最高,并可要求在指定`截止日期`内交付,只有`VIP`用户才享有`付费加急`权利。
3. __`付费咨询`__ 付费咨询有效期`7`天,且总咨询时长不超过`7`个小时。
4. __`扩展图表`__ 购买后代码可永久持有和商用1年的更新支持。
4. __`扩展图表`__ 购买后代码可永久持有和商用1年的更新和技术支持。
## 捐助支持
如果这个项目对您有帮助,请右上方点 `Star` 予以支持!也欢迎任意金额的捐助,非常您的支持!
如果这个项目对您有帮助,请右上方点 `Star` 予以支持!也欢迎任意金额的捐助,非常感谢您的支持!
![alipay-qrcode](res/alipay.png)
![wechat-qrcode](res/wechat.png)
## 二维码
如果看不到二维码图片可以加QQ`XCharts技术支持:3525422251`或邮件`monitor1394@gmail.com`咨询。
![alipay-qrcode](img/support_alipay.png)
![wechat-qrcode](img/support_wechat.png)

View File

@@ -1,9 +1,18 @@
---
title: 入门教程5分钟上手 XCharts 3.0
sidebar_position: 11
slug: /tutorial01
---
# 教程5分钟上手 XCharts 3.0
[XCharts主页](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFAQ-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)
> 注本教程适用XCharts 3.x版本2.x版本请看 [教程5分钟上手XCharts 2.0](https://github.com/XCharts-Team/XCharts/blob/2.0/Doc/教程5分钟上手XCharts.md)
## 使用 XCharts 前需要掌握什么
- 会简单使用Unity
- 了解UGUI会使用UGUI
- 了解Unity的MonoBehavior脚本用法知道怎么挂脚本用代码操作脚本
## 获取和导入 XCharts
@@ -33,48 +42,48 @@ XCharts可通过以下任意一种方式导入到项目
`Hierarchy`视图下右键或菜单栏`GameObject`下拉选择`XCharts->LineChart`,即可快速创建一个默认的折线图出来:
![linechart1](res/linechart1.png)
![linechart1](img/tutorial01_linechart1.png)
## 添加多个Seire
`Inspector`视图,找到`LineChart`的面板,通过`Add Serie`按钮,可以添加第二条`Line`折线:
![op_addserie](res/op_addserie.png)
![linechart2](res/linechart2.png)
![op_addserie](img/tutorial01_addserie.png)
![linechart2](img/tutorial01_linechart2.png)
## 添加其他组件
默认图表没有`Legend`,需要`Legend`组件可通过`Add Component`按钮添加:
![op_addcomponent](res/op_addcomponent.png)
![op_addcomponent](img/tutorial01_addcomponent.png)
## 添加Serie组件
Serie只自带了几个常见的组件其他组件按需额外添加。比如需要给折线图区域填充颜色可单独给`Serie`添加`AreaStyle`组件:
![op_addseriecomponent](res/op_addseriecomponent.png)
![linechart3](res/linechart3.png)
![op_addseriecomponent](img/tutorial01_addseriecomponent.png)
![linechart3](img/tutorial01_linechart3.png)
## 添加SerieData组件
如果需要个性化定制每个数据项的配置,可以单独给每个`SerieData`添加`Component`。比如我们给折线图的第二个数据单独显示`Label`
![op_addseriedatacomponent](res/op_addseriedatacomponent.png)
![linechart4](res/linechart4.png)
![op_addseriedatacomponent](img/tutorial01_addseriedatacomponent.png)
![linechart4](img/tutorial01_linechart4.png)
## 更多组件和配置参数
功能越丰富就越需要更多的组件和参数支持。XCharts有多达几十种的主组件和子组件,每个组件有几个至几十个不等的可配置参数,以支持各种灵活而复杂的功能。
XCharts经过不断的迭代优化目前已有多达几十种的主组件和子组件,每个组件有几个至几十个不等的可配置参数,以支持各种灵活而复杂的功能。
首次接触XCharts可在 `Inspector` 视图下可以添加和调整各个组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件实现的效果。各个组件的详细参数说明可查阅[XCharts配置项手册](XChartsConfiguration-ZH.md)。
首次使用XCharts可在 `Inspector` 视图添加各种图表,给图表添加或调整里面组件,`Game` 视图会实时反馈调整的效果,以熟悉各种组件的使用。各个组件的详细参数说明可查阅[XCharts配置项手册](configuration.md)。
## 如何快速调整参数
`XCharts`是配置参数驱动。想要什么效果,只需要去调整对应组件下的配置参数就可以,不需要去改`Hierarchy`视图下的节点,因为那些节点是由`XCharts`内部根据配置参数生成的,即使改了也会在刷新时还原回来。
`XCharts`是配置和数据来驱动。想要什么效果,只需要去调整对应组件下的配置参数就可以,不需要去改`Hierarchy`视图下的节点,因为那些节点是由`XCharts`内部根据配置和数据生成的,即使改了也会在刷新时还原回来。
快速定位你想要改的效果对应的组件这就需要对组件有一定的了解。比如我们想要让X轴的轴线末端显示箭头如何定位第一步X轴定位到`XAxis0`;第二步,轴线定位到`AxisLine`;最后,再去看`AxisLine`组件下有没有这样的参数可以实现这个效果。
如何快速定位你想要改的效果对应的组件这就需要对组件有一定的了解。比如我们想要让X轴的轴线末端显示箭头如何定位第一步X轴定位到`XAxis0`;第二步,轴线定位到`AxisLine`;最后,再去看`AxisLine`组件下有没有这样的参数可以实现这个效果,对于不太确定的参数可以查阅[XCharts配置项手册](configuration.md)
`XCharts`提供从全局`Theme`、系列`Serie`、单个数据项`SerieData`全方位的参数配置。优先级从大到小为:`SerieData`->`Serie`->`Theme`。以`ItemStyle`的颜色为例:
`XCharts`提供从全局`Theme`、系列`Serie`、单个数据项`SerieData`三方面全方位的参数配置。优先级从大到小为:`SerieData`->`Serie`->`Theme`。以`ItemStyle`的颜色为例:
1. 如果`SerieData``ItemStyle`配置有非`0000`颜色值,则优先用这个颜色值。
2. 如果`Serie``ItemStyle`配置有非`0000`颜色值,则优先用这个颜色值。
@@ -104,29 +113,29 @@ chart.SetSize(580, 300);//代码动态设置尺寸或直接操作chart.rectTr
设置标题:
```C#
var title = chart.GetOrAddChartComponent<Title>();
var title = chart.EnsureChartComponent<Title>();
title.text = "Simple Line";
```
设置提示框和图例是否显示:
```C#
var tooltip = chart.GetOrAddChartComponent<Tooltip>();
var tooltip = chart.EnsureChartComponent<Tooltip>();
tooltip.show = true;
var legend = chart.GetOrAddChartComponent<Legend>();
var legend = chart.EnsureChartComponent<Legend>();
legend.show = false;
```
设置坐标轴:
```C#
var xAxis = chart.GetOrAddChartComponent<XAxis>();
var xAxis = chart.EnsureChartComponent<XAxis>();
xAxis.splitNumber = 10;
xAxis.boundaryGap = true;
xAxis.type = Axis.AxisType.Category;
var yAxis = chart.GetOrAddChartComponent<YAxis>();
var yAxis = chart.EnsureChartComponent<YAxis>();
yAxis.type = Axis.AxisType.Value;
```
@@ -149,13 +158,13 @@ for (int i = 0; i < 10; i++)
这样一个简单的折线图就出来了:
![linechart-simple](res/linechart-simple.png)
![tutorial01_linechart_simple](img/tutorial01_linechart_simple.png)
如果一个Chart里面有多个系列时则Axis的data只需要加一次不要多个循环加重复了。记住Axis的数据个数要和Serie的数据个数一致。
完整代码请查阅`Examples``Example13_LineSimple.cs`
你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](XChartsConfiguration-ZH.md)里面的所有参数都是可以通过代码控制的。
你还可以用代码控制更多的参数,`Examples`下还有更多的其他例子,凡是`Inspector`上看到的可配置的参数,都可以通过代码来设置。[XCharts配置项手册](configuration.md)里面的所有参数都是可以通过代码控制的。
另外,除非定制,建议调用`Chart`下提供的`public`接口,特别是数据相关操作部分。这些接口内部会做一些关联处理,比如刷新图表等。常见的接口有:
@@ -168,7 +177,7 @@ for (int i = 0; i < 10; i++)
7. `chart.UpdateXAxisData()`更新X轴数据
8. `chart.UpdateDataName()`更新Serie数据的名字
XCharts内部有自动刷新机制但也是在一定条件。如果自己调用了内部组件的接口,碰到组件没有刷新,确实找不到原因的话,可以用以下两个接口强制刷新:
XCharts内部有自动刷新机制但也是在一定条件才会触发。如果自己调用了内部组件的接口,碰到组件没有刷新,确实找不到原因的话,可以用以下两个接口强制刷新:
1. `chart.RefreshAllComponent()`:刷新图表组件,会重新初始化所有组件,不建议频繁待用。
2. `chart.RefreshChart()`:刷新图表绘制,只刷新绘制部分,不会刷新组件文本,位置等部分。
@@ -178,11 +187,11 @@ XCharts内部有自动刷新机制但也是在一定条件下。如果自己
XCharts支持TextMeshPro但默认是不开启的需要自己手动切换。可通过以下方式开启和关闭
![textmeshpro1](res/op_textmeshpro.png)
![textmeshpro1](img/tutorial01_textmeshpro.png)
开启后需要设置好TextMeshPro要用的全局字体也可以在主题Theme里单独设置
![textmeshpro-font](res/op_textmeshpro3.png)
![textmeshpro-font](img/tutorial01_textmeshpro_font.png)
建议在项目初就规划好是否使用TextMeshPro并设置好字体。在已有很多图表的情况下切换TMP时可能某些图表无法自动刷新可以手动点击`Rebuild Chart Object`按钮来重建图表,即可正常初始化。
@@ -193,26 +202,28 @@ XCharts支持TextMeshPro但默认是不开启的需要自己手动切换
## 用代码改图表参数
`Inspector`上看到的所有参数都可以用代码来修改,关键是要定位好你要改的参数是在组件上、还是serie上、还是在具体的数据项上
`Inspector`上看到的所有参数都可以用代码来修改,关键是要定位好你要改的参数是在组件上、还是Serie上、还是在具体的数据项SerieData上。
### 改主组件上的参数
需要先获取组件,再修改里面的参数:
```C#
var title = chart.GetOrAddChartComponent<Title>();
var title = chart.EnsureChartComponent<Title>();
title.text = "Simple LineChart";
title.subText = "normal line";
var xAxis = chart.GetOrAddChartComponent<XAxis>();
var xAxis = chart.EnsureChartComponent<XAxis>();
xAxis.splitNumber = 10;
xAxis.boundaryGap = true;
xAxis.type = Axis.AxisType.Category;
```
> 注:低版本没有`EnsureChartComponent()`接口时,用`GetOrAddChartComponent()`
### 改Serie的参数
新添加的Serie
对于新添加的Serie
```C#
var serie = chart.AddSerie<Pie>();
@@ -224,7 +235,7 @@ serie.animation.dataChangeEnable = true;
serie.roundCap = true;
```
已存在的Serie
对于已存在的Serie
```C#
var serie = chart.GetSerie<Pie>();
@@ -239,9 +250,9 @@ serie.roundCap = true;
给Serie添加额外组件
```C#
serie.AddExtraComponent<AreaStyle>();
serie.EnsureComponent<AreaStyle>();
var label = serie1.AddExtraComponent<LabelStyle>();
var label = serie1.EnsureComponent<LabelStyle>();
label.offset = new Vector3(0,20,0);
```
@@ -252,12 +263,7 @@ var serieData = chart.AddData(0, 20);
//var serieData = serie.GetSerieData(0); //从已有数据中获取
serieData.radius = 10;
var itemStyle = serieData.GetOrAddComponent<ItemStyle>(); //给数据项添加ItemStyle组件
var itemStyle = serieData.EnsureComponent<ItemStyle>(); //给数据项添加ItemStyle组件
itemStyle.color = Color.blue;
```
[XCharts主页](https://github.com/XCharts-Team/XCharts)</br>
[XCharts问答](XChartsFAQ-ZH.md)</br>
[XChartsAPI接口](XChartsAPI-ZH.md)</br>
[XCharts配置项手册](XChartsConfiguration-ZH.md)

View File

@@ -14,7 +14,7 @@ namespace XCharts.Editor
{
public static readonly GUIContent btnAddSerie = new GUIContent("Add Serie", "");
public static readonly GUIContent btnAddComponent = new GUIContent("Add Main Component", "");
public static readonly GUIContent btnCovertXYAxis = new GUIContent("Covert XY Axis", "");
public static readonly GUIContent btnConvertXYAxis = new GUIContent("Convert XY Axis", "");
public static readonly GUIContent btnRebuildChartObject = new GUIContent("Rebuild Chart Object", "");
public static readonly GUIContent btnSaveAsImage = new GUIContent("Save As Image", "");
public static readonly GUIContent btnCheckWarning = new GUIContent("Check Warning", "");
@@ -273,8 +273,8 @@ namespace XCharts.Editor
{
if (m_Chart.HasChartComponent<XAxis>() && m_Chart.HasChartComponent<YAxis>())
{
if (GUILayout.Button(Styles.btnCovertXYAxis))
m_Chart.CovertXYAxis(0);
if (GUILayout.Button(Styles.btnConvertXYAxis))
m_Chart.ConvertXYAxis(0);
}
if (GUILayout.Button(Styles.btnRebuildChartObject))
{

View File

@@ -21,7 +21,11 @@ namespace XCharts.Editor
PropertyField(prop, "m_FadeOutDelay");
PropertyField(prop, "m_DataChangeEnable");
PropertyField(prop, "m_DataChangeDuration");
PropertyField(prop, "m_ActualDuration");
PropertyField(prop, "m_UnscaledTime");
// using(new EditorGUI.DisabledGroupScope(true))
// {
// PropertyField(prop, "m_ActualDuration");
// }
--EditorGUI.indentLevel;
}
}

View File

@@ -18,6 +18,7 @@ namespace XCharts.Editor
PropertyField(prop, "m_Color");
PropertyField(prop, "m_ToColor");
PropertyField(prop, "m_Opacity");
PropertyField(prop, "m_ToTop");
PropertyField(prop, "m_InnerFill");
--EditorGUI.indentLevel;
}

View File

@@ -73,6 +73,14 @@ namespace XCharts.Editor
return prop.propertyPath + "_" + index;
}
protected void AddHelpBox(string message, MessageType type = MessageType.Warning, int line = 2)
{
var offset = EditorGUI.indentLevel * ChartEditorHelper.INDENT_WIDTH;
EditorGUI.HelpBox(new Rect(m_DrawRect.x + offset, m_DrawRect.y, m_DrawRect.width - offset, EditorGUIUtility.singleLineHeight * line), message, type);
for (int i = 0; i < line; i++)
AddSingleLineHeight();
}
protected void AddSingleLineHeight()
{
m_Heights[m_KeyName] += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;

View File

@@ -15,7 +15,7 @@ namespace XCharts.Editor
{
++EditorGUI.indentLevel;
PropertyField(prop, "m_Content");
PropertyField(prop, "m_Position");
PropertyField(prop, "m_Location");
//PropertyField(prop, "m_MarkRect");
//PropertyField(prop, "m_MarkStyle");
PropertyField(prop, "m_LabelStyle");

View File

@@ -18,6 +18,7 @@ namespace XCharts.Editor
PropertyField(prop, "m_Color0");
PropertyField(prop, "m_ToColor");
PropertyField(prop, "m_ToColor2");
PropertyField(prop, "m_MarkColor");
PropertyField(prop, "m_BackgroundColor");
PropertyField(prop, "m_BackgroundWidth");
PropertyField(prop, "m_CenterColor");

View File

@@ -20,6 +20,7 @@ namespace XCharts.Editor
PropertyField(prop, "m_AutoOffset");
PropertyField(prop, "m_Offset");
PropertyField(prop, "m_Distance");
PropertyField(prop, "m_AutoRotate");
PropertyField(prop, "m_Rotate");
PropertyField(prop, "m_Width");
PropertyField(prop, "m_Height");

View File

@@ -0,0 +1,25 @@
using UnityEditor;
using UnityEngine;
using XCharts.Runtime;
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(MarqueeStyle), true)]
public class MarqueeStyleDrawer : BasePropertyDrawer
{
public override string ClassName { get { return "MarqueeStyle"; } }
public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
{
base.OnGUI(pos, prop, label);
if (MakeComponentFoldout(prop, "m_Show", true))
{
++EditorGUI.indentLevel;
PropertyField(prop, "m_Apply");
PropertyField(prop, "m_RealRect");
PropertyField(prop, "m_LineStyle");
PropertyField(prop, "m_AreaStyle");
--EditorGUI.indentLevel;
}
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 17cd5e3604edc43e5b7b6bfc3c71857b
guid: e1a225478c2e14da3854aea28fb59882
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -15,10 +15,11 @@ namespace XCharts.Editor
if (MakeComponentFoldout(prop, "m_Show", true))
{
++EditorGUI.indentLevel;
var type = (SymbolType) prop.FindPropertyRelative("m_Type").enumValueIndex;
var type = (SymbolType)prop.FindPropertyRelative("m_Type").enumValueIndex;
PropertyField(prop, "m_Type");
if (type == SymbolType.Custom)
{
AddHelpBox("Custom symbol only work in PictorialBar serie", MessageType.Warning);
PropertyField(prop, "m_Image");
PropertyField(prop, "m_ImageType");
PropertyField(prop, "m_Width");
@@ -27,7 +28,7 @@ namespace XCharts.Editor
}
PropertyField(prop, "m_Gap");
PropertyField(prop, "m_SizeType");
switch ((SymbolSizeType) prop.FindPropertyRelative("m_SizeType").enumValueIndex)
switch ((SymbolSizeType)prop.FindPropertyRelative("m_SizeType").enumValueIndex)
{
case SymbolSizeType.Custom:
PropertyField(prop, "m_Size");

View File

@@ -15,10 +15,11 @@ namespace XCharts.Editor
if (MakeComponentFoldout(prop, "m_Show", true))
{
++EditorGUI.indentLevel;
var type = (SymbolType) prop.FindPropertyRelative("m_Type").enumValueIndex;
var type = (SymbolType)prop.FindPropertyRelative("m_Type").enumValueIndex;
PropertyField(prop, "m_Type");
if (type == SymbolType.Custom)
{
AddHelpBox("Custom Symbol only work in PictorialBar serie", MessageType.Warning);
PropertyField(prop, "m_Image");
PropertyField(prop, "m_ImageType");
PropertyField(prop, "m_Width");

View File

@@ -78,6 +78,7 @@ namespace XCharts.Editor
PropertyField("m_AxisLabel");
PropertyField("m_SplitLine");
PropertyField("m_SplitArea");
PropertyField("m_IndicatorLabel");
if (type != Axis.AxisType.Category)
{
PropertyField("m_MinorTick");

View File

@@ -10,6 +10,7 @@ namespace XCharts.Editor
{
var m_SupportInside = baseProperty.FindPropertyRelative("m_SupportInside");
var m_SupportSlider = baseProperty.FindPropertyRelative("m_SupportSlider");
var m_SupportMarquee = baseProperty.FindPropertyRelative("m_SupportMarquee");
var m_Start = baseProperty.FindPropertyRelative("m_Start");
var m_End = baseProperty.FindPropertyRelative("m_End");
var m_MinShowNum = baseProperty.FindPropertyRelative("m_MinShowNum");
@@ -22,11 +23,14 @@ namespace XCharts.Editor
PropertyField("m_SupportInsideDrag");
}
PropertyField(m_SupportSlider);
PropertyField(m_SupportMarquee);
PropertyField("m_ZoomLock");
PropertyField("m_ScrollSensitivity");
PropertyField("m_RangeMode");
PropertyField(m_Start);
PropertyField(m_End);
PropertyField("m_StartLock");
PropertyField("m_EndLock");
PropertyField(m_MinShowNum);
if (m_Start.floatValue < 0) m_Start.floatValue = 0;
if (m_End.floatValue > 100) m_End.floatValue = 100;
@@ -54,6 +58,7 @@ namespace XCharts.Editor
PropertyListField("m_XAxisIndexs", true);
PropertyListField("m_YAxisIndexs", true);
}
PropertyField("m_MarqueeStyle");
--EditorGUI.indentLevel;
}
}

View File

@@ -24,6 +24,7 @@ namespace XCharts.Editor
PropertyField("m_Padding");
PropertyListField("m_Icons");
PropertyListField("m_Colors");
PropertyListField("m_Positions");
PropertyListField("m_Data");
--EditorGUI.indentLevel;
}

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
using XCharts.Runtime;
@@ -81,8 +82,9 @@ namespace XCharts.Editor
title,
editor.baseProperty,
editor.showProperty,
() => { ResetComponentEditor(id); },
() => { RemoveComponentEditor(id); }
() => { if (EditorUtility.DisplayDialog("", "Sure reset " + editor.component.GetType().Name + "?", "Yes", "Cancel")) ResetComponentEditor(id); },
() => { if (EditorUtility.DisplayDialog("", "Sure remove " + editor.component.GetType().Name + "?", "Yes", "Cancel")) RemoveComponentEditor(id); },
() => { Application.OpenURL("https://xcharts-team.github.io/docs/configuration/#" + editor.component.GetType().Name.ToLower()); }
);
if (displayContent)
{
@@ -102,7 +104,8 @@ namespace XCharts.Editor
editor.OnDisable();
m_Editors.Clear();
for (int i = 0; i < chart.components.Count; i++)
var count = Mathf.Min(chart.components.Count, m_ComponentsProperty.Count);
for (int i = 0; i < count; i++)
{
if (chart.components[i] != null)
{
@@ -119,7 +122,7 @@ namespace XCharts.Editor
if (!m_EditorTypes.TryGetValue(settingsType, out editorType))
editorType = typeof(MainComponentBaseEditor);
var editor = (MainComponentBaseEditor) Activator.CreateInstance(editorType);
var editor = (MainComponentBaseEditor)Activator.CreateInstance(editorType);
editor.Init(chart, component, property, m_BaseEditor);
if (index < 0)
@@ -151,6 +154,7 @@ namespace XCharts.Editor
m_Editors[id].OnDisable();
chart.RemoveChartComponent(m_Editors[id].component);
m_Editors.RemoveAt(id);
chart.RebuildChartObject();
m_ComponentsProperty = m_BaseEditor.RefreshComponent();
RefreshEditors();
EditorUtility.SetDirty(chart);

View File

@@ -15,6 +15,7 @@ namespace XCharts.Editor
PropertyTwoFiled("m_Center");
PropertyField("m_Radius");
PropertyField("m_SplitNumber");
PropertyField("m_StartAngle");
PropertyField("m_CeilRate");
PropertyField("m_IsAxisTooltip");
PropertyField("m_OutRangeColor");

View File

@@ -39,7 +39,6 @@ namespace XCharts.Editor
PropertyField("m_IgnoreDataDefaultContent");
});
PropertyField("m_LineStyle");
PropertyField("m_IndicatorLabelStyle");
PropertyField("m_TitleLabelStyle");
PropertyListField("m_ContentLabelStyles");
--EditorGUI.indentLevel;

View File

@@ -0,0 +1,121 @@
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
using XCharts.Runtime;
namespace XCharts.Editor
{
public class UIComponentEditor : UnityEditor.Editor
{
class Styles
{
public static readonly GUIContent btnAddComponent = new GUIContent("Add Main Component", "");
public static readonly GUIContent btnRebuildChartObject = new GUIContent("Rebuild Object", "");
public static readonly GUIContent btnSaveAsImage = new GUIContent("Save As Image", "");
public static readonly GUIContent btnCheckWarning = new GUIContent("Check Warning", "");
public static readonly GUIContent btnHideWarning = new GUIContent("Hide Warning", "");
}
public UIComponent m_UIComponent;
public static T AddUIComponent<T>(string chartName) where T : UIComponent
{
return XChartsEditor.AddGraph<T>(chartName);
}
protected Dictionary<string, SerializedProperty> m_Properties = new Dictionary<string, SerializedProperty>();
protected virtual void OnEnable()
{
m_Properties.Clear();
m_UIComponent = (UIComponent) target;
}
public override void OnInspectorGUI()
{
serializedObject.Update();
PropertyField("m_Script");
OnStartInspectorGUI();
OnDebugInspectorGUI();
serializedObject.ApplyModifiedProperties();
}
protected virtual void OnStartInspectorGUI() { }
protected virtual void OnDebugInspectorGUI()
{
EditorGUILayout.Space();
PropertyField("m_DebugModel");
OnDebugStartInspectorGUI();
if (GUILayout.Button(Styles.btnRebuildChartObject))
{
m_UIComponent.RebuildChartObject();
}
if (GUILayout.Button(Styles.btnSaveAsImage))
{
m_UIComponent.SaveAsImage();
}
OnDebugEndInspectorGUI();
}
protected virtual void OnDebugStartInspectorGUI() { }
protected virtual void OnDebugEndInspectorGUI() { }
protected void PropertyField(string name)
{
if (!m_Properties.ContainsKey(name))
{
var prop = serializedObject.FindProperty(name);
if (prop == null)
{
Debug.LogError("Property " + name + " not found!");
return;
}
m_Properties.Add(name, prop);
}
EditorGUILayout.PropertyField(m_Properties[name]);
}
protected void PropertyField(SerializedProperty property)
{
Assert.IsNotNull(property);
var title = ChartEditorHelper.GetContent(property.displayName);
PropertyField(property, title);
}
protected void PropertyField(SerializedProperty property, GUIContent title)
{
EditorGUILayout.PropertyField(property, title);
}
protected void PropertyListField(string relativePropName, bool showOrder = true, params HeaderMenuInfo[] menus)
{
var m_DrawRect = GUILayoutUtility.GetRect(1f, 17f);
var height = 0f;
var prop = FindProperty(relativePropName);
prop.isExpanded = ChartEditorHelper.MakeListWithFoldout(ref m_DrawRect, ref height,
prop, prop.isExpanded, showOrder, true, menus);
if (prop.isExpanded)
{
GUILayoutUtility.GetRect(1f, height - 17);
}
}
protected void PropertyTwoFiled(string relativePropName)
{
var m_DrawRect = GUILayoutUtility.GetRect(1f, 17f);
var prop = FindProperty(relativePropName);
ChartEditorHelper.MakeTwoField(ref m_DrawRect, m_DrawRect.width, prop, prop.displayName);
}
protected SerializedProperty FindProperty(string path)
{
if (!m_Properties.ContainsKey(path))
{
m_Properties.Add(path, serializedObject.FindProperty(path));
}
return m_Properties[path];
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cd18af5634e604a3c97fb1ff0fc5d682
guid: d226759112b0d463b8fba4830762893c
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -0,0 +1,23 @@
using UnityEditor;
using UnityEngine;
using XCharts.Runtime;
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(UIComponentTheme), true)]
public class UIComponentThemeDrawer : BasePropertyDrawer
{
public override string ClassName { get { return "Theme"; } }
public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
{
base.OnGUI(pos, prop, label);
if (MakeComponentFoldout(prop, "m_Show", true))
{
++EditorGUI.indentLevel;
PropertyField(prop, "m_SharedTheme");
PropertyField(prop, "m_TransparentBackground");
--EditorGUI.indentLevel;
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More