(point_selector, rect_selector)
| 242 | } |
| 243 | |
| 244 | selector_changed(point_selector, rect_selector) { |
| 245 | if (point_selector === undefined) { |
| 246 | this.model.set('selected', null); |
| 247 | this.touch(); |
| 248 | this.updateSelectedColors([]); |
| 249 | return []; |
| 250 | } |
| 251 | |
| 252 | const indices = new Uint32Array(_.range(this.pixelCoords.length)); |
| 253 | const selected = indices.filter((index) => |
| 254 | rect_selector(this.pixelCoords[index]) |
| 255 | ); |
| 256 | this.updateSelectedColors(selected); |
| 257 | this.model.set('selected', selected); |
| 258 | this.touch(); |
| 259 | } |
| 260 | |
| 261 | invert_point(pixel) { |
| 262 | if (pixel === undefined) { |
nothing calls this directly
no test coverage detected