MCPcopy Create free account
hub / github.com/dc-js/dc.js / doubleClick

Function doubleClick

spec/coordinate-grid-chart-spec.js:967–973  ·  view source on GitHub ↗
(_chart)

Source from the content-addressed store, hash-verified

965 }
966
967 function doubleClick (_chart) {
968 const centerX = _chart.root().node().clientLeft + (_chart.width() / 2);
969 const centerY = _chart.root().node().clientTop + (_chart.height() / 2);
970 const event = document.createEvent('MouseEvents');
971 event.initMouseEvent('dblclick', true, true, window, centerX, centerY, centerX, centerY, 0, false, false, false, false, 0, null);
972 _chart.root().node().dispatchEvent(event);
973 }
974});

Callers 1

Calls 3

rootMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…