(animate, elements_added)
| 266 | } |
| 267 | |
| 268 | draw_elements(animate, elements_added) { |
| 269 | const that = this; |
| 270 | |
| 271 | const animation_duration = |
| 272 | animate === true ? this.parent.model.get('animation_duration') : 0; |
| 273 | const elements = this.d3el.selectAll('.object_grp'); |
| 274 | |
| 275 | elements_added.append('path').attr('class', 'dot element'); |
| 276 | elements_added.append('text').attr('class', 'dot_text'); |
| 277 | elements |
| 278 | .select('path') |
| 279 | .transition('draw_elements') |
| 280 | .duration(animation_duration) |
| 281 | .attr( |
| 282 | 'd', |
| 283 | this.dot |
| 284 | .size((d) => { |
| 285 | return that.get_element_size(d); |
| 286 | }) |
| 287 | .skew((d) => { |
| 288 | return that.get_element_skew(d); |
| 289 | }) |
| 290 | ); |
| 291 | |
| 292 | this.update_names(animate); |
| 293 | this.apply_styles(); |
| 294 | } |
| 295 | |
| 296 | draw_legend_elements(elements_added, rect_dim) { |
| 297 | const colors = this.model.get('colors'), |
nothing calls this directly
no test coverage detected