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

Function clickAndCheck

test/jasmine/tests/annotations_test.js:897–909  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

895 }
896
897 function clickAndCheck(opts) {
898 return function() {
899 expect(Annotations.hasClickToShow(gd, hoverData(opts.newPts)))
900 .toBe(opts.newCTS, 'step: ' + opts.step);
901
902 var clickResult = Annotations.onClick(gd, hoverData(opts.newPts));
903 if(clickResult && clickResult.then) {
904 return clickResult.then(function() { checkVisible(opts); });
905 } else {
906 checkVisible(opts);
907 }
908 };
909 }
910
911 function updateAndCheck(opts) {
912 return function() {

Callers 1

Calls 2

hoverDataFunction · 0.85
checkVisibleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…