提交 df815b33 编写于 作者: P plainheart

fix(tree): optimize code.

上级 d11b53e7
......@@ -375,9 +375,17 @@ function updateNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope)
if (isInit) {
symbolEl = new SymbolClz(data, dataIndex, seriesScope);
symbolEl.attr('position', [sourceOldLayout.x, sourceOldLayout.y]);
}
symbolEl.updateData(data, dataIndex, seriesScope);
// 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._symbolType;
symbolType.indexOf('image://') === 0
&& symbolEl.updateData(data, dataIndex, seriesScope);
}
else {
symbolEl.updateData(data, dataIndex, seriesScope);
}
symbolEl.__radialOldRawX = symbolEl.__radialRawX;
symbolEl.__radialOldRawY = symbolEl.__radialRawY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册