@@ -435,6 +435,8 @@ function extremeText(d, isTop) {
435
435
436
436
437
437
module . exports = function parcoords ( gd , cdModule , layout , callbacks ) {
438
+ var isStatic = gd . _context . staticPlot ;
439
+
438
440
var fullLayout = gd . _fullLayout ;
439
441
var svg = fullLayout . _toppaper ;
440
442
var glContainer = fullLayout . _glcontainer ;
@@ -469,7 +471,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
469
471
470
472
// emit hover / unhover event
471
473
pickLayer
472
- . style ( 'pointer-events' , 'auto' )
474
+ . style ( 'pointer-events' , isStatic ? 'none' : 'auto' )
473
475
. on ( 'mousemove' , function ( d ) {
474
476
if ( state . linePickActive ( ) && d . lineLayer && callbacks && callbacks . hover ) {
475
477
var event = d3 . event ;
@@ -674,7 +676,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
674
676
. classed ( c . cn . axisTitle , true )
675
677
. attr ( 'text-anchor' , 'middle' )
676
678
. style ( 'cursor' , 'ew-resize' )
677
- . style ( 'pointer-events' , 'auto' ) ;
679
+ . style ( 'pointer-events' , isStatic ? 'none' : 'auto' ) ;
678
680
679
681
axisTitle
680
682
. text ( function ( d ) { return d . label ; } )
@@ -758,5 +760,5 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
758
760
. text ( function ( d ) { return extremeText ( d , false ) ; } )
759
761
. each ( function ( d ) { Drawing . font ( d3 . select ( this ) , d . model . rangeFont ) ; } ) ;
760
762
761
- brush . ensureAxisBrush ( axisOverlays , paperColor ) ;
763
+ brush . ensureAxisBrush ( axisOverlays , paperColor , gd ) ;
762
764
} ;
0 commit comments