完善Pie饼图的交互动画效果

This commit is contained in:
monitor1394
2023-07-27 07:17:37 +08:00
parent 758d578ad2
commit 0c09d40654
7 changed files with 37 additions and 24 deletions

View File

@@ -127,7 +127,7 @@ namespace XCharts.Runtime
if (m_LegendEnter)
{
serieData.context.highlight = true;
serieData.interact.SetValue(ref needInteract, symbolSize, serieData.context.highlight);
serieData.interact.SetValue(ref needInteract, serie.animation.interaction.GetRadius(symbolSize));
}
else
{
@@ -164,7 +164,10 @@ namespace XCharts.Runtime
}
}
}
serieData.interact.SetValue(ref needInteract, symbolSize, serieData.context.highlight);
if (serieData.context.highlight)
serieData.interact.SetValue(ref needInteract, serie.animation.interaction.GetRadius(symbolSize));
else
serieData.interact.SetValue(ref needInteract, symbolSize);
}
}
break;