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

Function _select

test/jasmine/tests/splom_test.js:1514–1535  ·  view source on GitHub ↗
(path, opts)

Source from the content-addressed store, hash-verified

1512 });
1513
1514 function _select(path, opts) {
1515 return new Promise(function(resolve, reject) {
1516 opts = opts || {};
1517 ptData = null;
1518 subplot = null;
1519
1520 var to = setTimeout(function() {
1521 reject('fail: plotly_selected not emitter');
1522 }, 700);
1523
1524 gd.once('plotly_selected', function(d) {
1525 clearTimeout(to);
1526 ptData = (d || {}).points;
1527 subplot = Object.keys(d.range || {}).join('');
1528 resolve();
1529 });
1530
1531 opts.path = path;
1532 opts.clearThrottle = Lib.clearThrottle;
1533 drag(opts);
1534 });
1535 }
1536
1537 it('@gl should emit correct event data and draw selection outlines', function(done) {
1538 var fig = Lib.extendDeep({}, require('../../image/mocks/splom_0.json'));

Callers 1

splom_test.jsFile · 0.85

Calls 1

dragFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…