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

Method set_positional_scales

js/src/Bars.ts:84–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }
83
84 set_positional_scales(): void {
85 const x_scale = this.scales.x,
86 y_scale = this.scales.y;
87 this.listenTo(x_scale, 'domain_changed', function () {
88 if (!this.model.dirty) {
89 this.draw(true);
90 }
91 });
92 this.listenTo(y_scale, 'domain_changed', function () {
93 if (!this.model.dirty) {
94 this.draw(true);
95 }
96 });
97 }
98
99 private adjustOffset(): void {
100 // In the case of a linear scale, and when plotting ordinal data,

Callers

nothing calls this directly

Calls 1

drawMethod · 0.95

Tested by

no test coverage detected