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

Method set_positional_scales

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

Source from the content-addressed store, hash-verified

82 }
83
84 set_positional_scales() {
85 // If no scale for "x" or "y" is specified, figure scales are used.
86 const x_scale = this.scales.x ? this.scales.x : this.parent.scale_x;
87 const y_scale = this.scales.y ? this.scales.y : this.parent.scale_y;
88
89 this.listenTo(x_scale, 'domain_changed', () => {
90 if (!this.model.dirty) {
91 this.draw();
92 }
93 });
94 this.listenTo(y_scale, 'domain_changed', () => {
95 if (!this.model.dirty) {
96 this.draw();
97 }
98 });
99 }
100
101 create_listeners() {
102 super.create_listeners();

Callers

nothing calls this directly

Calls 1

drawMethod · 0.95

Tested by

no test coverage detected