Skip to content

Commit 841667e

Browse files
committed
don't draw range slider slide + grab area box in static plots
- these were also no exporting to pdf/eps well as they used a `fill: 'transparent` style
1 parent 862465a commit 841667e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/rangeslider/draw.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ function drawMasks(rangeSlider, gd, axisOpts, opts) {
423423
}
424424

425425
function drawSlideBox(rangeSlider, gd, axisOpts, opts) {
426+
if(gd._context.staticPlot) return;
427+
426428
var slideBox = rangeSlider.selectAll('rect.' + constants.slideBoxClassName)
427429
.data([0]);
428430

@@ -483,6 +485,8 @@ function drawGrabbers(rangeSlider, gd, axisOpts, opts) {
483485

484486
// <g grabarea />
485487

488+
if(gd._context.staticPlot) return;
489+
486490
var grabAreaFixAttrs = {
487491
width: constants.grabAreaWidth,
488492
y: 0,

0 commit comments

Comments
 (0)