()
| 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, |