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

Method set_positional_scales

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

Source from the content-addressed store, hash-verified

59 }
60
61 set_positional_scales() {
62 // In the case of Hist, a change in the "sample" scale triggers
63 // a full "update_data" instead of a simple redraw.
64 const x_scale = this.scales.sample,
65 y_scale = this.scales.count;
66 this.listenTo(x_scale, 'domain_changed', function () {
67 if (!this.model.dirty) {
68 this.model.update_data();
69 }
70 });
71 this.listenTo(y_scale, 'domain_changed', function () {
72 if (!this.model.dirty) {
73 this.draw();
74 }
75 });
76 }
77
78 create_listeners() {
79 super.create_listeners();

Callers

nothing calls this directly

Calls 2

drawMethod · 0.95
update_dataMethod · 0.45

Tested by

no test coverage detected