* Reset the scales, delete the PanZoom widget, set the figure * interaction back to its previous value.
()
| 156 | * interaction back to its previous value. |
| 157 | */ |
| 158 | reset(): void { |
| 159 | this.set('interaction', this.panzoomData.cached_interaction); |
| 160 | const panzoom = this.panzoomData.panzoom; |
| 161 | panzoom.reset_scales(); |
| 162 | panzoom.close(); |
| 163 | this.panzoomData.panzoom = null; |
| 164 | this.panzoomData.panning = false; |
| 165 | this.save_changes(); |
| 166 | } |
| 167 | |
| 168 | static serializers = { |
| 169 | ...widgets.DOMWidgetModel.serializers, |
nothing calls this directly
no test coverage detected