MCPcopy Create free account
hub / github.com/bqplot/bqplot / update_stroke_width

Method update_stroke_width

js/src/Lines.ts:205–214  ·  view source on GitHub ↗
(model, strokeWidth)

Source from the content-addressed store, hash-verified

203 }
204
205 update_stroke_width(model, strokeWidth): void {
206 this.compute_view_padding();
207 this.d3el
208 .selectAll('.curve')
209 .select('.line')
210 .style('stroke-width', strokeWidth);
211 if (this.legendEl) {
212 this.legendEl.select('path').style('stroke-width', strokeWidth);
213 }
214 }
215
216 update_style(): void {
217 const fill = this.model.get('fill'),

Callers 1

update_styleMethod · 0.95

Calls 1

compute_view_paddingMethod · 0.95

Tested by

no test coverage detected