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