@@ -202,6 +202,38 @@ module.exports = {
202
202
'different identity from its predecessor contains new data.'
203
203
] . join ( ' ' )
204
204
} ,
205
+ uirevision : {
206
+ valType : 'any' ,
207
+ role : 'info' ,
208
+ editType : 'none' ,
209
+ description : [
210
+ 'Used to allow user interactions with the plot to persist after' ,
211
+ '`Plotly.react` calls that are unaware of these interactions.' ,
212
+ 'If `uirevision` is omitted, or if it is given and it changed from' ,
213
+ 'the previous `Plotly.react` call, the exact new figure is used.' ,
214
+ 'If `uirevision` is truthy and did NOT change, any attribute' ,
215
+ 'that has been affected by user interactions and did not receive a' ,
216
+ 'different value in the new figure will keep the interaction value.' ,
217
+ '`layout.uirevision` attribute serves as the default for' ,
218
+ '`uirevision` attributes in various sub-containers. For finer' ,
219
+ 'control you can set these sub-attributes directly. For example,' ,
220
+ 'if your app separately controls the data on the x and y axes you' ,
221
+ 'might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.' ,
222
+ 'Then if only the y data is changed, you can update' ,
223
+ '`yaxis.uirevision=*quantity*` and the y axis range will reset but' ,
224
+ 'the x axis range will retain any user-driven zoom.'
225
+ ] . join ( ' ' )
226
+ } ,
227
+ editrevision : {
228
+ valType : 'any' ,
229
+ role : 'info' ,
230
+ editType : 'none' ,
231
+ description : [
232
+ 'Controls persistence of user-driven changes in `editable: true`' ,
233
+ 'configuration, other than trace names and axis titles.' ,
234
+ 'Defaults to `layout.uirevision`.'
235
+ ] . join ( ' ' )
236
+ } ,
205
237
template : {
206
238
valType : 'any' ,
207
239
role : 'info' ,
@@ -252,6 +284,16 @@ module.exports = {
252
284
editType : 'modebar' ,
253
285
description : 'Sets the color of the active or hovered on icons in the modebar.'
254
286
} ,
287
+ uirevision : {
288
+ valType : 'any' ,
289
+ role : 'info' ,
290
+ editType : 'none' ,
291
+ description : [
292
+ 'Controls persistence of user-driven changes related to the modebar,' ,
293
+ 'including `hovermode`, `dragmode`, and `showspikes` at both the' ,
294
+ 'root level and inside subplots. Defaults to `layout.uirevision`.'
295
+ ] . join ( ' ' )
296
+ } ,
255
297
editType : 'modebar'
256
298
}
257
299
} ;
0 commit comments