()
| 110 | } |
| 111 | |
| 112 | private updateColor() { |
| 113 | if (!this.mark_data) { |
| 114 | return; |
| 115 | } |
| 116 | |
| 117 | const color = this.get('color'); |
| 118 | const color_scale = this.getScales().color; |
| 119 | |
| 120 | if (color_scale) { |
| 121 | if (!this.get('preserve_domain').color) { |
| 122 | color_scale.computeAndSetDomain(color, this.model_id + '_color'); |
| 123 | } else { |
| 124 | color_scale.delDomain([], this.model_id + '_color'); |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | update_domains() { |
| 130 | if (!this.mark_data) { |
no test coverage detected