Skip to content

Commit a9d387a

Browse files
committedJan 31, 2018
Force plot opacity change
1 parent c30e3f3 commit a9d387a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎src/traces/scattergl/attributes.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
'use strict';
1010

11+
var plotAttrs = require('../../plots/attributes');
1112
var scatterAttrs = require('../scatter/attributes');
12-
var colorAttributes = require('../../components/colorscale/color_attributes');
13+
var colorAttrs = require('../../components/colorscale/color_attributes');
1314

1415
var DASHES = require('../../constants/gl2d_dashes');
1516
var extendFlat = require('../../lib/extend').extendFlat;
@@ -56,7 +57,7 @@ var attrs = module.exports = overrideAll({
5657
description: 'Sets the style of the lines.'
5758
}
5859
},
59-
marker: extendFlat({}, colorAttributes('marker'), {
60+
marker: extendFlat({}, colorAttrs('marker'), {
6061
symbol: scatterMarkerAttrs.symbol,
6162
size: scatterMarkerAttrs.size,
6263
sizeref: scatterMarkerAttrs.sizeref,
@@ -65,7 +66,7 @@ var attrs = module.exports = overrideAll({
6566
opacity: scatterMarkerAttrs.opacity,
6667
showscale: scatterMarkerAttrs.showscale,
6768
colorbar: scatterMarkerAttrs.colorbar,
68-
line: extendFlat({}, colorAttributes('marker.line'), {
69+
line: extendFlat({}, colorAttrs('marker.line'), {
6970
width: scatterMarkerLineAttrs.width
7071
})
7172
}),
@@ -82,6 +83,10 @@ var attrs = module.exports = overrideAll({
8283
marker: scatterAttrs.unselected.marker
8384
},
8485

86+
opacity: extendFlat({}, plotAttrs.opacity, {
87+
editType: 'calc'
88+
}),
89+
8590
error_y: scatterAttrs.error_y,
8691
error_x: scatterAttrs.error_x
8792
}, 'calc', 'nested');

0 commit comments

Comments
 (0)
Please sign in to comment.