Skip to content

Commit 413e545

Browse files
committed
replace 'recalc' flag with 'editType' flaglist
1 parent 8ac49ae commit 413e545

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/plot_api/plot_api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1624,8 +1624,8 @@ function _restyle(gd, aobj, _traces) {
16241624
flags.docalc = true;
16251625
}
16261626

1627-
// some attributes declare a 'recalc' flag
1628-
if(valObject.recalc) {
1627+
// some attributes declare an 'editType' flaglist
1628+
if(valObject.editType === 'docalc') {
16291629
flags.docalc = true;
16301630
}
16311631

src/traces/contour/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ module.exports = extendFlat({}, {
130130
},
131131
colorscaleAttrs, {
132132
autocolorscale: extendFlat({}, colorscaleAttrs.autocolorscale, {dflt: false}),
133-
zmin: extendFlat({}, colorscaleAttrs.zmin, {recalc: true}),
134-
zmax: extendFlat({}, colorscaleAttrs.zmax, {recalc: true})
133+
zmin: extendFlat({}, colorscaleAttrs.zmin, {editType: 'docalc'}),
134+
zmax: extendFlat({}, colorscaleAttrs.zmax, {editType: 'docalc'})
135135
},
136136
{ colorbar: colorbarAttrs }
137137
);

src/traces/histogram2dcontour/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ module.exports = extendFlat({}, {
3636
line: contourAttrs.line
3737
},
3838
colorscaleAttrs, {
39-
zmin: extendFlat({}, colorscaleAttrs.zmin, {recalc: true}),
40-
zmax: extendFlat({}, colorscaleAttrs.zmax, {recalc: true})
39+
zmin: extendFlat({}, colorscaleAttrs.zmin, {editType: 'docalc'}),
40+
zmax: extendFlat({}, colorscaleAttrs.zmax, {editType: 'docalc'})
4141
},
4242
{ colorbar: colorbarAttrs }
4343
);

test/jasmine/tests/plotschema_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('plot schema', function() {
7676
var valObject = valObjects[attr.valType],
7777
opts = valObject.requiredOpts
7878
.concat(valObject.otherOpts)
79-
.concat(['valType', 'description', 'role', 'recalc']);
79+
.concat(['valType', 'description', 'role', 'editType']);
8080

8181
Object.keys(attr).forEach(function(key) {
8282
expect(opts.indexOf(key) !== -1).toBe(true, key, attr);

0 commit comments

Comments
 (0)