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

Method drag_end

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

Source from the content-addressed store, hash-verified

103 }
104
105 drag_end() {
106 const lasso_name = 'l' + this.lasso_counter;
107 // Close the lasso
108 this.d3el
109 .select('#' + lasso_name)
110 .attr('d', this.line(this.current_vertices) + 'Z');
111 // Add the current vertices to the global lasso vertices
112 this.all_vertices[lasso_name] = this.current_vertices;
113 // Update selected for each mark
114 this.update_mark_selected(this.all_vertices);
115 }
116
117 update_mark_selected(vertices?) {
118 if (vertices === undefined || vertices.length === 0) {

Callers 1

renderMethod · 0.80

Calls 1

update_mark_selectedMethod · 0.95

Tested by

no test coverage detected