Skip to content

Commit

Permalink
Merge pull request #12186 from apache/fix/treemap-highdown
Browse files Browse the repository at this point in the history
fix: fix treemap throw brought by a9ee949
  • Loading branch information
pissang authored Feb 25, 2020
2 parents 1e54495 + f5a8a35 commit a6489e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chart/treemap/TreemapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,10 @@ function renderNode(
// If invisible, do not set visual, otherwise the element will
// change immediately before animation. We think it is OK to
// remain its origin color when moving out of the view window.
processInvisible(content);
processInvisible(bg);
}
else {
bg.invisible = false;
var visualBorderColor = thisNode.getVisual('borderColor', true);
var emphasisBorderColor = itemStyleEmphasisModel.get('borderColor');
var normalStyle = getItemStyleNormal(itemStyleNormalModel);
Expand Down Expand Up @@ -832,6 +833,7 @@ function renderNode(
processInvisible(content);
}
else {
content.invisible = false;
var visualColor = thisNode.getVisual('color', true);
var normalStyle = getItemStyleNormal(itemStyleNormalModel);
normalStyle.fill = visualColor;
Expand Down

0 comments on commit a6489e5

Please sign in to comment.