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

Function click

test/jasmine/tests/legend_test.js:2133–2144  ·  view source on GitHub ↗
(index, clicks)

Source from the content-addressed store, hash-verified

2131 afterEach(destroyGraphDiv);
2132
2133 function click(index, clicks) {
2134 return function () {
2135 return new Promise(function (resolve) {
2136 var item = d3SelectAll('rect.legendtoggle')[0][index || 0];
2137 for (var i = 0; i < (clicks || 1); i++) {
2138 item.dispatchEvent(new MouseEvent('mousedown'));
2139 item.dispatchEvent(new MouseEvent('mouseup'));
2140 }
2141 setTimeout(resolve, DBLCLICKDELAY + 100);
2142 });
2143 };
2144 }
2145
2146 function extractVisibilities(data) {
2147 return data.map(function (trace) {

Callers 15

ternary_test.jsFile · 0.70
_clickFunction · 0.70
clickForTextEditFunction · 0.70
_clickFunction · 0.70
config_test.jsFile · 0.70
pie_test.jsFile · 0.70
parcats_test.jsFile · 0.70
funnelarea_test.jsFile · 0.70
_clickFunction · 0.70
_clickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…