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

Method update_default_size

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

Source from the content-addressed store, hash-verified

50 }
51
52 update_default_size(animate) {
53 this.compute_view_padding();
54 // update size scale range?
55 if (!this.model.dirty) {
56 const animation_duration =
57 animate === true ? this.parent.model.get('animation_duration') : 0;
58 const that = this;
59 this.d3el
60 .selectAll('.label')
61 .transition('update_default_size')
62 .duration(animation_duration)
63 .style('font-size', (d, i) => {
64 return that.get_element_size(d);
65 });
66 }
67 }
68
69 relayout() {
70 this.set_ranges();

Callers 1

Calls 2

get_element_sizeMethod · 0.80
compute_view_paddingMethod · 0.45

Tested by

no test coverage detected