MCPcopy Index your code
hub / github.com/plotly/plotly.js / changed

Function changed

src/plot_api/plot_api.js:2875–2901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2873 var arrayIndex = opts.arrayIndex;
2874
2875 function changed() {
2876 var editType = valObject.editType;
2877 if (inArray && editType.indexOf('arraydraw') !== -1) {
2878 Lib.pushUnique(flags.arrays[inArray], arrayIndex);
2879 return;
2880 }
2881 editTypes.update(flags, valObject);
2882
2883 if (editType !== 'none') {
2884 flags.nChanges++;
2885 }
2886
2887 // track animatable changes
2888 if (opts.transition && valObject.anim) {
2889 flags.nChangesAnim++;
2890 }
2891
2892 // track cartesian axes with altered ranges
2893 if (AX_RANGE_RE.test(astr) || AX_AUTORANGE_RE.test(astr)) {
2894 flags.rangesAltered[outerparts[0]] = 1;
2895 }
2896
2897 // track datarevision changes
2898 if (key === 'datarevision') {
2899 flags.newDataRevision = 1;
2900 }
2901 }
2902
2903 function valObjectCanBeDataArray(valObject) {
2904 return valObject.valType === 'data_array' || valObject.arrayOk;

Callers 1

getDiffFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…