@@ -435,6 +435,8 @@ function extremeText(d, isTop) {
435435
436436
437437module . exports = function parcoords ( gd , cdModule , layout , callbacks ) {
438+ var isStatic = gd . _context . staticPlot ;
439+
438440 var fullLayout = gd . _fullLayout ;
439441 var svg = fullLayout . _toppaper ;
440442 var glContainer = fullLayout . _glcontainer ;
@@ -469,7 +471,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
469471
470472 // emit hover / unhover event
471473 pickLayer
472- . style ( 'pointer-events' , 'auto' )
474+ . style ( 'pointer-events' , isStatic ? 'none' : 'auto' )
473475 . on ( 'mousemove' , function ( d ) {
474476 if ( state . linePickActive ( ) && d . lineLayer && callbacks && callbacks . hover ) {
475477 var event = d3 . event ;
@@ -674,7 +676,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
674676 . classed ( c . cn . axisTitle , true )
675677 . attr ( 'text-anchor' , 'middle' )
676678 . style ( 'cursor' , 'ew-resize' )
677- . style ( 'pointer-events' , 'auto' ) ;
679+ . style ( 'pointer-events' , isStatic ? 'none' : 'auto' ) ;
678680
679681 axisTitle
680682 . text ( function ( d ) { return d . label ; } )
@@ -758,5 +760,5 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
758760 . text ( function ( d ) { return extremeText ( d , false ) ; } )
759761 . each ( function ( d ) { Drawing . font ( d3 . select ( this ) , d . model . rangeFont ) ; } ) ;
760762
761- brush . ensureAxisBrush ( axisOverlays , paperColor ) ;
763+ brush . ensureAxisBrush ( axisOverlays , paperColor , gd ) ;
762764} ;
0 commit comments