(point_selector, rect_selector)
| 519 | } |
| 520 | |
| 521 | selector_changed(point_selector, rect_selector) { |
| 522 | if (point_selector === undefined) { |
| 523 | this.model.set('selected', null); |
| 524 | this.touch(); |
| 525 | return []; |
| 526 | } |
| 527 | const pixels = this.pixel_coords; |
| 528 | const indices = new Uint32Array(_.range(pixels.length)); |
| 529 | const selected = indices.filter((index) => { |
| 530 | return point_selector(pixels[index]); |
| 531 | }); |
| 532 | this.model.set('selected', selected); |
| 533 | this.touch(); |
| 534 | } |
| 535 | |
| 536 | update_selected(model, value) { |
| 537 | this.selected_indices = value; |
nothing calls this directly
no test coverage detected
searching dependent graphs…