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

Function _run

test/jasmine/tests/modebar_test.js:1534–1540  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

1532 var gd = createGraphDiv();
1533
1534 function _run(msg) {
1535 expect(gd._fullLayout.hovermode).toBe('closest', msg + '| pre');
1536 selectButton(gd._fullLayout._modeBar, 'toggleHover').click();
1537 expect(gd._fullLayout.hovermode).toBe(false, msg + '| after first click');
1538 selectButton(gd._fullLayout._modeBar, 'toggleHover').click();
1539 expect(gd._fullLayout.hovermode).toBe('closest', msg + '| after 2nd click');
1540 }
1541
1542 Plotly.newPlot(gd, [
1543 {type: 'scatterternary', a: [1], b: [2], c: [3]}

Callers 1

modebar_test.jsFile · 0.70

Calls 1

selectButtonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…