Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
cozmo committed Jan 21, 2018
1 parent f3264fd commit 9b30e76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/jsQR.js
Original file line number Diff line number Diff line change
Expand Up @@ -9905,6 +9905,9 @@ function locate(matrix) {
.filter(function (p, ii) { return i !== ii; })
.map(function (p) { return ({ x: p.x, y: p.y, score: p.score + (Math.pow((p.size - point.size), 2)) / point.size, size: p.size }); })
.sort(function (a, b) { return a.score - b.score; });
if (otherPoints.length < 2) {
return null;
}
var score = point.score + otherPoints[0].score + otherPoints[1].score;
return { points: [point].concat(otherPoints.slice(0, 2)), score: score };
})
Expand Down
3 changes: 3 additions & 0 deletions docs/jsQR.js
Original file line number Diff line number Diff line change
Expand Up @@ -9905,6 +9905,9 @@ function locate(matrix) {
.filter(function (p, ii) { return i !== ii; })
.map(function (p) { return ({ x: p.x, y: p.y, score: p.score + (Math.pow((p.size - point.size), 2)) / point.size, size: p.size }); })
.sort(function (a, b) { return a.score - b.score; });
if (otherPoints.length < 2) {
return null;
}
var score = point.score + otherPoints[0].score + otherPoints[1].score;
return { points: [point].concat(otherPoints.slice(0, 2)), score: score };
})
Expand Down

0 comments on commit 9b30e76

Please sign in to comment.