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

Method indicesToCellNums

js/src/GridHeatMap.ts:426–432  ·  view source on GitHub ↗
(indices: [number, number][])

Source from the content-addressed store, hash-verified

424 }
425
426 private indicesToCellNums(indices: [number, number][]): number[] {
427 if (indices === null || indices === undefined) {
428 return null;
429 }
430
431 return indices.map((i) => i[0] * this.numColumns + i[1]);
432 }
433
434 invert_point(pixel) {
435 // For now, an index selector is not supported for the heatmap

Callers 5

handleClickMethod · 0.95
set_style_on_elementsMethod · 0.95
set_default_styleMethod · 0.95
clear_styleMethod · 0.95
apply_stylesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected