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

Function _hover

test/jasmine/tests/cartesian_interact_test.js:2277–2290  ·  view source on GitHub ↗
(px, py)

Source from the content-addressed store, hash-verified

2275 afterEach(destroyGraphDiv);
2276
2277 function _hover(px, py) {
2278 return new Promise(function(resolve, reject) {
2279 gd.once('plotly_hover', function(d) {
2280 Lib.clearThrottle();
2281 resolve(d);
2282 });
2283
2284 mouseEvent('mousemove', px, py);
2285
2286 setTimeout(function() {
2287 reject('plotly_hover did not get called!');
2288 }, 100);
2289 });
2290 }
2291
2292 it('should have correct content for *scatter* traces', function(done) {
2293 Plotly.newPlot(gd, [{

Callers 2

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…