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

Function check

test/jasmine/tests/geo_test.js:1482–1492  ·  view source on GitHub ↗
(p, hoverLabelCnt)

Source from the content-addressed store, hash-verified

1480 fig.layout.geo.projection.rotation = {lon: -75, lat: 90};
1481
1482 function check(p, hoverLabelCnt) {
1483 mouseEvent('mousemove', p[0], p[1]);
1484
1485 var invert = gd._fullLayout.geo._subplot.projection.invert;
1486 var lonlat = invert(p);
1487
1488 expect(d3SelectAll('g.hovertext').size())
1489 .toBe(hoverLabelCnt, 'for ' + lonlat);
1490
1491 Lib.clearThrottle();
1492 }
1493
1494 Plotly.newPlot(gd, fig).then(function() {
1495 var px = 255;

Callers 1

geo_test.jsFile · 0.70

Calls 2

mouseEventFunction · 0.85
invertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…