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