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

Function drag_ended

js/src/ScatterBase.ts:698–712  ·  view source on GitHub ↗
(d, i, dragged_node)

Source from the content-addressed store, hash-verified

696 }
697
698 drag_ended(d, i, dragged_node) {
699 const x_scale = this.scales.x,
700 y_scale = this.scales.y;
701
702 this.reset_drag_style(d, i, dragged_node);
703 this.update_array(d, i);
704 this.send({
705 event: 'drag_end',
706 point: {
707 x: x_scale.invert(d[0]),
708 y: y_scale.invert(d[1]),
709 },
710 index: i,
711 });
712 }
713
714 add_element() {
715 const mouse_pos = d3.mouse(this.el);

Callers

nothing calls this directly

Calls 2

sendMethod · 0.80
reset_drag_styleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…