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

Function updateAutosize

src/plot_api/plot_api.js:2211–2220  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

2209 * returns true if either height or width changed
2210 */
2211function updateAutosize(gd) {
2212 var fullLayout = gd._fullLayout;
2213 var oldWidth = fullLayout.width;
2214 var oldHeight = fullLayout.height;
2215
2216 // calculate autosizing
2217 if (gd.layout.autosize) Plots.plotAutoSize(gd, gd.layout, fullLayout);
2218
2219 return fullLayout.width !== oldWidth || fullLayout.height !== oldHeight;
2220}
2221
2222/**
2223 * update: update trace and layout attributes of an existing plot

Callers 2

_relayoutFunction · 0.85
reactFunction · 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…