MCPcopy Create free account
hub / github.com/bqplot/bqplot / snapshot_scales

Method snapshot_scales

js/src/PanZoomModel.ts:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 snapshot_scales() {
62 // Save the state of the scales.
63 const scales = this.getScales();
64
65 this.scales_states = Object.keys(scales).reduce((obj, key) => {
66 obj[key] = scales[key].map((s) => {
67 return s.get_state(false);
68 });
69 return obj;
70 }, {});
71 }
72
73 getScales(): Dict<ScaleModel[]> {
74 return this.get('scales');

Callers 1

initializeMethod · 0.95

Calls 1

getScalesMethod · 0.95

Tested by

no test coverage detected