8000 Add scattermapbox select/lasso drag modes by etpinard · Pull Request #1836 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Add scattermapbox select/lasso drag modes #1836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 10, 2017
Next Next commit
add lassoPoints assertions
  • Loading branch information
etpinard committed Jun 30, 2017
commit 746ec7e66a24d30872f10a238eb6658082685fe7
5 changes: 5 additions & 0 deletions test/jasmine/tests/select_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ describe('select box and lasso', function() {
y: 2.75,
}], 'with the correct selected points (2)');

expect(selectedData.lassoPoints.x).toBeCloseToArray(
[0.084, 0.087, 0.115, 0.103], 'lasso points x coords');
expect(selectedData.lassoPoints.y).toBeCloseToArray(
[4.648, 1.342, 1.247, 4.821], 'lasso points y coords');

doubleClick(250, 200).then(function() {
expect(doubleClickData).toBe(null, 'with the correct deselect data');
done();
Expand Down
0