Skip to content

Commit b496641

Browse files
Remove old attributes
1 parent d3b6071 commit b496641

File tree

6 files changed

+7
-49
lines changed

6 files changed

+7
-49
lines changed

src/components/rangeslider/defaults.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ module.exports = function handleDefaults(layoutIn, layoutOut, axName) {
6666
layoutOut[yName].cleanRange('rangeslider.' + yName + '.range');
6767
layoutOut[axName].rangeslider[yName].range = layoutOut[yName].rangeslider[yName].range.slice();
6868
delete layoutOut[yName].rangeslider;
69+
70+
/*if(ax.rangeslidermode === 'auto') {
71+
ax.rangesliderrange = hasDeps ? axes.getAutoRange(ax) : ax.range.slice();
72+
axIn = ax._input;
73+
axIn.rangesliderrange = ax.rangesliderrange.slice();
74+
}*/
6975
}
7076

7177
// to map back range slider (auto) range

src/components/rangeslider/range_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
'the rangeslider use the same value than in the main plot',
2121
'when zooming in/out.',
2222
'If *auto*, the autorange will be used.',
23-
'If *fixed*, the `rangesliderrange` is used.',
23+
'If *fixed*, the `range` is used.',
2424
'If *match*, the current range is used.'
2525
].join(' ')
2626
},

src/plots/cartesian/axes.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,6 @@ axes.doAutoRange = function(ax) {
367367
axIn.range = ax.range.slice();
368368
axIn.autorange = ax.autorange;
369369
}
370-
371-
if(ax.rangeslidermode === 'auto') {
372-
ax.rangesliderrange = hasDeps ? axes.getAutoRange(ax) : ax.range.slice();
373-
axIn = ax._input;
374-
axIn.rangesliderrange = ax.rangesliderrange.slice();
375-
}
376370
};
377371

378372
// save a copy of the initial axis ranges in fullLayout

src/plots/cartesian/axis_defaults.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,6 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
5454
coerce('range');
5555
containerOut.cleanRange();
5656

57-
if(letter === 'y') {
58-
if(!containerIn.rangesliderrange) {
59-
coerce('rangeslidermode', 'auto');
60-
} else if(containerOut.isValidRange(containerIn.rangesliderrange)) {
61-
coerce('rangeslidermode', 'fixed');
62-
} else {
63-
coerce('rangeslidermode', 'match');
64-
}
65-
66-
coerce('rangesliderrange');
67-
containerOut.cleanRange('rangesliderrange');
68-
}
69-
7057
handleCategoryOrderDefaults(containerIn, containerOut, coerce);
7158
containerOut._initialCategories = axType === 'category' ?
7259
orderedCategories(letter, containerOut.categoryorder, containerOut.categoryarray, options.data) :

src/plots/cartesian/layout_attributes.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -128,33 +128,6 @@ module.exports = {
128128
'If true, then zoom is disabled.'
129129
].join(' ')
130130
},
131-
rangeslidermode: {
132-
valType: 'enumerated',
133-
values: ['auto', 'fixed', 'match'],
134-
dflt: 'auto',
135-
role: 'style',
136-
editType: 'calc',
137-
description: [
138-
'Determines whether or not the range of this axis in',
139-
'the rangeslider use the same value than in the main plot',
140-
'when zooming in/out.',
141-
'If *auto*, the autorange will be used.',
142-
'If *fixed*, the `rangesliderrange` is used.',
143-
'If *match*, the current range is used.'
144-
].join(' ')
145-
},
146-
rangesliderrange: {
147-
valType: 'info_array',
148-
role: 'style',
149-
items: [
150-
{valType: 'any', editType: 'calc'},
151-
{valType: 'any', editType: 'calc'}
152-
],
153-
editType: 'calc',
154-
description: [
155-
'Sets the range of this axis for the rangeslider.'
156-
].join(' ')
157-
},
158131
// scaleanchor: not used directly, just put here for reference
159132
// values are any opposite-letter axis id
160133
scaleanchor: {

src/plots/gl3d/layout/axis_attributes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ module.exports = overrideAll({
7878
autorange: axesAttrs.autorange,
7979
rangemode: axesAttrs.rangemode,
8080
range: axesAttrs.range,
81-
rangeslidermode: axesAttrs.rangeslidermode,
82-
rangesliderrange: axesAttrs.rangesliderrange,
8381
// ticks
8482
tickmode: axesAttrs.tickmode,
8583
nticks: axesAttrs.nticks,

0 commit comments

Comments
 (0)