(path, opts)
| 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')); |
no test coverage detected
searching dependent graphs…