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

Method filterCellsByNum

js/src/GridHeatMap.ts:326–337  ·  view source on GitHub ↗
(
    cell_numbers: number[]
  )

Source from the content-addressed store, hash-verified

324 }
325
326 private filterCellsByNum(
327 cell_numbers: number[]
328 ): d3.Selection<any, any, any, any> {
329 if (cell_numbers === null || cell_numbers === undefined) {
330 // FIXME: return an empty selection
331 return this.d3el.selectAll('thisNameDoesntExist');
332 }
333
334 return this.displayCells.filter(
335 (el: GridCellData) => cell_numbers.indexOf(el.cellNum) !== -1
336 );
337 }
338
339 selected_style_updated(model, style) {
340 this.selected_style = style;

Callers 4

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