()
| 246 | } |
| 247 | |
| 248 | update_scale_domain() { |
| 249 | // Sets the scale domain (Range of input values) |
| 250 | |
| 251 | const is_vertical = ['left', 'right'].includes(this.model.get('side')); |
| 252 | |
| 253 | const initial_range = is_vertical |
| 254 | ? this.parent.padded_range('y', this.axis_scale.model) |
| 255 | : this.parent.padded_range('x', this.axis_scale.model); |
| 256 | |
| 257 | const target_range = is_vertical |
| 258 | ? this.parent.range('y') |
| 259 | : this.parent.range('x'); |
| 260 | |
| 261 | this.axis_scale.expandDomain(initial_range, target_range); |
| 262 | this.axis.scale(this.axis_scale.scale as d3.AxisScale<d3.AxisDomain>); |
| 263 | } |
| 264 | |
| 265 | update_offset_scale_domain() { |
| 266 | // Sets the domain (range of input values) of the offset scale |
no test coverage detected