Skip to content

Commit c41b31d

Browse files
committed
drop hover bbox display
1 parent ccd2c88 commit c41b31d

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/components/fx/hover.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ exports.loneHover = function loneHover(hoverItems, opts) {
171171
y0: y0 + gTop,
172172
y1: y1 + gTop
173173
};
174-
175-
d3.select('.hover-bbox')
176-
.attr('x', x0)
177-
.attr('y', y0)
178-
.attr('width', Math.max(4, x1 - x0))
179-
.attr('height', Math.max(4, y1 - y0))
180-
.attr('stroke', 'black')
181-
.attr('fill', 'lightgray')
182-
.attr('opacity', '0.5');
183174
} else {
184175
eventData = false;
185176
}
@@ -824,15 +815,6 @@ function _hover(gd, evt, subplot, noHoverEvent) {
824815
y0: y0 + gTop,
825816
y1: y1 + gTop
826817
};
827-
828-
d3.select('.hover-bbox')
829-
.attr('x', x0)
830-
.attr('y', y0)
831-
.attr('width', Math.max(4, x1 - x0))
832-
.attr('height', Math.max(4, y1 - y0))
833-
.attr('stroke', 'black')
834-
.attr('fill', 'lightgray')
835-
.attr('opacity', '0.5');
836818
}
837819

838820
pt.eventData = [eventData];

src/plot_api/plot_api.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3772,8 +3772,6 @@ function makePlotFramework(gd) {
37723772
fullLayout._zoomlayer = fullLayout._toppaper.append('g').classed('zoomlayer', true);
37733773
fullLayout._hoverlayer = fullLayout._hoverpaper.append('g').classed('hoverlayer', true);
37743774

3775-
fullLayout._hoverpaper.append('svg').append('rect').classed('hover-bbox', true);
3776-
37773775
// Make the modebar container
37783776
fullLayout._modebardiv
37793777
.classed('modebar-container', true)

0 commit comments

Comments
 (0)