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

Method hoverfill

js/src/Map.ts:430–441  ·  view source on GitHub ↗
(d, j)

Source from the content-addressed store, hash-verified

428 }
429
430 hoverfill(d, j) {
431 const idx = this.model.get('selected');
432 const select = idx ? idx : [];
433 if (
434 select.indexOf(d.id) > -1 &&
435 this.validate_color(this.model.get('selected_styles').selected_stroke)
436 ) {
437 return this.model.get('selected_styles').selected_stroke;
438 } else {
439 return this.model.get('stroke_color');
440 }
441 }
442
443 fill_g_colorfill(d, j) {
444 const color_scale = this.scales.color;

Callers 3

mouseout_handlerMethod · 0.95
change_selectedMethod · 0.95
reset_selectionMethod · 0.95

Calls 1

validate_colorMethod · 0.95

Tested by

no test coverage detected