MCPcopy Index your code
hub / github.com/plotly/plotly.js / _drag

Function _drag

test/jasmine/tests/cartesian_interact_test.js:87–91  ·  view source on GitHub ↗
(x0, y0, x1, y1)

Source from the content-addressed store, hash-verified

85 var newY = [-0.3769062155984817, 8.42343281652181];
86
87 function _drag(x0, y0, x1, y1) {
88 mouseEvent('mousedown', x0, y0);
89 mouseEvent('mousemove', x1, y1);
90 mouseEvent('mouseup', x1, y1);
91 }
92
93 function _checkAxes(xRange, yRange) {
94 expect(gd.layout.xaxis.range).toBeCloseToArray(xRange, precision);

Callers 3

_runDragFunction · 0.70
_dragReleaseFunction · 0.70

Calls 2

mouseEventFunction · 0.85
_getLocalPosFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…