File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ var d3 = require('d3');
1212
1313var Drawing = require ( '../../components/drawing' ) ;
1414var Color = require ( '../../components/color' ) ;
15+ var DESELECTDIM = require ( '../../constants/interactions' ) . DESELECTDIM ;
1516
1617var styleTextPoints = require ( '../bar/style' ) . styleTextPoints ;
1718
@@ -32,7 +33,7 @@ function style(gd, cd) {
3233 . call ( Color . fill , di . mc || cont . color )
3334 . call ( Color . stroke , di . mlc || cont . line . color )
3435 . call ( Drawing . dashLine , cont . line . dash , di . mlw || cont . line . width )
35- . style ( 'opacity' , trace . selectedpoints && ! di . selected ? 0.3 : 1 ) ;
36+ . style ( 'opacity' , trace . selectedpoints && ! di . selected ? DESELECTDIM : 1 ) ;
3637 }
3738 } ) ;
3839
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ var d3 = require('d3');
1212
1313var Drawing = require ( '../../components/drawing' ) ;
1414var Color = require ( '../../components/color' ) ;
15+ var DESELECTDIM = require ( '../../constants/interactions' ) . DESELECTDIM ;
1516
1617var styleTextPoints = require ( '../bar/style' ) . styleTextPoints ;
1718
@@ -32,7 +33,7 @@ function style(gd, cd) {
3233 . call ( Color . fill , cont . color )
3334 . call ( Color . stroke , cont . line . color )
3435 . call ( Drawing . dashLine , cont . line . dash , cont . line . width )
35- . style ( 'opacity' , trace . selectedpoints && ! di . selected ? 0.3 : 1 ) ;
36+ . style ( 'opacity' , trace . selectedpoints && ! di . selected ? DESELECTDIM : 1 ) ;
3637 }
3738 } ) ;
3839
You can’t perform that action at this time.
0 commit comments