提交 0d3906f7 编写于 作者: O Ovilia

fix(sunburst): gradient color update

Interpolation method is not supported for gradient, so animation is disabled when color is gradient.

Fix and close #7569
上级 b23ce3c1
......@@ -109,6 +109,16 @@ SunburstPieceProto.updateData = function (
);
sector.useStyle(style);
}
else if (typeof style.fill === 'object' && style.fill.type
|| typeof sector.style.fill === 'object' && sector.style.fill.type
) {
// Disable animation for gradient since no interpolation method
// is supported for gradient
graphic.updateProps(sector, {
shape: sectorShape
}, seriesModel);
sector.useStyle(style);
}
else {
graphic.updateProps(sector, {
shape: sectorShape,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册