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

Function _hover

test/jasmine/tests/hover_click_anywhere_test.js:43–56  ·  view source on GitHub ↗
(xPixel, yPixel)

Source from the content-addressed store, hash-verified

41 afterEach(destroyGraphDiv);
42
43 function _hover(xPixel, yPixel) {
44 var bb = gd.getBoundingClientRect();
45 var s = gd._fullLayout._size;
46 Fx.hover(
47 gd,
48 {
49 clientX: xPixel + bb.left + s.l,
50 clientY: yPixel + bb.top + s.t,
51 target: gd.querySelector('.nsewdrag')
52 },
53 'xy'
54 );
55 Lib.clearThrottle();
56 }
57
58 it('emits plotly_hover with coordinate data on empty space', (done) => {
59 var hoverData;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…