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

Method update_line_style

js/src/Lines.ts:193–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191 // Could be fused in a single function for increased readability
192 // and to avoid code repetition
193 update_line_style(): void {
194 this.d3el
195 .selectAll('.curve')
196 .select('.line')
197 .style('stroke-dasharray', _.bind(this.get_line_style, this));
198 if (this.legendEl) {
199 this.legendEl
200 .select('path')
201 .style('stroke-dasharray', _.bind(this.get_line_style, this));
202 }
203 }
204
205 update_stroke_width(model, strokeWidth): void {
206 this.compute_view_padding();

Callers 1

update_styleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected