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

Method update_scales

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

Source from the content-addressed store, hash-verified

69 }
70
71 update_scales() {
72 const scales = this.model.getScales();
73 this.scale_promises = widgets.resolvePromisesDict({
74 x: Promise.all(
75 (scales.x || []).map((model: ScaleModel) => {
76 return this.create_child_view(model) as unknown as Promise<Scale>;
77 })
78 ),
79 y: Promise.all(
80 (scales.y || []).map((model: ScaleModel) => {
81 return this.create_child_view(model) as unknown as Promise<Scale>;
82 })
83 ),
84 });
85
86 this.scale_promises.then(_.bind(this.set_ranges, this));
87 }
88
89 set_ranges() {
90 let i;

Callers 1

renderMethod · 0.95

Calls 1

getScalesMethod · 0.45

Tested by

no test coverage detected