File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2586,7 +2586,7 @@ function makePlotFramework(gd) {
2586
2586
. attr ( 'id' , 'defs-' + fullLayout . _uid ) ;
2587
2587
2588
2588
fullLayout . _topdefs = fullLayout . _toppaper . append ( 'defs' )
2589
- . attr ( 'id' , 'defs -' + fullLayout . _uid ) ;
2589
+ . attr ( 'id' , 'topdefs -' + fullLayout . _uid ) ;
2590
2590
2591
2591
fullLayout . _draggers = fullLayout . _paper . append ( 'g' )
2592
2592
. classed ( 'draglayer' , true ) ;
Original file line number Diff line number Diff line change @@ -89,15 +89,7 @@ module.exports = function toSVG(gd, format) {
89
89
// assumes everything in toppaper is a group, and if it's empty (like hoverlayer)
90
90
// we can ignore it
91
91
if ( fullLayout . _toppaper ) {
92
- var topDefs = fullLayout . _topdefs . node ( ) . childNodes ;
93
92
94
- for ( i = 0 ; i < topDefs . length ; i ++ ) {
95
- var topDef = topDefs [ i ] ;
96
-
97
- fullLayout . _defs . node ( ) . appendChild ( topDef ) ;
98
- }
99
-
100
- fullLayout . _topdefs . remove ( ) ;
101
93
102
94
var topGroups = fullLayout . _toppaper . node ( ) . childNodes ;
103
95
You can’t perform that action at this time.
0 commit comments