File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -460,12 +460,6 @@ proto.handleHoverGl2d = function(ev) {
460
460
} ) ;
461
461
} ;
462
462
463
- proto . cleanup = function ( ) {
464
- this . element . innerHTML = '' ;
465
- var modebarParent = this . element . parentNode ;
466
- if ( modebarParent ) modebarParent . removeChild ( this . element ) ;
467
- } ;
468
-
469
463
proto . toImage = function ( ) {
470
464
471
465
var format = 'png' ;
@@ -520,7 +514,13 @@ proto.sendDataToCloud = function() {
520
514
Plotly . Plots . sendDataToCloud ( gd ) ;
521
515
} ;
522
516
523
- module . exports = ModeBar ;
517
+ proto . removeAllButtons = function ( ) {
518
+ while ( this . element . firstChild ) {
519
+ this . element . removeChild ( this . element . firstChild ) ;
520
+ }
521
+
522
+ this . hasLogo = false ;
523
+ } ;
524
524
function createModebar ( gd , buttons ) {
525
525
var fullLayout = gd . _fullLayout ;
526
526
You can’t perform that action at this time.
0 commit comments