()
| 206 | } |
| 207 | |
| 208 | private updateInternalScales(): void { |
| 209 | this.stackedScale.rangeRound(this.set_x_range()); |
| 210 | // This padding logic is duplicated from OrdinalScale |
| 211 | // and should be factorized somewhere |
| 212 | const padding = this.model.get('padding'); |
| 213 | this.stackedScale.paddingInner(padding); |
| 214 | this.stackedScale.paddingOuter(padding / 2.0); |
| 215 | this.adjustOffset(); |
| 216 | this.groupedScale.rangeRound([ |
| 217 | 0, |
| 218 | Math.round(this.stackedScale.bandwidth() * 100) / 100, |
| 219 | ]); |
| 220 | } |
| 221 | |
| 222 | relayout(): void { |
| 223 | this.set_ranges(); |
no test coverage detected