()
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…