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

Method update_style

js/src/Label.ts:125–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 update_style() {
126 const that = this;
127 this.d3el
128 .selectAll('.object_grp')
129 .select('text')
130 .attr('dominant-baseline', 'central')
131 .style('font-size', (d, i) => {
132 return that.get_element_size(d);
133 })
134 .style('font-weight', this.model.get('font_weight'))
135 .style('text-anchor', this.model.get('align'));
136
137 this.d3el.selectAll('.label').style('fill', this.get_mark_color.bind(this));
138 }
139
140 color_scale_updated(animate) {
141 const animation_duration =

Callers 1

draw_elementsMethod · 0.95

Calls 1

get_element_sizeMethod · 0.80

Tested by

no test coverage detected