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

Function drag_start

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

Source from the content-addressed store, hash-verified

644 reset_drag_style(d, i, dragged_node) {}
645
646 drag_start(d, i, dragged_node) {
647 // d[0] and d[1] will contain the previous position (in pixels)
648 // of the dragged point, for the length of the drag event
649 const x_scale = this.scales.x,
650 y_scale = this.scales.y;
651 d[0] = x_scale.scale(d.x) + x_scale.offset;
652 d[1] = y_scale.scale(d.y) + y_scale.offset;
653
654 this.set_drag_style(d, i, dragged_node);
655
656 this.send({
657 event: 'drag_start',
658 point: { x: d.x, y: d.y },
659 index: i,
660 });
661 }
662
663 on_drag(d, i, dragged_node) {
664 const x_scale = this.scales.x,

Callers

nothing calls this directly

Calls 2

sendMethod · 0.80
set_drag_styleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…