MCPcopy
hub / github.com/plotly/plotly.js / mouseTo

Function mouseTo

test/jasmine/tests/gl2d_plot_interact_test.js:395–400  ·  view source on GitHub ↗
(p0, p1)

Source from the content-addressed store, hash-verified

393 });
394
395 function mouseTo(p0, p1) {
396 var node = d3Select('.nsewdrag[data-subplot="xy"]').node();
397 var dx = p1[0] - p0[0];
398 var dy = p1[1] - p0[1];
399 return drag({node: node, dpos: [dx, dy], pos0: p0});
400 }
401
402 it('@gl should respond to drag interactions', function(done) {
403 var _mock = Lib.extendDeep({}, mock);

Callers 1

Calls 1

dragFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…