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');
12
12
13
13
var Drawing = require ( '../../components/drawing' ) ;
14
14
var Color = require ( '../../components/color' ) ;
15
+ var DESELECTDIM = require ( '../../constants/interactions' ) . DESELECTDIM ;
15
16
16
17
var styleTextPoints = require ( '../bar/style' ) . styleTextPoints ;
17
18
@@ -32,7 +33,7 @@ function style(gd, cd) {
32
33
. call ( Color . fill , di . mc || cont . color )
33
34
. call ( Color . stroke , di . mlc || cont . line . color )
34
35
. 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 ) ;
36
37
}
37
38
} ) ;
38
39
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ var d3 = require('d3');
12
12
13
13
var Drawing = require ( '../../components/drawing' ) ;
14
14
var Color = require ( '../../components/color' ) ;
15
+ var DESELECTDIM = require ( '../../constants/interactions' ) . DESELECTDIM ;
15
16
16
17
var styleTextPoints = require ( '../bar/style' ) . styleTextPoints ;
17
18
@@ -32,7 +33,7 @@ function style(gd, cd) {
32
33
. call ( Color . fill , cont . color )
33
34
. call ( Color . stroke , cont . line . color )
34
35
. 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 ) ;
36
37
}
37
38
} ) ;
38
39
You can’t perform that action at this time.
0 commit comments