提交 48d54d8b 编写于 作者: P plainheart

fix(tree): fix invalid opacity configuration for symbolPath.

上级 6176bd22
......@@ -238,7 +238,7 @@ symbolProto._updateCommon = function (data, idx, symbolSize, seriesScope) {
}
else {
symbolPath.setStyle({
opacity: null,
opacity: 1,
shadowBlur: null,
shadowOffsetX: null,
shadowOffsetY: null,
......@@ -394,4 +394,4 @@ symbolProto.fadeOut = function (cb, opt) {
zrUtil.inherits(SymbolClz, graphic.Group);
export default SymbolClz;
\ No newline at end of file
export default SymbolClz;
......@@ -375,12 +375,6 @@ function updateNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope)
if (isInit) {
symbolEl = new SymbolClz(data, dataIndex, seriesScope);
symbolEl.attr('position', [sourceOldLayout.x, sourceOldLayout.y]);
// Fix #12279.
// if the type of symbol is image,
// update symbol's data immediately but not wait until the next update rendering.
var symbolType = symbolEl.getSymbolPath().type;
symbolType === 'image' && symbolEl.updateData(data, dataIndex, seriesScope);
}
else {
symbolEl.updateData(data, dataIndex, seriesScope);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册