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

Function move

test/jasmine/tests/click_test.js:23–32  ·  view source on GitHub ↗
(fromX, fromY, toX, toY, delay)

Source from the content-addressed store, hash-verified

21var doubleClickRaw = require('../assets/double_click');
22
23function move(fromX, fromY, toX, toY, delay) {
24 return new Promise(function(resolve) {
25 mouseEvent('mousemove', fromX, fromY);
26
27 setTimeout(function() {
28 mouseEvent('mousemove', toX, toY);
29 resolve();
30 }, delay || DBLCLICKDELAY / 4);
31 });
32}
33
34describe('Test click interactions:', function() {
35 var mock = require('../../image/mocks/14.json');

Callers 1

click_test.jsFile · 0.70

Calls 1

mouseEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…