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

Function set_positional_scales

js/src/ScatterBase.ts:119–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 }
118
119 set_positional_scales() {
120 this.x_scale = this.scales.x;
121 this.y_scale = this.scales.y;
122 // If no scale for "x" or "y" is specified, figure scales are used.
123 if (!this.x_scale) {
124 this.x_scale = this.parent.scale_x;
125 }
126 if (!this.y_scale) {
127 this.y_scale = this.parent.scale_y;
128 }
129 this.listenTo(this.x_scale, 'domain_changed', () => {
130 if (!this.model.dirty) {
131 const animate = true;
132 this.update_position(animate);
133 }
134 });
135 this.listenTo(this.y_scale, 'domain_changed', () => {
136 if (!this.model.dirty) {
137 const animate = true;
138 this.update_position(animate);
139 }
140 });
141 }
142
143 initialize_additional_scales() {
144 // function to create the additional scales and create the

Callers

nothing calls this directly

Calls 1

update_positionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…