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

Method apply_styles

js/src/Graph.ts:529–547  ·  view source on GitHub ↗
(style_arr?)

Source from the content-addressed store, hash-verified

527 }
528
529 apply_styles(style_arr?) {
530 if (style_arr === undefined || style_arr === null) {
531 style_arr = [
532 this.selected_style,
533 this.unselected_style,
534 this.hovered_style,
535 this.unhovered_style,
536 ];
537 }
538 super.apply_styles(style_arr);
539
540 const all_indices = _.range(this.model.mark_data.length);
541
542 this.set_style_on_elements(this.hovered_style, this.hovered_index);
543 const unhovered_indices = !this.hovered_index
544 ? []
545 : _.difference(all_indices, this.hovered_index);
546 this.set_style_on_elements(this.unhovered_style, unhovered_indices);
547 }
548
549 clear_style(style_dict, indices) {
550 let nodes = this.d3el.selectAll('.element');

Callers 15

update_selectedMethod · 0.95
update_hoveredMethod · 0.95
update_colorsMethod · 0.45
draw_elementsMethod · 0.45
update_selectedMethod · 0.45
updateSelectedMethod · 0.45
drawMarkPathsMethod · 0.45
update_selectedFunction · 0.45
update_hoveredFunction · 0.45
apply_stylesFunction · 0.45
create_listenersMethod · 0.45
updateSlicesMethod · 0.45

Calls 2

set_style_on_elementsMethod · 0.95
rangeMethod · 0.80

Tested by

no test coverage detected