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

Method selector_changed

js/src/Boxplot.ts:244–259  ·  view source on GitHub ↗
(point_selector, rect_selector)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

updateSelectedColorsMethod · 0.95
rect_selectorFunction · 0.85
rangeMethod · 0.80

Tested by

no test coverage detected