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

Method reset

js/src/IndexSelector.ts:105–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 reset() {
106 this.active = false;
107 if (this.line !== undefined && this.line !== null) {
108 this.line.attr('x1', 0).attr('x2', 0).attr('visibility', 'hidden');
109 }
110
111 if (this.background !== undefined && this.background !== null) {
112 this.background.on('click', _.bind(this.initial_click, this));
113 }
114 this.model.set('selected', null);
115
116 _.each(this.mark_views, (mark_view: any) => {
117 mark_view.invert_point();
118 });
119 this.touch();
120 }
121
122 update_scale_domain(ignore_gui_update) {
123 // Call the base class function to update the scale.

Callers 1

selected_changedMethod · 0.95

Calls 1

invert_pointMethod · 0.45

Tested by

no test coverage detected