Skip to content

Commit 64997cc

Browse files
committed
drop deprecated error bar 'opacity' attribute (use alpha channel of error bar 'color' attribute instead)
1 parent d5d3712 commit 64997cc

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

src/components/errorbars/attributes.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,4 @@ module.exports = {
121121
].join(' ')
122122
},
123123
editType: 'calc',
124-
125-
_deprecated: {
126-
opacity: {
127-
valType: 'number',
128-
editType: 'style',
129-
description: [
130-
'Obsolete.',
131-
'Use the alpha channel in error bar `color` to set the opacity.'
132-
].join(' ')
133-
}
134-
}
135124
};

src/plot_api/helpers.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,18 +283,6 @@ exports.cleanData = function(data) {
283283
delete trace.xbins;
284284
}
285285

286-
// error_y.opacity is obsolete - merge into color
287-
if(trace.error_y && 'opacity' in trace.error_y) {
288-
var dc = Color.defaults;
289-
var yeColor = trace.error_y.color || (traceIs(trace, 'bar') ?
290-
Color.defaultLine :
291-
dc[tracei % dc.length]);
292-
trace.error_y.color = Color.addOpacity(
293-
Color.rgb(yeColor),
294-
Color.opacity(yeColor) * trace.error_y.opacity);
295-
delete trace.error_y.opacity;
296-
}
297-
298286
// convert bardir to orientation, and put the data into
299287
// the axes it's eventually going to be used with
300288
if('bardir' in trace) {

0 commit comments

Comments
 (0)