Skip to content

Commit

Permalink
fix: fix treemap throw brought by a9ee949
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Feb 24, 2020
1 parent 1e54495 commit f5a8a35
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 f5a8a35

Please sign in to comment.