Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tree): the symbols of image type do not display at the first rendering. close #12279. #12367

Merged
merged 5 commits into from Jun 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/chart/tree/TreeView.js
Expand Up @@ -379,9 +379,8 @@ function updateNode(data, dataIndex, symbolEl, group, seriesModel, 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);
var symbolType = symbolEl.getSymbolPath().type;
symbolType === 'image' && symbolEl.updateData(data, dataIndex, seriesScope);
plainheart marked this conversation as resolved.
Show resolved Hide resolved
}
else {
symbolEl.updateData(data, dataIndex, seriesScope);
Expand Down Expand Up @@ -644,4 +643,4 @@ function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
cpy2: cpy2
};

}
}