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

Function _dblclick

test/jasmine/tests/legend_test.js:1843–1854  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

1841 }
1842
1843 function _dblclick(index) {
1844 return function () {
1845 var item = d3SelectAll('rect.legendtoggle')[0][index || 0];
1846 return new Promise(function (resolve) {
1847 item.dispatchEvent(new MouseEvent('mousedown'));
1848 item.dispatchEvent(new MouseEvent('mouseup'));
1849 item.dispatchEvent(new MouseEvent('mousedown'));
1850 item.dispatchEvent(new MouseEvent('mouseup'));
1851 setTimeout(resolve, 20);
1852 });
1853 };
1854 }
1855
1856 function assertVisible(gd, expectation) {
1857 var actual = gd._fullData.map(function (trace) {

Callers 1

legend_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…