Skip to content

Commit 6c030c0

Browse files
committed
use DESELECTDIM constant to style waterfall/funnel pts on-selection
1 parent 8dfb0c1 commit 6c030c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/traces/funnel/style.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var d3 = require('d3');
1212

1313
var Drawing = require('../../components/drawing');
1414
var Color = require('../../components/color');
15+
var DESELECTDIM = require('../../constants/interactions').DESELECTDIM;
1516

1617
var 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

src/traces/waterfall/style.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var d3 = require('d3');
1212

1313
var Drawing = require('../../components/drawing');
1414
var Color = require('../../components/color');
15+
var DESELECTDIM = require('../../constants/interactions').DESELECTDIM;
1516

1617
var 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

0 commit comments

Comments
 (0)