(animate)
| 33 | } |
| 34 | |
| 35 | update_opacities(animate) { |
| 36 | if (!this.model.dirty) { |
| 37 | const animation_duration = |
| 38 | animate === true ? this.parent.model.get('animation_duration') : 0; |
| 39 | |
| 40 | // update opacity scale range? |
| 41 | const that = this; |
| 42 | this.d3el |
| 43 | .selectAll('.label') |
| 44 | .transition('update_opacities') |
| 45 | .duration(animation_duration) |
| 46 | .style('opacity', (d, i) => { |
| 47 | return that.get_element_opacity(d, i); |
| 48 | }); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | update_default_size(animate) { |
| 53 | this.compute_view_padding(); |
no outgoing calls
no test coverage detected