MCPcopy Index your code
hub / github.com/bqplot/bqplot / selector_changed

Function selector_changed

js/src/ScatterBase.ts:521–534  ·  view source on GitHub ↗
(point_selector, rect_selector)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

point_selectorFunction · 0.85
rangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…