Skip to content

Commit 4402d45

Browse files
fix(icicle): if you click icicle, the root color does not expand across the trace domain anymore
1 parent c2bab55 commit 4402d45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/traces/treemap/plot_one.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
7070
var isBottomOfRect = function(y) { return y - e <= ref.y0; };
7171
var isTopOfRect = function(y) { return y + e >= ref.y1; };
7272

73+
if(pt.x0 === ref.x0 && pt.x1 === ref.x1 && pt.y0 === ref.y0 && pt.y1 === ref.y1) {
74+
return {
75+
x0: pt.x0,
76+
x1: pt.x1,
77+
y0: pt.y0,
78+
y1: pt.y1
79+
}
80+
}
81+
7382
return {
7483
x0: isLeftOfRect(pt.x0 - e) ? 0 : isRightOfRect(pt.x0 - e) ? size[0] : pt.x0,
7584
x1: isLeftOfRect(pt.x1 + e) ? 0 : isRightOfRect(pt.x1 + e) ? size[0] : pt.x1,

0 commit comments

Comments
 (0)