()
| 76 | } |
| 77 | |
| 78 | set_positional_scales() { |
| 79 | const x_scale = this.scales.x; |
| 80 | this.listenTo(x_scale, 'domain_changed', function () { |
| 81 | if (!this.model.dirty) { |
| 82 | this.draw(); |
| 83 | } |
| 84 | }); |
| 85 | |
| 86 | const y_scale = this.scales.y; |
| 87 | this.listenTo(y_scale, 'domain_changed', function () { |
| 88 | if (!this.model.dirty) { |
| 89 | this.draw(); |
| 90 | } |
| 91 | }); |
| 92 | } |
| 93 | |
| 94 | create_listeners() { |
| 95 | super.create_listeners.apply(this); |