()
| 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) { |
no test coverage detected