MCPcopy Index your code
hub / github.com/bqplot/bqplot / draw_elements

Method draw_elements

js/src/Scatter.ts:268–294  ·  view source on GitHub ↗
(animate, elements_added)

Source from the content-addressed store, hash-verified

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'),

Callers

nothing calls this directly

Calls 3

update_namesMethod · 0.95
get_element_sizeMethod · 0.80
apply_stylesMethod · 0.45

Tested by

no test coverage detected