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

Function _mouseEvent

test/jasmine/tests/map_test.js:1398–1409  ·  view source on GitHub ↗
(type, pos, cb)

Source from the content-addressed store, hash-verified

1396 }
1397
1398 function _mouseEvent(type, pos, cb) {
1399 return new Promise(function(resolve) {
1400 mouseEvent(type, pos[0], pos[1], {
1401 buttons: 1 // left button
1402 });
1403
1404 setTimeout(function() {
1405 cb();
1406 resolve();
1407 }, MOUSE_DELAY);
1408 });
1409 }
1410
1411 function _doubleClick(pos) {
1412 return _mouseEvent('dblclick', pos, noop);

Callers 4

map_test.jsFile · 0.70
assertMouseMoveFunction · 0.70
_doubleClickFunction · 0.70
_dragFunction · 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…