(animate)
| 188 | } |
| 189 | |
| 190 | update_default_size(animate) { |
| 191 | this.compute_view_padding(); |
| 192 | // update size scale range? |
| 193 | if (!this.model.dirty) { |
| 194 | const animation_duration = |
| 195 | animate === true ? this.parent.model.get('animation_duration') : 0; |
| 196 | const that = this; |
| 197 | this.d3el |
| 198 | .selectAll('.dot') |
| 199 | .transition('update_default_size') |
| 200 | .duration(animation_duration) |
| 201 | .attr( |
| 202 | 'd', |
| 203 | this.dot.size((d) => { |
| 204 | return that.get_element_size(d); |
| 205 | }) |
| 206 | ); |
| 207 | // Label positions also need to change |
| 208 | this.update_names(animate); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | update_names(animate) { |
| 213 | const that = this; |
nothing calls this directly
no test coverage detected