MCPcopy Create free account
hub / github.com/bqplot/bqplot / convert_and_save

Method convert_and_save

js/src/BrushSelector.ts:699–712  ·  view source on GitHub ↗
(extent, item)

Source from the content-addressed store, hash-verified

697 }
698
699 convert_and_save(extent, item) {
700 if (!extent) {
701 this.update_mark_selected();
702 this.model.set('_selected', {});
703 } else {
704 const selected = utils.deepCopy(this.model.get('_selected'));
705 selected[this.get_label(item)] = extent.map(
706 this.scale.invert.bind(this.scale)
707 );
708 this.update_mark_selected(extent);
709 this.model.set('_selected', selected);
710 }
711 this.touch();
712 }
713
714 // TODO: make a proper implementation
715 selected_changed() {}

Callers 2

multi_brush_moveMethod · 0.95
multi_brush_endMethod · 0.95

Calls 2

get_labelMethod · 0.95
update_mark_selectedMethod · 0.45

Tested by

no test coverage detected