()
| 430 | } |
| 431 | |
| 432 | set_scales() { |
| 433 | const that = this; |
| 434 | const color_scale = this.scales.color; |
| 435 | if (color_scale) { |
| 436 | color_scale.on('color_scale_range_changed', that.update_map_colors, that); |
| 437 | this.update_domains(); |
| 438 | this.listenTo(color_scale, 'domain_changed', () => { |
| 439 | that.update_map_colors(); |
| 440 | }); |
| 441 | this.update_map_colors(); |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | show_groups(model, value) { |
| 446 | this.fig_names.style('display', value ? 'inline' : 'none'); |
no test coverage detected