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) {
25862586 . attr ( 'id' , 'defs-' + fullLayout . _uid ) ;
25872587
25882588 fullLayout . _topdefs = fullLayout . _toppaper . append ( 'defs' )
2589- . attr ( 'id' , 'defs -' + fullLayout . _uid ) ;
2589+ . attr ( 'id' , 'topdefs -' + fullLayout . _uid ) ;
25902590
25912591 fullLayout . _draggers = fullLayout . _paper . append ( 'g' )
25922592 . classed ( 'draglayer' , true ) ;
Original file line number Diff line number Diff line change @@ -89,15 +89,7 @@ module.exports = function toSVG(gd, format) {
8989 // assumes everything in toppaper is a group, and if it's empty (like hoverlayer)
9090 // we can ignore it
9191 if ( fullLayout . _toppaper ) {
92- var topDefs = fullLayout . _topdefs . node ( ) . childNodes ;
9392
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 ( ) ;
10193
10294 var topGroups = fullLayout . _toppaper . node ( ) . childNodes ;
10395
You can’t perform that action at this time.
0 commit comments