()
| 963 | } |
| 964 | |
| 965 | autosizeFigure() { |
| 966 | var that = this; |
| 967 | var layout = that.model.get("_widget_layout"); |
| 968 | if (_.isNil(layout) || _.isNil(layout.width)) { |
| 969 | // @ts-ignore |
| 970 | Plotly.Plots.resize(that.el).then(function () { |
| 971 | var layout_edit_id = that.model.get("_last_layout_edit_id"); |
| 972 | that._sendLayoutDelta(layout_edit_id); |
| 973 | }); |
| 974 | } |
| 975 | } |
| 976 | |
| 977 | /** |
| 978 | * Purge Plotly.js data structures from the notebook output display |
no test coverage detected