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

Function _hoverNatural

test/jasmine/tests/hover_label_test.js:595–603  ·  view source on GitHub ↗
(gd, xpx, ypx)

Source from the content-addressed store, hash-verified

593 }
594
595 function _hoverNatural(gd, xpx, ypx) {
596 var gdBB = gd.getBoundingClientRect();
597 var dragger = gd.querySelector('.nsewdrag');
598 var clientX = xpx + gdBB.left + gd._fullLayout._size.l;
599 var clientY = ypx + gdBB.top + gd._fullLayout._size.t;
600
601 Fx.hover(gd, { clientX: clientX, clientY: clientY, target: dragger }, 'xy');
602 Lib.clearThrottle();
603 }
604
605 describe('hover label order for stacked traces with zeros', function () {
606 var gd;

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…