8000 Persistent point selection with transforms compatibility by etpinard · Pull Request #2163 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content
8000

Persistent point selection with transforms compatibility #2163

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
Prev Previous commit
Next Next commit
speed up is-pt-index-valid check
  • Loading branch information
etpinard committed Nov 16, 2017
commit 451778b2adf7e4584bb5d55406712da9ef85eb7d
2 changes: 1 addition & 1 deletion src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ lib.tagSelected = function(calcTrace, trace, ptNumber2cdIndex) {
}

function isPtIndexValid(v) {
return lib.validate(v, {valType: 'integer', min: 0});
return isNumeric(v) && v >= 0 && v % 1 === 0;
}

function isCdIndexValid(v) {
Expand Down
0