(gd)
| 2209 | * returns true if either height or width changed |
| 2210 | */ |
| 2211 | function 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 |