You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The typings for the relayout event omit the fact that an "autosize: true" event can be emitted by plotly.js. For instance, plotly's resize handler does the following:
plots.resize=function(gd){gd=Lib.getGraphDiv(gd);returnnewPromise(function(resolve,reject){if(!gd||Lib.isHidden(gd)){reject(newError('Resize must be passed a displayed plot div element.'));}if(gd._redrawTimer)clearTimeout(gd._redrawTimer);gd._redrawTimer=setTimeout(function(){// return if there is nothing to resize or is hiddenif(!gd.layout||(gd.layout.width&&gd.layout.height)||Lib.isHidden(gd)){resolve(gd);return;}deletegd.layout.width;deletegd.layout.height;// autosizing doesn't count as a change that needs savingvaroldchanged=gd.changed;// nor should it be included in the undo queuegd.autoplay=true;Registry.call('relayout',gd,{autosize: true}).then(function(){gd.changed=oldchanged;resolve(gd);});},100);});};
This call passes {autosize: true} to the plotly_relayout event, however, the typings say:
The typings for the relayout event omit the fact that an "autosize: true" event can be emitted by plotly.js. For instance, plotly's resize handler does the following:
This call passes
{autosize: true}
to theplotly_relayout
event, however, the typings say:Which in plotly is:
The text was updated successfully, but these errors were encountered: