(style, indices)
| 180 | } |
| 181 | |
| 182 | set_style_on_elements(style, indices) { |
| 183 | if (indices === undefined || indices.length === 0) { |
| 184 | return; |
| 185 | } |
| 186 | let elements = this.d3el.selectAll('.box'); |
| 187 | elements = elements.filter((data, index) => { |
| 188 | return indices.indexOf(index) != -1; |
| 189 | }); |
| 190 | applyStyles(elements, style); |
| 191 | } |
| 192 | |
| 193 | set_default_style(indices) { |
| 194 | // For all the elements with index in the list indices, the default |
no test coverage detected