重构Component相关代码,调整API接口

This commit is contained in:
monitor1394
2023-02-12 21:22:53 +08:00
parent 22b167981b
commit 4964bca341
57 changed files with 349 additions and 185 deletions

View File

@@ -38,11 +38,11 @@ namespace XCharts.Example
{
if (dataZoom.IsInMarqueeArea(serieData))
{
serieData.GetOrAddComponent<ItemStyle>().color = Color.red;
serieData.EnsureComponent<ItemStyle>().color = Color.red;
}
else
{
serieData.GetOrAddComponent<ItemStyle>().color = Color.clear;
serieData.EnsureComponent<ItemStyle>().color = Color.clear;
}
}
}