(animate)
| 50 | } |
| 51 | |
| 52 | update_default_size(animate) { |
| 53 | this.compute_view_padding(); |
| 54 | // update size scale range? |
| 55 | if (!this.model.dirty) { |
| 56 | const animation_duration = |
| 57 | animate === true ? this.parent.model.get('animation_duration') : 0; |
| 58 | const that = this; |
| 59 | this.d3el |
| 60 | .selectAll('.label') |
| 61 | .transition('update_default_size') |
| 62 | .duration(animation_duration) |
| 63 | .style('font-size', (d, i) => { |
| 64 | return that.get_element_size(d); |
| 65 | }); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | relayout() { |
| 70 | this.set_ranges(); |
no test coverage detected