Skip to content

Commit 0fa8c8f

Browse files
committed
Strip draglayer from toSVG output
1 parent bb8137c commit 0fa8c8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/snapshot/tosvg.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ module.exports = function toSVG(gd, format) {
105105
}
106106
}
107107

108+
// remove draglayer (it's invisible anyways!)
109+
if(fullLayout._draggers) {
110+
fullLayout._draggers.node().remove();
111+
}
112+
108113
// in case the svg element had an explicit background color, remove this
109114
// we want the rect to get the color so it's the right size; svg bg will
110115
// fill whatever container it's displayed in regardless of plot size.

0 commit comments

Comments
 (0)