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

Method update_opacities

js/src/Label.ts:35–50  ·  view source on GitHub ↗
(animate)

Source from the content-addressed store, hash-verified

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();

Callers 2

draw_elementsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected