()
| 415 | } |
| 416 | |
| 417 | update_style() { |
| 418 | const color_data = this.model.get('color'); |
| 419 | if (!this.is_object_empty(color_data)) { |
| 420 | this.fill_g.selectAll('path').style('fill', (d, i) => { |
| 421 | return this.fill_g_colorfill(d, i); |
| 422 | }); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | is_object_empty(object: any) { |
| 427 | return Object.keys(object).length === 0 && object.constructor === Object; |
no test coverage detected