Skip to content

Commit fe35783

Browse files
committed
drop deprecated zauto, zmin & zmax from surface
1 parent 0625c65 commit fe35783

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/traces/surface/attributes.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,6 @@ colorScaleAttrs('', {
288288
].join(' ')
289289
},
290290

291-
_deprecated: {
292-
zauto: extendFlat({}, colorScaleAttrs.zauto, {
293-
description: 'Obsolete. Use `cauto` instead.'
294-
}),
295-
zmin: extendFlat({}, colorScaleAttrs.zmin, {
296-
description: 'Obsolete. Use `cmin` instead.'
297-
}),
298-
zmax: extendFlat({}, colorScaleAttrs.zmax, {
299-
description: 'Obsolete. Use `cmax` instead.'
300-
})
301-
},
302-
303291
hoverinfo: extendFlat({}, baseAttrs.hoverinfo),
304292
showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}),
305293
}), 'calc', 'nested');

src/traces/surface/defaults.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ function supplyDefaults(traceIn, traceOut, defaultColor, layout) {
121121
coerce(contourDim + '.size');
122122
}
123123

124-
// backward compatibility block
125-
if(!surfaceColor) {
126-
mapLegacy(traceIn, 'zmin', 'cmin');
127-
mapLegacy(traceIn, 'zmax', 'cmax');
128-
mapLegacy(traceIn, 'zauto', 'cauto');
129-
}
130-
131124
// TODO if contours.?.usecolormap are false and hidesurface is true
132125
// the colorbar shouldn't be shown by default
133126

@@ -155,12 +148,6 @@ function opacityscaleDefaults(traceIn, traceOut, layout, coerce) {
155148
}
156149
}
157150

158-
function mapLegacy(traceIn, oldAttr, newAttr) {
159-
if(oldAttr in traceIn && !(newAttr in traceIn)) {
160-
traceIn[newAttr] = traceIn[oldAttr];
161-
}
162-
}
163-
164151
module.exports = {
165152
supplyDefaults: supplyDefaults,
166153
opacityscaleDefaults: opacityscaleDefaults

0 commit comments

Comments
 (0)