MCPcopy Index your code
hub / github.com/bqplot/bqplot / reset

Method reset

js/src/FigureModel.ts:158–166  ·  view source on GitHub ↗

* Reset the scales, delete the PanZoom widget, set the figure * interaction back to its previous value.

()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

reset_scalesMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected