(style, indices)
| 561 | } |
| 562 | |
| 563 | set_style_on_elements(style, indices) { |
| 564 | // If the index array is undefined or of length=0, exit the |
| 565 | // function without doing anything |
| 566 | if (!indices || indices.length === 0) { |
| 567 | return; |
| 568 | } |
| 569 | // Also, return if the style object itself is blank |
| 570 | if (style !== undefined && Object.keys(style).length === 0) { |
| 571 | return; |
| 572 | } |
| 573 | let nodes = this.d3el.selectAll('.element'); |
| 574 | nodes = nodes.filter((data, index) => { |
| 575 | return indices.indexOf(index) !== -1; |
| 576 | }); |
| 577 | applyStyles(nodes, style); |
| 578 | } |
| 579 | |
| 580 | compute_view_padding() { |
| 581 | const xPadding = d3.max<number>( |
no test coverage detected